Results 1 to 8 of 8

Thread: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

  1. #1

    Default Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    Hi there,

    I am simply trying to update Tumbleweed, and after retrieving all the repositories, installation fails:

    Code:
    (1/2528) Installing: MozillaFirefox-branding-openSUSE-68-2.2.x86_64 .....................................................................................................................................[error] Installation of MozillaFirefox-branding-openSUSE-68-2.2.x86_64 failed:
    Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic
    error: MozillaFirefox-branding-openSUSE-68-2.2.x86_64: install failed
    error: MozillaFirefox-branding-openSUSE-45-4.2.x86_64: erase skipped
    Repos are up to date:




    Code:
    # | Alias            | Name             | Enabled | GPG Check | Refresh | URI                                                     
    --+------------------+------------------+---------+-----------+---------+---------------------------------------------------------
    1 | repo-debug       | repo-debug       | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/debug      
    2 | repo-non-oss     | repo-non-oss     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss    
    3 | repo-oss         | repo-oss         | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss        
    4 | repo-src-non-oss | repo-src-non-oss | No      | ----      | ----    | http://download.opensuse.org/tumblew...po/src-non-oss
    5 | repo-src-oss     | repo-src-oss     | No      | ----      | ----    | http://download.opensuse.org/tumbleweed/repo/src-oss    
    6 | repo-update      | repo-update      | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/
    I have been trying all day long, Even tried moving all removing all the existing repos as I was performing an upgrade from another release.

    Same error message appears when using Yast. Apparently I can' t install or upgrade anything. My last installation was in 03/2019.

    Really appreciate the help.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,485
    Blog Entries
    3

    Default Re: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    I'm not sure. But there was a change in compression algorithm. If you have not been updating regularly, you may have missed the transition period for that change.

    It may be best to do a new install.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    6,495

    Default AW: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    Try:
    Code:
    zypper install -f rpm
    If it works:
    Code:
    zypper dup

  4. #4

    Default Re: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    I've had a lot of problems too these days with the Tumbleweed update, changed keys and incomplete rpm that didn't want to download and install and continually give me errors. I had to change the OSS repository mirror and clear the zypp cache, and now everything is fine
    ------------------------------------
    Correct me if I'm wrong .
    ------------------------------------

  5. #5

    Default Re: AW: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    Quote Originally Posted by Sauerland View Post
    Try:
    Code:
    zypper install -f rpm
    If it works:
    Code:
    zypper dup
    Yep, didn't work

    As you suggested, I tried
    Code:
    sudo zypper install -f rpm
    and it returned

    Code:
    Problem: libappstream-builder8-0.7.14+0-1.2.x86_64 requires librpm.so.8()(64bit), but this requirement cannot be provided
      deleted providers: rpm-4.14.2.1-4.1.x86_64
     Solution 1: deinstallation of libappstream-builder8-0.7.14+0-1.2.x86_64
     Solution 2: do not install rpm-4.15.1-7.2.x86_64
     Solution 3: break libappstream-builder8-0.7.14+0-1.2.x86_64 by ignoring some of its dependencies
    
    Choose from above solutions by number or cancel [1/2/3/c] (c): 1
    Resolving dependencies...
    Resolving package dependencies...
    
    The following 24 NEW packages are going to be installed:
      boost-license1_74_0 distribution-logos-openSUSE-Kubic google-opensans-fonts
      libboost_thread1_74_0 libdrpm0 libffi8 libicu67 libicu67-ledata libmodulemd2
      libpython3_8-1_0 libQt5WaylandClient5 librpmbuild9 libyui13 libyui-ncurses13
      libyui-ncurses-pkg13 libyui-qt13 libyui-qt-graph13 libyui-qt-pkg13 python38
      python38-base python38-curses python38-dbm QGnomePlatform
      yast2-qt-branding-openSUSE
    
    The following 3 packages are going to be REMOVED:
      libappstream-builder8 libyui-ncurses-pkg9 libyui-qt-pkg9
    
    The following 93 packages are going to be upgraded:
      apparmor-utils apparmor-utils-lang appstream-glib appstream-glib-lang deltarpm
      glibc glibc-extra glibc-locale glibc-locale-base libapparmor1 libcreaterepo_c0
      libdw1 libQt5Concurrent5 libQt5Core5 libQt5DBus5 libQt5Gui5 libQt5Network5
      libQt5OpenGL5 libqt5-qtbase-platformtheme-gtk3
      libqt5-qtstyleplugins-platformtheme-gtk2 libQt5Svg5 libQt5Widgets5 libsnmp30
      libsolv-tools libzypp nscd PackageKit PackageKit-backend-zypp
      PackageKit-branding-openSUSE PackageKit-lang perl perl-apparmor perl-base
      perl-Bootloader perl-CPAN-Changes perl-Cpanel-JSON-XS perl-Crypt-SmbHash
      perl-Devel-Symdump perl-Digest-MD4 perl-Digest-SHA1 perl-Encode-Locale
      perl-File-Listing perl-gettext perl-HTML-Parser perl-HTML-Tagset
      perl-HTTP-Cookies perl-HTTP-Daemon perl-HTTP-Date perl-HTTP-Message
      perl-HTTP-Negotiate perl-IO-HTML perl-IO-Socket-SSL perl-libwww-perl
      perl-LWP-MediaTypes perl-LWP-Protocol-https perl-Net-DBus perl-Net-HTTP
      perl-Net-SSLeay perl-Parse-RecDescent perl-Pod-Coverage perl-SNMP
      perl-Term-ReadKey perl-Term-ReadLine-Gnu perl-Test-Pod perl-Test-Pod-Coverage
      perl-TimeDate perl-Try-Tiny perl-URI perl-WWW-RobotRules perl-X11-Protocol
      perl-X500-DN perl-XML-Dumper perl-XML-LibXML perl-XML-NamespaceSupport
      perl-XML-Parser perl-XML-SAX perl-XML-SAX-Base perl-XML-SAX-Expat
      perl-XML-Simple perl-XML-Twig perl-XML-XPath python3-apparmor
      python3-createrepo_c python3-rpm python3-solv rpm vim vim-data vim-data-common
      yast2-core yast2-perl-bindings yast2-pkg-bindings zypper
    
    The following 2 packages are going to change architecture:
      perl-Crypt-SmbHash  x86_64 -> noarch
      perl-X11-Protocol   x86_64 -> noarch
    
    The following package requires a system reboot:
      glibc
    
    93 packages to upgrade, 24 new, 3 to remove, 2 to change arch.
    Overall download size: 20.8 KiB. Already cached: 90.8 MiB. After the operation,
    additional 72.0 MiB will be used.
    
        Note: System reboot required.
    And after retrieving, installation tries to begin:

    Code:
    (  1/118) Installing: boost-license1_74_0-1.74.0-3.1.noarch .............[error]
    Installation of boost-license1_74_0-1.74.0-3.1.noarch failed:
    Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic
    error: boost-license1_74_0-1.74.0-3.1.noarch: install failed
    Might need to do a fresh install.

    Thanks anyways.

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,485
    Blog Entries
    3

    Default Re: AW: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    Quote Originally Posted by lstreit View Post
    Might need to do a fresh install.
    Yes, I think you have fallen too far behind.

    It is possible that you could do an upgrade install with the DVD installer. But, even then, you would probably see many conflicts. A fresh install is likely the best way forward.

    I'll note that I have a Tumbleweed system that I only update every two weeks (using "zypper dup"). And it is doing fine. So you don't have to update every time something changes. But best to not let it get too far out of date.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  7. #7

    Default Re: AW: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    Quote Originally Posted by lstreit View Post
    Yep, didn't work

    As you suggested, I tried
    Code:
    sudo zypper install -f rpm
    and it returned

    Code:
    Problem: libappstream-builder8-0.7.14+0-1.2.x86_64 requires librpm.so.8()(64bit), but this requirement cannot be provided
      deleted providers: rpm-4.14.2.1-4.1.x86_64
     Solution 1: deinstallation of libappstream-builder8-0.7.14+0-1.2.x86_64
     Solution 2: do not install rpm-4.15.1-7.2.x86_64
     Solution 3: break libappstream-builder8-0.7.14+0-1.2.x86_64 by ignoring some of its dependencies
    
    Choose from above solutions by number or cancel [1/2/3/c] (c): 1
    Resolving dependencies...
    Resolving package dependencies...
    
    The following 24 NEW packages are going to be installed:
      boost-license1_74_0 distribution-logos-openSUSE-Kubic google-opensans-fonts
      libboost_thread1_74_0 libdrpm0 libffi8 libicu67 libicu67-ledata libmodulemd2
      libpython3_8-1_0 libQt5WaylandClient5 librpmbuild9 libyui13 libyui-ncurses13
      libyui-ncurses-pkg13 libyui-qt13 libyui-qt-graph13 libyui-qt-pkg13 python38
      python38-base python38-curses python38-dbm QGnomePlatform
      yast2-qt-branding-openSUSE
    
    The following 3 packages are going to be REMOVED:
      libappstream-builder8 libyui-ncurses-pkg9 libyui-qt-pkg9
    
    The following 93 packages are going to be upgraded:
      apparmor-utils apparmor-utils-lang appstream-glib appstream-glib-lang deltarpm
      glibc glibc-extra glibc-locale glibc-locale-base libapparmor1 libcreaterepo_c0
      libdw1 libQt5Concurrent5 libQt5Core5 libQt5DBus5 libQt5Gui5 libQt5Network5
      libQt5OpenGL5 libqt5-qtbase-platformtheme-gtk3
      libqt5-qtstyleplugins-platformtheme-gtk2 libQt5Svg5 libQt5Widgets5 libsnmp30
      libsolv-tools libzypp nscd PackageKit PackageKit-backend-zypp
      PackageKit-branding-openSUSE PackageKit-lang perl perl-apparmor perl-base
      perl-Bootloader perl-CPAN-Changes perl-Cpanel-JSON-XS perl-Crypt-SmbHash
      perl-Devel-Symdump perl-Digest-MD4 perl-Digest-SHA1 perl-Encode-Locale
      perl-File-Listing perl-gettext perl-HTML-Parser perl-HTML-Tagset
      perl-HTTP-Cookies perl-HTTP-Daemon perl-HTTP-Date perl-HTTP-Message
      perl-HTTP-Negotiate perl-IO-HTML perl-IO-Socket-SSL perl-libwww-perl
      perl-LWP-MediaTypes perl-LWP-Protocol-https perl-Net-DBus perl-Net-HTTP
      perl-Net-SSLeay perl-Parse-RecDescent perl-Pod-Coverage perl-SNMP
      perl-Term-ReadKey perl-Term-ReadLine-Gnu perl-Test-Pod perl-Test-Pod-Coverage
      perl-TimeDate perl-Try-Tiny perl-URI perl-WWW-RobotRules perl-X11-Protocol
      perl-X500-DN perl-XML-Dumper perl-XML-LibXML perl-XML-NamespaceSupport
      perl-XML-Parser perl-XML-SAX perl-XML-SAX-Base perl-XML-SAX-Expat
      perl-XML-Simple perl-XML-Twig perl-XML-XPath python3-apparmor
      python3-createrepo_c python3-rpm python3-solv rpm vim vim-data vim-data-common
      yast2-core yast2-perl-bindings yast2-pkg-bindings zypper
    
    The following 2 packages are going to change architecture:
      perl-Crypt-SmbHash  x86_64 -> noarch
      perl-X11-Protocol   x86_64 -> noarch
    
    The following package requires a system reboot:
      glibc
    
    93 packages to upgrade, 24 new, 3 to remove, 2 to change arch.
    Overall download size: 20.8 KiB. Already cached: 90.8 MiB. After the operation,
    additional 72.0 MiB will be used.
    
        Note: System reboot required.
    And after retrieving, installation tries to begin:

    Code:
    (  1/118) Installing: boost-license1_74_0-1.74.0-3.1.noarch .............[error]
    Installation of boost-license1_74_0-1.74.0-3.1.noarch failed:
    Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic
    error: boost-license1_74_0-1.74.0-3.1.noarch: install failed
    Might need to do a fresh install.

    Thanks anyways.
    Before reinstalling, please try as I did clear zypp cache
    Code:
    rm -rf /var/cache/zypp
    change the url of the Oss repo https://mirrors.opensuse.org/list/tumbleweed.html
    I used an ftp url , and then try again with zypper dup
    ------------------------------------
    Correct me if I'm wrong .
    ------------------------------------

  8. #8
    Join Date
    Nov 2009
    Location
    Hampshire, UK
    Posts
    41

    Default Re: Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic

    I had same issue so I installed rpm removing the old packages, halfway through rpm updated and the rest installed.
    Then zypper would fail with certain missing libs so I manually installed each of those until zypper worked.
    Then zypper dup would complete.

    The issue I now see is that the pager in KDE fails. There is no pager on the task bar. No open apps on the task bar. If I scroll on the background to move between virtual desktops processes crash.

    Reported to KDE guys and a fix was applied (there was no check for no virtual screens when it tried to change) but that doesn't seem to be present in Tumbleweed yet or if there isn't fixing my issue - I've even tried a new user so it's not some old user setting kicking around.

    I was doing this on a home setup but have a virtual server at work that I really need to do as it's up for 430 days plus and sees same rpm issue. There I can get the beastie snapshot before I play so can easily roll back but it just works now.
    - Custom built core i7 720, 18GB RAM, nVidia GT1030 Asus Xonar D2X, OpenSuse 15.2 and Tumbleweed 64bit

    He is no fool who gives up that which he cannot keep to gain that he cannot loose - Jim Elliot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •