https://bugzilla.novell.com/show_bug.cgi?id=838039
https://bugzilla.novell.com/show_bug.cgi?id=838039#c0
Summary: zypper does not present a good reason if RPM installation fails Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 4 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: ptesarik@suse.com QAContact: qa-bugs@suse.de Found By: L3 Blocker: ---
Additional output of a failed "rpm" process is not presented to the user (at least) when running "zypper in". Instead, it says: "Installation aborted by user":
hananiah:~ # zypper in ImageMagick Loading repository data... Reading installed packages... Resolving package dependencies...
The following NEW package is going to be installed: ImageMagick
1 new package to install. Overall download size: 4.0 MiB. After the operation, additional 8.3 MiB will be used. Continue? [y/n/?] (y): (1/1) Installing: ImageMagick-6.8.6.7-1.3 ...........................................................................................<100%>[/] Problem occured during or after installation or removal of packages: Installation aborted by user
Please see the above error message for a hint.
The true reason is that "rpm -i" fails:
hananiah:~ # rpm -i /var/cache/zypp/packages/repo-oss/suse/x86_64/ImageMagick-6.8.6.7-1.3.x86_64.rpm error: unpacking of archive failed on file /usr/share/doc/packages/ImageMagick/www/api/MagickCore/exception_8h.html;52247155: cpio: link error: ImageMagick-6.8.6.7-1.3.x86_64: install failed
This is a regression from a previous version, which said:
Installation of ImageMagick-6.8.6.7-1.2 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/share/doc/packages/ImageMagick/www/api/MagickCore/exception_8h.html;521386cc: cpio: link error: ImageMagick-6.8.6.7-1.2.x86_64: install failed
Although still not ideal, the previous behaviour was much easier to debug.
See bnc 835695 if you wonder why installation fails in the first place.
Additional Info:
hananiah:~ # rpm -q zypper libzypp zypper-1.9.1-1.1.x86_64 libzypp-13.5.0-1.1.x86_64
https://bugzilla.novell.com/show_bug.cgi?id=838039
https://bugzilla.novell.com/show_bug.cgi?id=838039#c1
Michael Andres ma@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #1 from Michael Andres ma@suse.com 2013-09-02 16:24:44 CEST --- Fixed in git for next libzypp version. Previous behavior restored.