[Bug 1159195] New: wsl --upgrade breaks zypper
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195 Bug ID: 1159195 Summary: wsl --upgrade breaks zypper Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: Mathias.Homann@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I'm running an opensuse 15.1 inside windows subsystem for linux, and I found that upgrading the filesystem to WslFs breaks zypper. if you run "wsl --upgrade openSUSE-Leap-15-1" as Administrator on windows, and afterwards try to run "zypper refresh" in your WSL Leap image, zypper fails with these errors: kirika:~ # zypper ref Retrieving repository 'leap-15.1' metadata .............................................................................................................................................................[error] Repository 'leap-15.1' is invalid. [leap-15.1|http://download.opensuse.org/distribution/leap/15.1/repo/oss/] Valid metadata not found at specified URL Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'leap-15.1' because of the above error. Retrieving repository 'leap-15.1-update' metadata ......................................................................................................................................................[error] Repository 'leap-15.1-update' is invalid. [leap-15.1-update|http://download.opensuse.org/update/leap/15.1/oss/] Valid metadata not found at specified URL Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'leap-15.1-update' because of the above error. Could not refresh the repositories because of errors. in /var/log/zypper.log you see: 2019-12-13 12:02:20 <5> kirika(120) [zypp] Exception.cc(log):166 RepoManager.cc(refreshMetadata):1221 THROW: [leap-15.1-update|http://download.opensuse.org/update/leap/15.1/oss/] Valid metadata not found at specified URL 2019-12-13 12:02:20 <5> kirika(120) [zypp] Exception.cc(log):166 History: 2019-12-13 12:02:20 <5> kirika(120) [zypp] Exception.cc(log):166 - Can't copy public key data from /var/cache/zypp/raw/leap-15.1-updatekRrguZ/repodata/repomd.xml.key to /var/tmp/TmpFile.DWnK2Z 2019-12-13 12:02:20 <5> kirika(120) [zypp] Exception.cc(log):166 2 which leads me to believe that WslFS as storage for a WSL image is incompatible with zypper. There is no workaround, and only a **destructive** fix: reset the "app" which basically means wipe the image and set it up again, losing everything you did inside. or run openSUSE-Leap-15-1.exe clean in an administrator shell which is basically the same, and also wipes everything. Reproduces with 15.0 and 15.1, can't try with other versions since they aren't on the windows store. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c1
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c2
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c3
Michael Andres
lstat("/var/tmp/zypp.lbz0Ti/zypp-general-krS2i2H9", 0x7fffd1bbada0) = -1 ENOENT (No such file or directory) lstat("/var/tmp/zypp.lbz0Ti/zypp-trusted-kr7jMeie", 0x7fffd1bbada0) = -1 ENOENT (No such file or directory)
Then please proviede a zypper.log as it happens flawless in my environment.
zypp-s15sp1:~ (0) $ zypper mr -G Leap15.1-update GPG check has been disabled for repository 'Leap15.1-update'. zypp-s15sp1:~ (0) $ zypper ref -f Leap15.1-update Forcing raw metadata refresh Retrieving repository 'Leap15.1-update' metadata [done] Forcing building of repository cache Building repository 'Leap15.1-update' cache [done] Specified repositories have been refreshed.
zypp-s15sp1:~ (0) $ zypper mr -g Leap15.1-update GPG check has been enabled for repository 'Leap15.1-update'. zypp-s15sp1:~ (0) $ zypper ref -f Leap15.1-update Forcing raw metadata refresh Retrieving repository 'Leap15.1-update' metadata [done] Forcing building of repository cache Building repository 'Leap15.1-update' cache [done] Specified repositories have been refreshed.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c4
--- Comment #4 from Mathias Homann
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c5
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c6
--- Comment #6 from Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c7
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c8
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c9
Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c10
--- Comment #10 from Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195
http://bugzilla.opensuse.org/show_bug.cgi?id=1159195#c11
Jeff Kowalczyk
Mounting tmpfs to (here) /var/tmp works around the issue.
Expanding on the workaround described by Andreas: WSL will mount /var/tmp as tmpfs configured in /etc/fstab: tmpfs /var/tmp tmpfs defaults 0 0 An alternate workaround is to persistently set the environment variable ZYPPTMPDIR to a mounted tmpfs: ZYPPTMPDIR=/mnt/zypptmp with ZYPPTMPDIR preserved in calls to sudo: cat /etc/sudoers.d/env-keep-zypptmpdir Defaults env_keep += "ZYPPTMPDIR" -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com