Вам просто нужно запустить неграфическую команду wine/windows и вообще не устанавливать $DISPLAY
.
вот пример:
$ unset DISPLAY
$ wine ping
000b:fixme:winediag:start_process Wine Staging 3.21 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
000b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
000b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0027:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0027:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
002b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654
002d:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002d:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
Could not load wine-gecko. HTML rendering will be disabled.
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0027:err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654
wine: configuration in '/home/test/.wine' has been updated.
Usage: ping [-n count] [-w timeout] [-l buffer_length] target_name
Options:
-n Number of echo requests to send.
-w Timeout in milliseconds to wait for each reply.
-l Length of send buffer.
Обычно появлялись всплывающие окна с просьбой загрузить моно и вино -gecko. Эти детали вышли из строя (, если они нужны, их можно сделать доступными заранее ), но, как видите, обновление все равно было сделано:
wine: configuration in '/home/test/.wine' has been updated.
(И команда ping пожаловалась на синтаксис :, который на самом деле выполнялся ).
Конечно, нет никакой гарантии, что это поведение останется прежним. Поэтому вы должны делать тесты и резервные копии.
РЕДАКТИРОВАТЬ :, как было задано, для более нейтральной команды и вывода:
unset DISPLAY
export WINEDEBUG=-all
wine net help >/dev/null
даст только две строки (или, возможно, только последнюю от )до stderr и даст код выхода 0:
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/test/.wine' has been updated.
К сожалению, сказать, что весь экземпляр был поврежден. Пришлось удалить экземпляр, другого выхода у меня не было. Что ж, я попытался смонтировать поврежденный раздел в другое место и попытался настроить брандмауэр, но это также не помогло.