dnf upgrade and dnf update fails

Issues related to applications and software problems and general support
Post Reply
Exlord
Posts: 2
Joined: 2020/01/18 06:09:43
Location: Tabriz, Iran
Contact:

dnf upgrade and dnf update fails

Post by Exlord » 2020/01/18 06:27:22

Hi, I upgraded my centos7 to 8 recently ...

Now when I try

Code: Select all

dnf upgrade --best --allowerasing
dnf update --best --allowerasing
I am getting this error :

Code: Select all


Running transaction check
Error: transaction check vs depsolve:
(gcc >= 8 with gcc < 9) is needed by annobin-8.78-1.el8.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by annobin-8.78-1.el8.x86_64
(annobin if gcc) is needed by redhat-rpm-config-120-1.el8.noarch
rpmlib(RichDependencies) <= 4.12.0-1 is needed by redhat-rpm-config-120-1.el8.noarch
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

[root@vm6263622508 ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)

Code: Select all

rpm --rebuilddb
dnf clean packages
rpm -Va --nofiles --nodigest
makes no changes

Code: Select all

dnf update
dnf upgrade
results in this error :

Code: Select all

Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  file /usr/lib64/libgdbm_compat.so.4.0.0 from install of gdbm-libs-1:1.18-1.el8.x86_64 conflicts with file from package gdbm-1.10-8.el7.x86_64

Error Summary
-------------

Code: Select all

dnf remove gdbm

Error: Problem: The operation would result in removing the following protected packages: dnf

Code: Select all

dnf swap gdbm gdbm-libs

Error: Problem: package python-libs-2.7.5-86.el7.x86_64 requires libgdbm.so.4()(64bit), but none of the providers can be installed - conflicting requests - problem with installed package python-libs-2.7.5-86.el7.x86_64

User avatar
jlehtone
Posts: 2532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: dnf upgrade and dnf update fails

Post by jlehtone » 2020/01/18 19:14:51

Exlord wrote:
2020/01/18 06:27:22
Hi, I upgraded my centos7 to 8 recently ...
There is no 7->8 upgrade. One has to install fresh 8.

Sounds like you have broken your 7 system.

Exlord
Posts: 2
Joined: 2020/01/18 06:09:43
Location: Tabriz, Iran
Contact:

Re: dnf upgrade and dnf update fails

Post by Exlord » 2020/01/19 01:46:51

jlehtone wrote:
2020/01/18 19:14:51

There is no 7->8 upgrade. One has to install fresh 8.

Sounds like you have broken your 7 system.
So what are these then ?
https://www.google.com/search?q=centos+7+to+8+upgrade
https://www.tecmint.com/upgrade-centos-7-to-centos-8/
https://www.howtoforge.com/how-to-upgra ... core-to-8/

User avatar
toracat
Forum Moderator
Posts: 7423
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: dnf upgrade and dnf update fails

Post by toracat » 2020/01/19 06:15:57

None of them are supported by CentOS. There is no officially supported pathway to upgrade CentOS 7 to 8.
CentOS Forum FAQ

User avatar
jlehtone
Posts: 2532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: dnf upgrade and dnf update fails

Post by jlehtone » 2020/01/19 09:59:14

If their ideas got you into tight spot, then you should ask them for assistance. (Although, they might not be able to help any better.)


A "system" has essentially three parts:
  • Installed packages. These change on every version. Fresh install (but rather than overwrite, one can install to different partition/volume/disk)
  • User data. Does not change when OS changes. Best kept separate
  • Configuration. If you have logical config saved outside the system, then you can apply it appropriately into fresh installs

Post Reply

Return to “CentOS 8 - General Support”