WSL GUI : Error at file_io_posix.cc

Nithin R 1 Reputation point
2022-01-14T17:18:21.573+00:00

Hello,

I installed wsl and wslg.
Running distro : kali-linux.

I'm facing issues when running GUI applications in kali-linux.

I installed chrome from this official Microsoft link : https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

But it throws me this error below :

   [0114/222316.198616:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)  
   [0114/222316.198656:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)  
   Trace/breakpoint trap  

I also installed brave-browser but that also throws a similar error :

   [0114/222829.587397:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)  
   [0114/222829.587443:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)  
   /usr/bin/brave-browser: line 48:   130 Trace/breakpoint trap   "$HERE/brave" "$@"  

I'm not sure on what to do now. Please help.

The reason why I need GUI apps in linux distro is because when I setup a VPN connection using linux I cannot connect to the tunnel using native windows browser. So my turnaround was using GUI apps on linux. If there's any other alternative to this, then please suggest. Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,164 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,223 questions
0 comments No comments
{count} votes

7 answers

Sort by: Newest
  1. Nithin R 1 Reputation point
    2022-01-29T06:54:41.273+00:00

    Helllo @Dave Patrick , I have also created an issue at the Github Repo you had pointed but I don't have any answers yet.

    Please help. The issue still exists.

    Thank you.

    0 comments No comments

  2. Nithin R 1 Reputation point
    2022-01-29T06:52:41.67+00:00

    Thanks for the reply @Frederic Cand

    However, this didn't not work for me either. Now when I do a google-chrome or firefox-esr in terminal I get the same error but after 20-30 seconds of idle time. I did install vcxsrv like you'd mentioned.

    The reason why I run vpn under wsl is because I need to use Linux tools to hit the vpn connection. If I make the vpn connection using windows then I won't be able to hit it using any Linux distro shell but only powershell.

    Haha, the trouble is still here but I don't think the Microsoft peeps are helping. At this point I don't really know what to do. I've also created an issue at the Git Repo but no luck there as well. I thought I was the only one going through this issue because I did something wrong but turns out a lot of people have this and I really wish Microsoft does something to help us out.

    Let's see where this is going.

    0 comments No comments

  3. Frederic Cand 1 Reputation point
    2022-01-26T07:52:35.957+00:00

    Man I have the exact same issue. OpenVPN (GUI or Connect) are not working with my employer OpenVPN Server (it was with the previous one though), so I use openvpn under wsl ubuntu and it's working fine, but then, some graphical apps are working fine, some are not.
    I tried everything such as installing WSL GFX drivers (intel and nvidia), installing drivers / libs under wsl ubuntu, but no change.
    Some people talk about the WAYLAND_DISPLAY against DISPLAY export variable, I tried but nothing changes. Some people also talk about the firewall but really everything is correctly setup.

    In my case, chrome is not starting (same error as you), but firefox is working (but errors are raised regarding the hand cursor though).
    Gimp is starting, but VLC is not.
    And so on.

    The only thing that worked is installing vcxsrv on windows (run with access control disabled), and add the following in my ~/.bashrc :

    export DISPLAY=$(route.exe print 0.0.0.0 | grep 0.0.0.0 | head -n1 | awk '{ print $4} '):0.0
    export LIBGL_ALWAYS_INDIRECT=1

    Then all seem ok.

    Btw why are you running your vpn under wsl ? Can't you run it under windows directly ? In my case it ' s not working and all this is a workaround of that root issue.

    Good luck with your troubles.

    0 comments No comments

  4. Nithin R 1 Reputation point
    2022-01-18T06:39:02.823+00:00

    Hello, thanks for the reply.

    I did raise an issue there and found out it was duplicate. But the solution in the original issue didn't work for me either.

    Issue link : https://github.com/microsoft/WSL/issues/7896

    Hope I get some assistance soon.

    Thanks again.

    0 comments No comments

  5. Dave Patrick 426.1K Reputation points MVP
    2022-01-18T02:41:22.293+00:00

    The product group for WSL actively monitors questions over at
    https://github.com/microsoft/WSL#readme

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments