wine: could not load kernel32.dll, status c0000135

Questions about Wine on Linux
Locked
lazazael
Newbie
Newbie
Posts: 4
Joined: Tue Nov 03, 2020 5:27 am

wine: could not load kernel32.dll, status c0000135

Post by lazazael »

I get this msg when I try to load up Doom Eternal using Proton 5.09 or 5.13-1 using the command line.

[user@ws Proton 5.0]$ ./proton run '/home/user/.wine/drive_c/DE/DOOMEternalx64vk.exe'
esync: up and running.
wine: could not load kernel32.dll, status c0000135

It used to work up until now. Ive already reinstall wine, steam and DoomEternal w/o success. kernel32.dll is in the folders:

/home/user/.wine/drive_c/windows/system32/
/home/user/.steam/steam/steamapps/compatdata/323910/pfx/drive_c/windows/system32/

Thanks for your kind help and information in advance!
lazazael
Newbie
Newbie
Posts: 4
Joined: Tue Nov 03, 2020 5:27 am

Re: wine: could not load kernel32.dll, status c0000135

Post by lazazael »

[laza@lazacenter ~]$ wine --version
wine-5.20 (Staging)
[laza@lazacenter ~]$ uname -r
5.8.16-300.fc33.x86_64
lazazael
Newbie
Newbie
Posts: 4
Joined: Tue Nov 03, 2020 5:27 am

Re: wine: could not load kernel32.dll, status c0000135

Post by lazazael »

The strange thing is taht this problem started today, w/o prior tinkering with wine or steam on my behalf.
lazazael
Newbie
Newbie
Posts: 4
Joined: Tue Nov 03, 2020 5:27 am

Re: wine: could not load kernel32.dll, status c0000135

Post by lazazael »

Maybe its about file permissions? Since the files are there but couldn't be loaded. How can I make sure that my permissions are right for wine ?
User avatar
ASOwnerYT
Level 1
Level 1
Posts: 5
Joined: Wed Apr 28, 2021 7:35 pm

Re: wine: could not load kernel32.dll, status c0000135

Post by ASOwnerYT »

I'm having the same issue. Any luck after almost a year?
rubensneto96
Newbie
Newbie
Posts: 2
Joined: Fri May 14, 2021 8:04 am

Re: wine: could not load kernel32.dll, status c0000135

Post by rubensneto96 »

I tried using the "sudo" command and it worked for me.
Chieve
Newbie
Newbie
Posts: 1
Joined: Sat Jan 29, 2022 5:36 pm

Re: wine: could not load kernel32.dll, status c0000135

Post by Chieve »

rubensneto96 wrote: Fri May 14, 2021 8:07 am I tried using the "sudo" command and it worked for me.
Bro, you're a life saver!
m4nt1s
Newbie
Newbie
Posts: 2
Joined: Tue Feb 01, 2022 4:15 am

Re: wine: could not load kernel32.dll, status c0000135

Post by m4nt1s »

SOLUTION.
I had the same error message trying to run a setup.exe with wine to install a windows game on linux. As google led me here tracking down the error, I am leaving my solution in this thread.

In my case, the problem was that I had created a WINEPREFIX variable, but had forgotten to use the export command:

Code: Select all

$ WINEPREFIX=~/gamefolder
$ wine setup.exe
-> error could not load kernel32.dll ...
Reason: the WINEPREFIX variable is not accessible to subprocesses.

So my solution was:

Code: Select all

$ export WINEPREFIX=~/gamefolder
$ wine setup.exe
using "export", the WINEPREFIX variable is accessible to subprocesses.
-> installation works smoothly.

Maybe the problem was similar here with proton. In any case I'd not recommend the "sudo" solution as it looks like an unsafe workaround for me.
Installing or playing games with wine/proton should usually not require admin privileges. Please remember that also games can be exploited to gain root level access to your computer.
Locked