-
Notifications
You must be signed in to change notification settings - Fork 855
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
Arch Pacman broken (fails reading list of installed packages) #2310
Comments
@fpqc - Are you able to downgrade the pacman version to see if that changes anything? That will reduce one of the variable here. |
@sunilmut I also have this problem too after upgrading build 16237. I didn't upgrade the pacman. |
@sunilmut Grabbed 5.0.1-5 from my remote package cache downgrading now. Edit: Still fails in the same way. I'm using this bootstrap tarball https://mirrors.kernel.org/archlinux/iso/latest/archlinux-bootstrap-2017.07.01-x86_64.tar.gz Here's the one from May, which definitely worked at the time on earlier builds of Windows: https://mirrors.kernel.org/archlinux/iso/2017.05.01/archlinux-bootstrap-2017.05.01-x86_64.tar.gz It fails when you chroot in to see the existing pacman database, meaning that it must be a WSL regression and not a pacman or glibc regression. |
@sunilmut If you untar and chroot into the bootstrap environment, Previously (on earlier builds like 16215), The output on WSL 16237 is nonexistent. Since the updated versions of strace are still not working due to #555 , I'm guessing you can get the traces directly out of the driver to see what syscalls are getting hit and perhaps what's breaking. |
Looking into this now, starting with a repro. |
Looks like I have a repro. Will start digging. |
Found the culprit. syscall trace of
syscall trace of
Note how after the LSEEK call, the cursor is not rewinding. We did some changes to the getdents syscall recently and regressed this. I tested some privates and the issue is resolved. I will get this in and try to get it fast tracked. Thanks @fpqc for reporting the issue. Also adding @SvenGroot as FYI. |
The fix has been checked in the dev branch and we will try to get it up as soon as possible. Additionally, are there any other known blockers in getting strace to work on Arch, other than #555 ? |
@SvenGroot recently added support for |
#555 is "fixinbound" :) |
In which build we can expect this fix? |
Most recent Insider build has the fix. |
Do we have to uninstall / reinstall to see the chages? Running pacman -Q still shows nothing for me on latest build. |
No you do not have to reinstall. I read over this thread again and it looks like there is one additional fix that will be coming soon. |
@meltdown03 If you used my workaround it is highly recommended to reinstall because the database will be broken and inaccurate. |
I've been using the workaround everytime I install/update anything. There's no way to rebuild the database somehow? |
Nope. This was sort of implicit when I warned that -Su is going to break. You could fix it I guess by doing pacman -S base base-devel --force and then manually force-reinstalling each of the packages you had previously installed. |
@benhillis You should just be able to mark this fixed (not even fixedininsider because it was a fast-ring only regression). I tested in the latest build and all is well. |
This is fixed in 16257. |
Build 16237
Installing packages with pacman in an Arch userspace (manual setup instructions here ) now fails to see that installed packages are installed, so installing a new package will install all dependencies up to the very top of the dependency tree. I think this also happened in the previous build (16236) (actually no longer sure), and I'm not sure if it happened due to a change in the code of Pacman or a change in WSL (I don't have a Win10 computer on hand running CU, just insider builds).
The workaround is to delete the local database (/var/lib/pacman/local) before every manual installation of a package, but this completely breaks updating with -Su.
The text was updated successfully, but these errors were encountered: