I am attempting to use dnf update to update all of the packages on my Rocky 8 system. When I attempt to do so one of the packages fails to install with the error “Error unpacking rpm package”. I can get the update to complete if I use --skip-broken but that isn’t a great solution beyond a few times.
The package in question is setup version 2.12.2-11. Here is the verbose output from DNF.(Yes I know root isn’t good for general use.)
[root@server1 ~]# dnf --verbose -y update
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.7.0
cachedir: /var/cache/dnf
Unknown configuration option: pkg_gpgcheck = 1 in /etc/yum.repos.d/centrify-rpm-redhat.repo
Unknown configuration option: autorefresh = 1 in /etc/yum.repos.d/centrify-rpm-redhat.repo
User-Agent: constructed: 'libdnf (Rocky Linux 8.10; generic; Linux.x86_64)'
repo: using cache for: bacula-enterprisee
bacula-enterprisee: using metadata from Wed 20 Dec 2023 09:15:31 AM UTC.
repo: using cache for: InteloneAPI
InteloneAPI: using metadata from Mon 20 May 2024 04:26:38 PM UTC.
repo: using cache for: appstream
appstream: using metadata from Mon 10 Jun 2024 06:31:07 PM UTC.
repo: using cache for: baseos
baseos: using metadata from Mon 10 Jun 2024 06:31:13 PM UTC.
repo: using cache for: extras
extras: using metadata from Mon 10 Jun 2024 06:17:36 PM UTC.
repo: using cache for: powertools
powertools: using metadata from Mon 10 Jun 2024 06:30:23 PM UTC.
repo: using cache for: centrify-rpm-redhat
centrify-rpm-redhat: using metadata from Fri 07 Jun 2024 05:50:57 AM UTC.
repo: using cache for: epel
epel: using metadata from Sat 15 Jun 2024 12:28:08 AM UTC.
repo: using cache for: epel-modular
epel-modular: using metadata from Tue 13 Sep 2022 01:46:46 AM UTC.
repo: using cache for: webmin-noarch
webmin-noarch: using metadata from Tue 16 Apr 2024 06:05:37 AM UTC.
Last metadata expiration check: 0:00:20 ago on Mon 17 Jun 2024 09:14:38 PM UTC.
--> Starting dependency resolution
---> Package setup.noarch 2.12.2-9.el8 will be upgraded
---> Package setup.noarch 2.12.2-11.el8 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
===================================================================================================================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================================================================================================================
Upgrading:
setup noarch 2.12.2-11.el8 baseos 180 k
Transaction Summary
===================================================================================================================================================================================================================
Upgrade 1 Package
Total download size: 180 k
Downloading Packages:
setup-2.12.2-11.el8.noarch.rpm 8.1 MB/s | 180 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.7 MB/s | 180 kB 00:00
Using rpmkeys executable at /usr/bin/rpmkeys to verify signatures
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : setup-2.12.2-11.el8.noarch 1/2
Error unpacking rpm package setup-2.12.2-11.el8.noarch
Errors occurred during transaction.
Verifying : setup-2.12.2-11.el8.noarch 1/2
Verifying : setup-2.12.2-9.el8.noarch 2/2
Completion plugin: Generating completion cache...
Failed: setup-2.12.2-9.el8.noarch
Failed: setup-2.12.2-11.el8.noarch
Failed:
setup-2.12.2-9.el8.noarch setup-2.12.2-11.el8.noarch
Error: Transaction failed
I then ran DNF with --downloadonly and ran RPM to verify the file.
[root@server1 ~]# rpm -vVp setup-2.12.2-11.el8.noarch.rpm
......... c /etc/aliases
......... c /etc/bashrc
......... c /etc/csh.cshrc
......... c /etc/csh.login
......... /etc/dnf/protected.d/setup.conf
......... c /etc/environment
......... c /etc/ethertypes
......... c /etc/exports
......... c /etc/filesystems
......... c /etc/fstab
......... c /etc/group
......... c /etc/gshadow
......... c /etc/host.conf
......... c /etc/hosts
......... c /etc/inputrc
......... c /etc/motd
......... c /etc/networks
......... c /etc/passwd
......... c /etc/printcap
......... c /etc/profile
......... /etc/profile.d
......... c /etc/profile.d/csh.local
......... /etc/profile.d/lang.csh
......... /etc/profile.d/lang.sh
......... c /etc/profile.d/sh.local
......... c /etc/protocols
......... c /etc/services
......... c /etc/shadow
......... c /etc/shells
......... c /etc/subgid
......... c /etc/subuid
......... /usr/share/doc/setup
......... d /usr/share/doc/setup/uidgid
......... /usr/share/licenses/setup
......... l /usr/share/licenses/setup/COPYING
I do have other servers running Rocky 8 and none of them have had this issue with the setup package. Normally I use our local internal mirror for installations, rsynced from the main servers, but also tried to do this via the main Rocky servers to remove any possibility of it being a bad file on my mirror or others. Also this has been going on since last week. The wait was to see if it a package update might be provided to fix it.
Thanks for any assistance.