Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wslview outputting errors from reg.exe #277

Closed
1 task done
ElanHasson opened this issue Jun 6, 2023 · 7 comments
Closed
1 task done

wslview outputting errors from reg.exe #277

ElanHasson opened this issue Jun 6, 2023 · 7 comments
Assignees
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug

Comments

@ElanHasson
Copy link

Windows Version

Windows 11

Windows Build Number

22H2 22621.1702

WSL Version

WSL 2

Distro Version

Ubuntu 22.04

WSL Utilities Version

wslu v3.2.3-1; wslview v10

Describe the bug

❯ wslview https://google.com
ERROR: Invalid Argument/Option - 'HKLM\Software\Microsoft\Windows NT\CurrentVersion'.
Type "REG /?" for usage.

There shouldn't be an error here.

Steps to Reproduce

  1. `wslview https://google.com/

Expected behavior

No output should be printed

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ElanHasson ElanHasson added the Bug This is either an issue that describes a bug or a PR that resolves a bug label Jun 6, 2023
@patrick330602
Copy link
Member

Please use PPA version of the Ubuntu: https://wslutiliti.es/wslu/install.html#ubuntu

@ElanHasson
Copy link
Author

Hmm pretty sure that's what I used? Guess not though 😅

@patrick330602
Copy link
Member

patrick330602 commented Jun 20, 2023

No, the PPA version for wslu is 4.1.1-1ubuntu1~22.04 while yours is 3.2.3, which is the version from the official repository

@ElanHasson
Copy link
Author

ahh got it, need to set my apt policy preferences. Thanks!

@rdeavila
Copy link

Hi!
For me on AlmaLinux9, with v4.1.1, I see the same Invalid argument problem.

[rdeavila@host:~]$ wslfetch --version
/mnt/c/Windows/System32/reg.exe: Invalid argument
wslu v4.1.1-1
[rdeavila@host:~]$ wslfetch
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/usr/bin/wslsys: line 267: [: : integer expression expected
/mnt/c/Windows/System32/chcp.com: Invalid argument
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe: Invalid argument
/usr/bin/wslsys: line 270: [: : integer expression expected
/mnt/c/Windows/System32/chcp.com: Invalid argument
         'c:.                            Windows Subsystem for Linux (WSL1)
        lkkkx, ..       ..   ,cc,        rdeavila@host
        okkkk:ckkx'  .lxkkx.okkkkd       Build:
        .:llcokkx'  :kkkxkko:xkkd,       Branch:
      .xkkkkdood:  ;kx,  .lkxlll;        Release: AlmaLinux 9.2 (Turquoise Kodkod)
       xkkx.       xk'     xkkkkk:       Kernel: Linux 5.15.123.1-microsoft-standard-WSL2
       'xkx.       xd      .....,.       Uptime (Windows): 0d 0h 0m
      .. :xkl'     :c      ..''..
    .dkx'  .:ldl:'. '  ':lollldkkxo;
  .''lkkko'                     ckkkx.
'xkkkd:kkd.       ..  ;'        :kkxo.
,xkkkd;kk'      ,d;    ld.   ':dkd::cc,
 .,,.;xkko'.';lxo.      dx,  :kkk'xkkkkc
     'dkkkkkxo:.        ;kx  .kkk:;xkkd.
       .....   .;dk:.   lkk.  :;,
             :kkkkkkkdoxkkx
              ,c,,;;;:xkkd.
                ;kkkkl...
                ;kkkkl
                 ,od;

@abika
Copy link

abika commented Oct 5, 2023

I get the same on Ubuntu.

17:39 $ wslfetch --version
/mnt/c/Windows/System32/reg.exe: Invalid argument
wslu v4.1.1-1
17:39 $ wslfetch
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/mnt/c/Windows/System32/reg.exe: Invalid argument
/usr/bin/wslsys: line 267: [: : integer expression expected
/mnt/c/Windows/System32/chcp.com: Invalid argument
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe: Invalid argument
/usr/bin/wslsys: line 270: [: : integer expression expected
/mnt/c/Windows/System32/chcp.com: Invalid argument
               .-/+oossssoo+/-.               Windows Subsystem for Linux (WSL1)
           `:+ssssssssssssssssss+:`           abc@HybridCL-20ogUC
         -+ssssssssssssssssssyyssss+-         Build:
       .ossssssssssssssssssdMMMNysssso.       Branch:
      /ssssssssssshdmmNNmmyNMMMMhssssss/      Release: Ubuntu 20.04.6 LTS
     +ssssssssshmydMMMMMMMNddddyssssssss+     Kernel: Linux 5.15.90.1-microsoft-standard-WSL2
    /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Uptime (Windows): 0d 0h 0m
   .ssssssssdMMMNhsssssssssshNMMMdssssssss.
   +sssshhhyNMMNyssssssssssssyNMMMysssssss+
   ossyNMMMNyMMhsssssssssssssshmmmhssssssso
   ossyNMMMNyMMhsssssssssssssshmmmhssssssso
   +sssshhhyNMMNyssssssssssssyNMMMysssssss+
   .ssssssssdMMMNhsssssssssshNMMMdssssssss.
    /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
     +sssssssssdmydMMMMMMMMddddyssssssss+
      /ssssssssssshdmNNNNmyNMMMMhssssss/
       .ossssssssssssssssssdMMMNysssso.
         -+sssssssssssssssssyyyssss+-
           `:+ssssssssssssssssss+:`
               .-/+oossssoo+/-.

@patrick330602
Copy link
Member

@rdeavila @abika Your issues seems to be more related to microsoft/WSL#6170 which Microsoft haven't solved yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug
Projects
None yet
Development

No branches or pull requests

4 participants