yuk7 / ArchWSL

ArchLinux based WSL Distribution. Supports multiple install.
https://git.io/archwsl
MIT License
6.73k stars 197 forks source link

`sudo pacman -Su` results in errors #343

Open olsonpm opened 8 months ago

olsonpm commented 8 months ago

IMPORTANT Please read README and Docs before creating the issue.

Please fill out the below information: Describe the issue A clear and concise description of what the bug is.

when setting up a new instance, I get a couple errors upon running sudo pacman -Su

( 1/13) Creating system user accounts...
Failed to take /etc/passwd lock: Invalid argument
error: command failed to execute correctly
...
( 7/13) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
All rules containing unresolvable specifiers will be skipped.
/usr/lib/tmpfiles.d/shadow.conf:1: Failed to resolve group 'groups': No such process
error: command failed to execute correctly

full command output here

To Reproduce Steps to reproduce the behavior:

go through steps as described in docs. Error occurs in the last command at Initialize Keyring

Expected behavior A clear and concise description of what you expected to happen.

I expected the output to not contain errors

Screenshots If applicable, add screenshots to help explain your problem.

Enviroment:

λ wsl --set-version arch 1
Conversion in progress, this may take a few minutes.
The distribution is already the requested version.
Error code: Wsl/Service/WSL_E_VM_MODE_INVALID_STATE

however wsl --version results in

λ wsl --version
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.3930

so let me know if this is an invalid setup. Working with this has been extremely frustrating.

Additional context Add any other context about the problem here. this is on an azure windows vm provided by my employer so I'd have to ask for additional details surrounding the vm if that info is needed

LighghtEeloo commented 8 months ago

Try these:

sudo pacman -S archlinux-keyring
sudo pacman -Syyu
olsonpm commented 8 months ago

here's the full output of those two commands

but the issue is with the original sudo pacman -Syu, i.e. if I rerun sudo pacman -Syu then the output says everything's fine - the same way sudo pacman -Syyu does. However when further trying to use arch, clearly things aren't working properly as I run into a lot of issues such as being unable to install packages. The original hint that things aren't working like they should is with the first run of sudo pacman -Syu