WSL1 unable to upgrade from bookworm to trixie
Describe the bug
On WSL1 Pengwin fails to upgrade from bookworm to trixie. During configure systemd, udev and a few other packages fail to get a lock on /etc/passwd.
opensysusers is removed too and conflicts with systemd-sysusers
To Reproduce
- Update
pengwin-baseto the latest version sudo apt-get dist-upgrade- The upgrade will fail to lock
/etc/passwd
Expected behavior The upgrade to work successfully.
Screenshots
❯ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
gsfonts imagemagick-6.q16 libargon2-1 libdav1d6 libfdisk1 libflac12 libllvm15 libmagickcore-6.q16-6
libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libpaper1 libpython3.11-minimal libpython3.11-stdlib
libtext-charwidth-perl libtext-wrapi18n-perl libwayland-server0 libx265-199 python3.11 python3.11-minimal
systemd-dev ucf
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
imagemagick-6-common libcups2 libcurl3-gnutls libcurl4 libdb5.3 libelf1 libext2fs2 libgdbm-compat4 libgdbm6
libglib2.0-0 libgnutls30 libhogweed6 libimath-3-1-29 libjxr0 libmpg123-0 libnetpbm11 libnettle8 libnpth0 libpng16-16
libpsl5 libreadline8 libssh2-1 libssl3 libtirpc3 libxt6 opensysusers
The following NEW packages will be installed:
at-spi2-common at-spi2-core bsd-mailx dconf-gsettings-backend dconf-service exim4-base exim4-config
exim4-daemon-light fonts-dejavu-mono gcc-14-base gsettings-desktop-schemas imagemagick-7-common imagemagick-7.q16
libapt-pkg7.0 libassuan9 libatk-bridge2.0-0t64 libatk1.0-0t64 libatomic1 libatspi2.0-0t64 libcbor0.10
libcloudproviders0 libcolord2 libcups2t64 libcurl3t64-gnutls libcurl4t64 libdav1d7 libdb5.3t64 libdconf1
libdecor-0-0 libdecor-0-plugin-1-gtk libdialog15 libelf1t64 libepoxy0 libevent-2.1-7t64 libext2fs2t64
libfile-fcntllock-perl libflac14 libgail-common libgail18t64 libgdbm-compat4t64 libgdbm6t64 libglib2.0-0t64
libgnutls-dane0t64 libgnutls30t64 libgtk-3-0t64 libgtk-3-bin libgtk-3-common libgtk2.0-0t64 libgtk2.0-bin
libgtk2.0-common libhogweed6t64 libimath-3-1-29t64 libjxr0t64 liblastlog2-2 libldap-common libldap2 libllvm19
liblockfile-bin liblockfile1 libmagickcore-7.q16-10 libmagickcore-7.q16-10-extra libmagickwand-7.q16-10
libmpg123-0t64 libnetpbm11t64 libnettle8t64 libngtcp2-crypto-ossl0 libnpth0t64 libpaper2 libperl5.40 libpng16-16t64
libpsl5t64 libpython3.13-minimal libpython3.13-stdlib libraw23t64 libreadline8t64 libsframe1 libssh2-1t64 libssl3t64
libtext-charwidth-perl libtext-wrapi18n-perl libtirpc3t64 libunbound8 libunistring5 libwayland-cursor0 libx265-215
libxcb-xkb1 libxcursor1 libxdamage1 libxkbcommon-x11-0 libxkbcommon0 libxt6t64 linux-sysctl-defaults login.defs luit
netbase openssl-provider-legacy perl-modules-5.40 publicsuffix python3.13 python3.13-minimal sqv systemd-cryptsetup
xkb-data
The following packages will be upgraded:
adduser apt apt-utils bc binutils binutils-common binutils-x86-64-linux-gnu coreutils curl desktop-file-utils dialog
dirmngr e2fsprogs fonts-dejavu-core gcc-12-base ghostscript git git-man gnome-themes-extra gnupg gnupg-l10n
gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv gtk-update-icon-cache
gtk2-engines-murrine gtk2-engines-pixbuf imagemagick iproute2 iputils-ping kmod libapt-pkg-perl libbinutils libbpf1
libcairo-gobject2 libcairo2 libcryptsetup12 libctf0 libde265-0 libdjvulibre21 libegl-mesa0 libfido2-1 libfreetype6
libgbm1 libgcc-s1 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgl1-mesa-dri libglx-mesa0 libgomp1 libgprofng0 libgs10
libgs10-common libgssapi-krb5-2 libharfbuzz0b libheif-plugin-aomenc libheif-plugin-dav1d libheif-plugin-libde265
libheif-plugin-x265 libheif1 libidn2-0 libjxr-tools libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 liblqr-1-0
libngtcp2-crypto-gnutls8 libnsl2 libnss-systemd libopenexr-3-1-30 libpam-modules libpam-modules-bin libpam-runtime
libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libperl5.36 libpolkit-agent-1-0
libpolkit-gobject-1-0 libpython3-stdlib librsvg2-2 librsvg2-common librtmp1 libsasl2-2 libsasl2-modules-db
libsndfile1 libstdc++6 libsystemd-shared libsystemd0 libudev1 libxaw7 libxmu6 libz3-4 login man-db mesa-libgallium
mesa-utils-bin mesa-va-drivers mesa-vulkan-drivers netpbm openssh-client openssl passwd perl perl-base
pinentry-curses polkitd procps python3 python3-apt python3-minimal rsync shared-mime-info socat sudo systemd
systemd-sysv systemd-timesyncd ucf udev util-linux util-linux-extra wget x11-utils
132 upgraded, 103 newly installed, 26 to remove and 0 not upgraded.
Additional context Appears to be similar to #789
After backing up pengwin, I reinstalled it from scratch and still encountered the problem. Would a new rootfs workaround this issue?
Basic Troubleshooting Checklist
[x] I have searched Google for the error message.
[x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[ ] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues.
[x] I have run Windows 10 updates and restarted.
[x] I have restarted WSL service: wsl.exe --terminate WLinux wsl.exe --shutdown.
What other troubleshooting have you attempted?
Force upgrading opensysusers and holding the package, leads to apt deadlock.
sudo mv /var/lib/dpkg/info/systemd-timesyncd.postinst /tmp/
sudo mv /var/lib/dpkg/info/systemd.postinst /tmp/
sudo dpkg --configure -a
This part works but further apt operations failed.
Pengwin Version
PENGWIN_VERSION="25.10.0"
WSL general info
Release Install Date: Mon Dec 23 01:23:57 NZDT 2024 Branch: ge_release Build: 26100 Full Build: 26100.1.amd64fre.ge_release.240331-1435 Display Scaling: 1 Locale (Windows): en_XX Theme (Windows): light Uptime (Windows): 0d 7h 15m Version (WSL): 1 Uptime (WSL): 0d 0h 12m Release: Pengwin Kernel: Linux 4.4.0-26100-Microsoft Packages: 442 IPv4 Address: 192.168.X.X System Type (Windows): Desktop SystemD Status: N/A