Wine does not start anymore, wine can't start

I had to set up my computer again with Manjaro Linux. But installing wine via pamac / Pacman does not succeed. The installation seems to be fine but wine does not run.
I have tried several ways.

I have uninstalled wine even with harder cleanings

sudo pacman -Rsu wine
sudo pacman -Scc
sudo pacman -Rs $(pacman -Qdtq) 

I have reinstalled the recommonded version 6.16. No success. Also I tried reinstallation of older and newer version as

sudo pacman -U https://archive.archlinux.org/packages/w/wine/wine-6.4-1-x86_64.pkg.tar.zst

also

sudo pacman -U https://archive.archlinux.org/packages/w/wine/wine-6.20-1-x86_64.pkg.tar.zst

Starting wine e.g with winecfg this error always appears.

0024:err:file:init_redirects /home/omlinux/.wine/dosdevices/c:/windows: Datei oder Verzeichnis nicht gefunden
wine: could not open working directory L"C:\\windows\\system32", starting in the Windows directory.
002c:err:wineboot:main Cannot set the dir to L"C:\\windows" (2)
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2).
wine: could not open working directory L"C:\\windows\\system32", starting in the Windows directory.
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"npf" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"Eventlog" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 2
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"NDIS" failed to start: 2
wine: could not open working directory L"C:\\windows\\system32", starting in the Windows directory.
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0040:err:winediag:nodrv_CreateWindow The explorer process failed to start.
^C0024:err:module:process_init L"C:\\windows\\system32\\-version.exe" not found

Does anybody has a clue how to go on?
Thanks, Rulinux

Try this:

cp -a ~/.wine/drive_c/windows/command/start.exe ~/.wine/drive_c/windows/

cp -a ~/.wine/drive_c/windows/command/start.exe ~/.wine/drive_c/windows/

results in

cp: der Aufruf von stat für '/home/rulinux/.wine/drive_c/windows/command/start.exe' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

This means basically translated from German into English … it is not possible: file or path not found.

Maybe the reason lies in my older installation where I took my “/home/” from. There I had separated /home and / (root). Now I have fully encrypted my hard disks which was sadly only possible with the standard installation with root and home on one partition together.
Maybe somewhere still may retain this information. This is just a guess.

Do you see the same problem with a new (empty) WINEPREFIX?

Do you see the same problem with a new (empty) WINEPREFIX?

env WINEPREFIX=~/.customprefix wineboot -u

Seems to start wine. Finally it results in

wine: created the configuration directory '/home/rulinux/.customprefix'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:err:ole:start_rpcss Failed to open RpcSs service
0040:fixme:winspool:AddPrinterW DocumentPropertiesW on printer L"Brother_MFC-L5750DW_series" fails
0040:fixme:winspool:AddPrinterW DocumentPropertiesW on printer L"iP7200-series" fails
0040:fixme:winspool:AddPrinterW DocumentPropertiesW on printer L"MX450-series" fails
0064:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
0064:fixme:file:NtLockFile I/O completion on lock not implemented yet
0064:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0064:err:mscoree:LoadLibraryShim error reading registry key for installroot
0064:err:mscoree:LoadLibraryShim error reading registry key for installroot
0064:err:mscoree:LoadLibraryShim error reading registry key for installroot
0064:err:mscoree:LoadLibraryShim error reading registry key for installroot
0078:fixme:file:NtLockFile I/O completion on lock not implemented yet
0078:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0078:err:mscoree:LoadLibraryShim error reading registry key for installroot
0078:err:mscoree:LoadLibraryShim error reading registry key for installroot
0078:err:mscoree:LoadLibraryShim error reading registry key for installroot
0078:err:mscoree:LoadLibraryShim error reading registry key for installroot
0078:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0078:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0064:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0064:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
00bc:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/l3codeca.acm.so"
00bc:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
00bc:err:winediag:gnutls_initialize failed to load libgnutls, no support for pfx import/export
00bc:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/mp3dmod.dll.so"
wine: configuration in L"/home/rulinux/.customprefix" has been updated.
012c:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/l3codeca.acm.so"
012c:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
012c:err:winediag:gnutls_initialize failed to load libgnutls, no support for pfx import/export
012c:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/mp3dmod.dll.so"
wine: configuration in L"/home/rulinux/.customprefix" has been updated.

While I was curios I did the same command again. Second time it resulted differently.

Could not parse file "/home/omlinux/.local/share/applications/org.freefilesync.FreeFileSync.desktop": No such file or directory
0124:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/l3codeca.acm.so"
0124:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0124:err:winediag:gnutls_initialize failed to load libgnutls, no support for pfx import/export
0124:err:module:open_builtin_so_file failed to load .so lib "/usr/lib32/wine/i386-unix/mp3dmod.dll.so"
wine: configuration in L"/home/rulinux/.customprefix" has been updated.

I have looked for the file which failed to load /usr/lib32/wine/i386-unix/l3codeca.acm.so
but it is in designated folder.

What should I do now?

That command initialized a new wine prefix in ~/.customprefix.
To use that prefix and start up explorer.exe for example you’d issue:

$ WINEPREFIX=~/.customprefix wine explorer.exe

The errors are weird though, I’m not seeing any of those on my machines.
Do you have any wine environment variables set?

$ printenv | grep WINE

results

bash: $: Kommando nicht gefunden.

in English: “bash: $: command not found.”

It runs the command without failure. But I do not notice any changes. I have not changed any wine variables consciously.

Do you have any clue?

Blockquote
Could not parse file “/home/omlinux/.local/share/applications/org.freefilesync.FreeFileSync.desktop”: No such file or directory
…
wine: configuration in L"/home/rulinux/.customprefix" has been updated.

Looks like wine saw that you have 2 different home folder on the same run, omlinux and rulinux. One of them might be encrypted to the others. You might want to try to call wine from each home. e.g; WINEPREFIX=~/home/omlinux/.wine winecfg or WINEPREFIX=~/home/rulinux/.wine winecfg. Or you may have to login as omlinux instead of rulinux if wine is rooted to that user account.

Anyway, did you cleanly install Manjaro on an encrypted partition or reusing an old /home folder and encrypt it?

The $ is part of the prompt - not the command.

It’s not supposed to change something but to show any environment variables containing WINE. If there was no output then there were none.

Thanks dor freggel.doe first

I have completely new installed Manjaro from the scratch with ONE USER ONLY. Let’s say the main user is rulinux. The omlinux is just a replace failure. So forget about it. With USB-Live stick I had deleted the content of /home/rulinux and replaced it with my old one.

The difference from my former installation to the new one is that it is fully encrypted and root and home are on one partition now not on 2 anymore.

Here the strange result of

WINEPREFIX=~/home/rulinux/.wine winecfg
wine: chdir to /home/rulinux/home/rulinux/.wine : Datei oder Verzeichnis nicht gefunden

… means file or path not found

I believe it comes from that /home before was on a separeted partition. Even a new installation of wine does correct the path. I can change it in configuration file that may be a solution.

Otherwise after all kind help from all of you I do not see any other solution. May be I have to uninstall wine first and than delete all folders and files with wine!?

Oh, I’m sorry. I gave you a wrong command. It supposed to be WINEPREFIX=/home/rulinux/.wine winecfg without the tidle key.

Thanks. I have tried it out.

WINEPREFIX=/home/rulinux/.wine winecfg
0048:err:file:init_redirects /home/rulinux/.wine/dosdevices/c:/windows: Datei oder Verzeichnis nicht gefunden

means file or path not found.

What could I do now?

Run ls -l and pwd. If both of them show the same username, then use that name. For example, if it shows omlinux then you need to run WINEPREFIX=/home/omlinux/.wine winecfg.

It turns out:

Run ls -l and pwd
bash: Run: Kommando nicht gefunden.

It means in Englisch …command not found.

Those two are different commands. you need to run:
ls -l

and then:
pwd

You can also run ls -al to see the owner of hidden folders in your home directory.

ls -l
insgesamt 0
drwxr-xr-x 1 rulinux rulinux 458  9. Okt 10:33 SoftMaker

and

pwd
/home/rulinux

And for a try.

Here it turns out that “/home/omlinux/.steam/sdk32/steam” is red marked an blinking. But I have uninstalled steam because of no need. Also something is wrong with Softmaker Office installation. “Softmaker” text is in blue color. “.wine” is yellow marked as a lot of others.

ls -al
insgesamt 640
drwxrwxrwx 1 rulinux wheel     1802  1. Nov 21:08 .
drwxr-xr-x 1 root    root        14  6. Okt 22:10 ..
drwxrwxrwx 1 rulinux wheel      146  8. Jun 18:18 .acetoneiso
drwxrwxrwx 1 rulinux wheel       14 11. Dez 2020  .adobe
drwxr-xr-x 1 rulinux rulinux    130 22. Okt 12:39 .atom
drwxrwxrwx 1 rulinux wheel      140 22. Jun 10:00 .audacity-data
drwxrwxrwx 1 rulinux wheel       48 10. Jul 12:01 .avidemux6
-rw------- 1 rulinux wheel    30022  1. Nov 18:55 .bash_history
-rwxrwxrwx 1 rulinux wheel       21 26. Mai 2020  .bash_logout
-rwxrwxrwx 1 rulinux wheel       57 26. Mai 2020  .bash_profile
-rwxrwxrwx 1 rulinux wheel     3838 26. Mai 2020  .bashrc
drwxrwxrwx 1 rulinux wheel     1250 28. Mai 12:48 .bcast5
drwxrwxrwx 1 rulinux wheel       76  3. Nov 13:41 .bluefish
drwxrwxrwx 1 rulinux wheel      138 17. Feb 2021  .bogofilter
drwxr-xr-x 1 rulinux rulinux   1326  3. Nov 13:39 .cache
drwxrwxrwx 1 rulinux wheel       28 25. Jan 2021  .cargo
drwxrwxrwx 1 rulinux wheel      122  7. Jun 17:04 .cddb
drwxrwxrwx 1 rulinux wheel       76 28. Jul 2020  .clamtk
drwxrwxrwx 1 rulinux wheel       16 12. Sep 15:18 .cmake
drwxrwxrwx 1 rulinux wheel       50 24. Sep 13:15 .ColorGrab
drwxrwxrwx 1 rulinux wheel     8472  3. Nov 12:58 .config
drwxr-xr-x 1 rulinux rulinux    126  1. Nov 22:18 .customprefix
drwxrwxrwx 1 rulinux wheel        0 31. Aug 15:00 .deepin-draw
drwxrwxrwx 1 rulinux wheel       44 26. Jul 2020  .designer
-rwxrwxrwx 1 rulinux wheel     4855 30. Okt 2017  .dir_colors
drwxrwxrwx 1 rulinux wheel     2028 16. Sep 13:23 .dvdcss
drwxrwxrwx 1 rulinux wheel       64 16. Sep 15:54 .dvdrip
-rwxrwxrwx 1 rulinux wheel    29647 16. Sep 15:54 .dvdriprc
drwxrwxrwx 1 rulinux wheel       12 15. Apr 2021  .electron-gyp
drwx------ 1 rulinux rulinux     34 22. Okt 12:42 .emacs.d
-rwxrwxrwx 1 rulinux wheel     3740 30. Apr 2020  .face
lrwxrwxrwx 1 rulinux wheel        5 23. Jul 2020  .face.icon -> .face
drwxrwxrwx 1 rulinux wheel       14 11. Aug 2020  .fonts
-rwxrwxrwx 1 rulinux wheel      111  3. Mär 2021  .fonts.conf
drwxrwxrwx 1 rulinux wheel       14 31. Aug 15:14 .FreeCAD
drwxrwxrwx 1 rulinux wheel      164 25. Jun 14:25 .freemind
drwxrwxrwx 1 rulinux wheel      246  8. Okt 18:51 .gnupg
drwxrwxrwx 1 rulinux wheel       14 24. Jan 2021  .grabMyBooks
drwxrwxrwx 1 rulinux wheel       92 24. Sep 18:42 .gradle
drwxrwxrwx 1 rulinux wheel       20  3. Aug 2020  .grsync
-rw-r--r-- 1 rulinux rulinux    272  1. Nov 19:09 .gtkrc-2.0
drwxrwxrwx 1 rulinux wheel       20 12. Nov 2020  .hplip
drwxrwxrwx 1 rulinux wheel      118  7. Feb 2021  .idm
-rwxrwxrwx 1 rulinux wheel      219 14. Aug 13:27 .jameica.properties
drwxrwxrwx 1 rulinux wheel       30  6. Nov 2020  .java
drwxrwxrwx 1 rulinux wheel       10 13. Jul 2020  .kde4
drwxrwxrwx 1 rulinux wheel       10 19. Mai 23:44 .kde4_V2
drwxrwxrwx 1 rulinux wheel       44 10. Jul 16:22 .lazarus
-rwxrwxrwx 1 rulinux wheel       68 22. Nov 2020  .lesshst
drwxrwxrwx 1 rulinux wheel       10  6. Aug 2020  .local
drwxr-xr-x 1 rulinux rulinux      0 30. Okt 21:37 .lxvst
-rwxrwxrwx 1 rulinux wheel      480 30. Jul 2020  .mailcap
-rwxrwxrwx 1 rulinux wheel      151 30. Jul 2020  .mime.types
drwxrwxrwx 1 rulinux wheel       36 12. Mär 2021  .mono
drwxrwxrwx 1 rulinux wheel      116 29. Mär 2021  .mozilla
drwxrwxrwx 1 rulinux wheel      110 26. Nov 2020  .mp3directcut
drwxrwxrwx 1 rulinux wheel       34  6. Sep 14:05 .mp3splt-gtk
drwxrwxrwx 1 rulinux wheel      234  6. Sep 14:05 .mp3tag
drwxrwxrwx 1 rulinux wheel       12  9. Jun 20:23 .mplayer
-rwxrwxrwx 1 rulinux wheel      144  8. Jun 18:17 .mtab.fuseiso
drwxrwxrwx 1 rulinux wheel        0  8. Jun 17:53 .nero
-rwxrwxrwx 1 rulinux wheel       36  6. Nov 2020  .nodemid
drwxrwxrwx 1 rulinux wheel       90  5. Mär 2021  .npm
-rwxrwxrwx 1 rulinux wheel       12 15. Apr 2021  .npmrc
drwxrwxrwx 1 rulinux wheel       24  6. Nov 2020  .nv
drwxrwxrwx 1 rulinux wheel       66 15. Apr 2021  .nvm
drwxrwxrwx 1 rulinux wheel       10 10. Sep 2020  .openjfx
-rwxrwxrwx 1 rulinux wheel    95721 13. Okt 2020  .pdfbox.cache
drwxrwxrwx 1 rulinux wheel       20 22. Aug 2020  .pEp
-rwxrwxrwx 1 rulinux wheel     4096 22. Aug 2020  .pEp_management.db
-rwxrwxrwx 1 rulinux wheel    32768 22. Aug 2020  .pEp_management.db-shm
-rwxrwxrwx 1 rulinux wheel   271952 22. Aug 2020  .pEp_management.db-wal
drwxrwxrwx 1 rulinux wheel       58 29. Sep 2020  .pipewire-media-session
drwxrwxrwx 1 rulinux wheel       10 13. Jul 2020  .pki
drwxrwxrwx 1 rulinux wheel       42 15. Sep 14:18 .putty
-rwxrwxrwx 1 rulinux wheel      300 12. Mär 2021  .recently-used
drwxrwxrwx 1 rulinux wheel       10 26. Okt 2020  .sane
drwxrwxrwx 1 rulinux wheel       14  4. Aug 2020  .sdl
drwxrwxrwx 1 rulinux wheel       20 10. Jun 09:20 .searchmonkey
-rwxrwxrwx 1 rulinux wheel      127 23. Jun 10:25 .sejda
drwxrwxrwx 1 rulinux wheel        0 23. Jun 10:22 .sejda-desktop
drwxrwxrwx 1 rulinux wheel       84 20. Nov 2020  .skrooge
-rwxrwxrwx 1 rulinux wheel       36 31. Mai 2020  .smbcredentials
drwxr-xr-x 1 rulinux rulinux    458  9. Okt 10:33 SoftMaker
drwxrwxrwx 1 rulinux wheel       76 15. Sep 14:04 .ssh
drwxrwxrwx 1 rulinux wheel       92 23. Sep 12:11 .ssr
drwxrwxrwx 1 rulinux wheel      164 17. Jun 15:08 .steam
lrwxrwxrwx 1 rulinux wheel       32 17. Jun 15:08 **.steampath -> /home/rulinux/.steam/sdk32/steam**
lrwxrwxrwx 1 rulinux wheel       30 17. Jun 15:08 .steampid -> /home/rulinux/.steam/steam.pid
drwxrwxrwx 1 rulinux wheel       28 14. Aug 12:20 .swt
drwxrwxrwx 1 rulinux wheel      128 19. Apr 2021  .thunderbird
drwxrwxrwx 1 rulinux wheel        6 13. Jul 2020  .var
-rwxrwxrwx 1 rulinux wheel     1167  7. Feb 2021  .viminfo
drwxrwxrwx 1 rulinux wheel       40 18. Okt 2020  .vmware
drwxr-xr-x 1 rulinux rulinux      0 30. Okt 21:37 .vst
drwxr-xr-x 1 rulinux rulinux      0 30. Okt 21:37 .vst3
drwxrwxrwx 1 rulinux wheel      186  8. Okt 21:01 .waterfox
-rw-r--r-- 1 rulinux rulinux    180  1. Nov 16:26 .wget-hsts
drwxrwxrwx 1 rulinux wheel      126  1. Nov 21:13 .wine
-rw------- 1 rulinux rulinux    134  1. Nov 19:09 .Xauthority
-rwxrwxrwx 1 rulinux wheel      100 30. Okt 2017  .Xclients
-rwxrwxrwx 1 rulinux wheel     1635 22. Nov 2020  .xinitrc
-rwxrwxrwx 1 rulinux wheel     8982 15. Sep 2020  .xscreensaver
-rwxrwxrwx 1 rulinux wheel    47113 22. Nov 2020  .zcompdump
-rwxrwxrwx 1 rulinux wheel     9723 13. Aug 2018  .zshrc

You folder ownership is kinda weird. You don’t have the common home folders ownership, you don’t even have default folders such as Documents or Desktop. And who is “wheel”? Are you using a sandbox or a docker? And did you install freefilesync from aur?

Edit:
Anyway, try this:
WINEPREFIX=/home/rulinux/.customprefix winecfg

If that doesn’t show anything, try this:
WINEPREFIX=/home/omlinux/.customprefix winecfg

NOTE:
I just found out that “wheel” is (or might be) sudo owned group. Are you sure you did a fresh install of Manjaro?

After my installation from scratch I have looked into the system settings “locations”. All was set to the path /home/rulinux. I have changed the folders but after restart it resets again to this wrong path. There is something wrong. I have claimed this problem under bugs.kde.org - no answer, yet.

Secondly I have two hard disks, one is for the OS (SSD drive) the other is for my data (normal hard disk). After a new system installation which I have done already many times always I do not have full access to my data drive. There is something wrong in the installation routine (standard or manual does not make a difference here). Therefore I got the recommendation to use

sudo chown -R rulinux:wheel /run/media/rulinux/Daten-Linux

After this command I have full read and write access.

I am not using a sandbox or a docker, at least I am not aware of it. Just a virtualbox with with windows. But that should not be an issue, isn’t it.

I had installed freefilesync for trying it out but i have uninstalled it. It is a pitty that old programs are not completely cleaned out in Manjaro after uninstalling them.

Second part of your writing I will try out now.

WINEPREFIX=/home/rulinux/.customprefix winecfg
wine: chdir to /home/rulinux/.customprefix : Datei oder Verzeichnis nicht gefunden

… means … not found.

Now the Wine-configuration is opening. Tiny but first success! :grinning:

LOL
Alright, now repeat that command and see if the wine configuration is still working.
If that works, then you can test wine explorer instead of winecfg. Use the working wineprefix.

About the wheel group. I think it’s has the same level as root or at least have the same administrative level as the root account. You may have problems using any file or folders registered to wheel group in the future. And it might be dangerous. I suggest you try to find another way to use your second hard drive without chown your user account to wheel group.

PS:
I’m sleepy. I need to off to bed now. So, good luck. I hope you can run wine without trouble anymore. :grin: