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: Most helpful
  1. 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

  2. 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