GCC Problems upgrading CentOS from 7 to 8

General support questions
Locked
baskervi
Posts: 13
Joined: 2016/05/24 18:53:17

GCC Problems upgrading CentOS from 7 to 8

Post by baskervi » 2020/07/28 14:14:05

I'm running into a dependency issue with gcc and rpmlib(RichDependencies), but it seems to me that the installed gcc version is OK. Can anyone help point me to the right version of gcc? Also, I can't figure out how to install rpmlib(RichDependencies). 'rpm --rebuilddb' did not fix the issue.Thanks

Error: transaction check vs depsolve:
(gcc >= 8 with gcc < 9) is needed by annobin-8.90-1.el8.0.1.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by annobin-8.90-1.el8.0.1.x86_64
(annobin if gcc) is needed by redhat-rpm-config-122-1.el8.noarch
rpmlib(RichDependencies) <= 4.12.0-1 is needed by redhat-rpm-config-122-1.el8.noarch
(flatpak-selinux = 1.6.2-2.el8 if selinux-policy-targeted) is needed by flatpak-1.6.2-2.el8.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by flatpak-1.6.2-2.el8.x86_64
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@scanner ~]# gcc --version
gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: GCC Problems upgrading CentOS from 7 to 8

Post by TrevorH » 2020/07/28 15:12:01

There is no upgrade from CentOS 7 to 8. It is a reinstall. From scratch.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

baskervi
Posts: 13
Joined: 2016/05/24 18:53:17

Re: GCC Problems upgrading CentOS from 7 to 8

Post by baskervi » 2020/07/28 18:30:57

Gotcha. I've read that multiple times. Some folks have been successful, so I had hoped this as well. Thanks for the response. Download of version 8 is complete.

kluch
Posts: 10
Joined: 2020/05/31 05:47:54

Re: GCC Problems upgrading CentOS from 7 to 8

Post by kluch » 2020/10/14 13:27:35

baskervi wrote:
2020/07/28 14:14:05
I'm running into a dependency issue with gcc and rpmlib(RichDependencies), but it seems to me that the installed gcc version is OK. Can anyone help point me to the right version of gcc? Also, I can't figure out how to install rpmlib(RichDependencies). 'rpm --rebuilddb' did not fix the issue.Thanks

Error: transaction check vs depsolve:
(gcc >= 8 with gcc < 9) is needed by annobin-8.90-1.el8.0.1.x86_64
rpmlib(RichDependencies) <= 4.12.0-1 is needed by annobin-8.90-1.el8.0.1.x86_64
...
It is all about perl/python3, just remove them and install after upgrade. It did the trick for me.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: GCC Problems upgrading CentOS from 7 to 8

Post by TrevorH » 2020/10/14 15:13:57

Upgrades are explicitly unsupported. If you attempt it and it breaks - which it often does - then you get to keep all of the pieces.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

th3penguinwhisperer
Posts: 6
Joined: 2017/04/24 20:16:44

Re: GCC Problems upgrading CentOS from 7 to 8

Post by th3penguinwhisperer » 2021/05/04 16:48:21

I did this:

dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync --disablerepo=appstream

And after that was able to upgrade. (I think I had to remove vim-common and python36-object-base or something similar (you will see the conflicts once you run the command above).

Locked