[Bug 918955] New: missing /root/tmp in fresh install means zypper can't refresh rpm-md repos
http://bugzilla.opensuse.org/show_bug.cgi?id=918955 Bug ID: 918955 Summary: missing /root/tmp in fresh install means zypper can't refresh rpm-md repos Classification: openSUSE Product: openSUSE Factory Version: 201501* Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: me@shadsterling.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Apparently zypper 1.11.20-1.1 uses /root/tmp during refreshing of rpm-md repos, but the installer doesn't create /root/tmp. zypper gives a completely useless error message when it fails because /root/tmp is missing. The installer should create /root/tmp; zypper probably shouldn't be using /root/tmp, but certainly should give a clear error message. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=918955
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=918955
Michael Andres
$ mv /root /xroot; zypper ref -f; mv /xroot /root Forcing raw metadata refresh Retrieving repository 'CA' metadata ..............................................[done] Forcing building of repository cache Building repository 'CA' cache ...................................................[done] ... All repositories have been refreshed.
Works for me as well without /root directory. @Shad: - Zypp per default creates tmp directories below "/var/tmp" unless "ZYPPTMPDIR" environment variable is set to a different location. - libsolvs repo2solv.sh script uses mktemp, which evaluates the TMPDIR environment variable. May it be $ZYPPTMPDIR or $TMPDIR are set to /root/tmp on your system? In case of doubt, please attach your /var/log/zypper.log, so I can check where the error occurs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=918955
Shad Sterling
http://bugzilla.opensuse.org/show_bug.cgi?id=918955 --- Comment #4 from Michael Andres--- > $ TMPDIR=/root/tmp zypper -v ref -f > ... > Building repository 'CA' cache .......................................[done] > > Error building the cache: > [|] Failed to cache repo (3). > History: > - 'repo2solv.sh' '-o' '/var/cache/zypp/solv/CA/solv' '-X' '/var/cache/zypp/raw> /CA' > mktemp: failed to create file via template '/root/tmp/tmp.XXXXXXXXXX': No such > file or directory > > > Skipping repository 'CA' because of the above error. JFYI: Verbose output (zypper -v) prints the whole history. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=918955
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com