No YUM - python3 conflicts

Issues related to applications and software problems and general support
Post Reply
Altar46
Posts: 5
Joined: 2019/02/18 07:55:09

No YUM - python3 conflicts

Post by Altar46 » 2020/01/21 11:16:48

Hi,
after updating to Centos8 I have lot of errors mostly with python3 (3.6) setuptools.
....
Error: Transaction check error:
file /usr/lib/python3.6/site-packages/pkg_resources/__pycache__/__init__.cpython-36.opt-1.pyc from install of platform-python-setuptools-39.2.0-5.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/pkg_resources/_vendor/__pycache__/__init__.cpython-36.opt-1.pyc from install of platform-python-setuptools-39.2.0-5.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch

etc etc
............
tons of errors

YUM does not exist - bash: yum: command not found
I tried command - dnf install rpmconf yum-utils, but get

Last metadata expiration check: 0:11:45 ago on Tue 21 Jan 2020 11:58:51 AM CET.
Package rpmconf-0.3.4-1.el7.noarch is already installed.
Error:
Problem: package python3-dnf-plugins-core-4.0.8-3.el8.noarch requires python3-dnf >= 4.2.7-3, but none of the providers can be installed
- package python3-dnf-4.2.7-6.el8.noarch requires dnf-data = 4.2.7-6.el8, but none of the providers can be installed
- package python3-dnf-4.2.7-7.el8_1.noarch requires dnf-data = 4.2.7-7.el8_1, but none of the providers can be installed
- package dnf-plugins-core-4.0.8-3.el8.noarch requires python3-dnf-plugins-core = 4.0.8-3.el8, but none of the providers can be installed
- cannot install both dnf-data-4.2.7-6.el8.noarch and dnf-data-4.0.9.2-1.el7_6.noarch
- cannot install both dnf-data-4.2.7-7.el8_1.noarch and dnf-data-4.0.9.2-1.el7_6.noarch
- package yum-utils-4.0.8-3.el8.noarch requires dnf-plugins-core = 4.0.8-3.el8, but none of the providers can be installed
- package python2-dnf-4.0.9.2-1.el7_6.noarch requires dnf-data = 4.0.9.2-1.el7_6, but none of the providers can be installed
- conflicting requests
- problem with installed package python2-dnf-4.0.9.2-1.el7_6.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

Any sugestion pls

stevemowbray
Posts: 505
Joined: 2012/06/26 14:20:47

Re: No YUM - python3 conflicts

Post by stevemowbray » 2020/01/21 11:43:17

There is no upgrade path from 7 to 8. You need to reinstall.

Altar46
Posts: 5
Joined: 2019/02/18 07:55:09

Re: No YUM - python3 conflicts

Post by Altar46 » 2020/01/21 11:50:32

stevemowbray wrote:
2020/01/21 11:43:17
There is no upgrade path from 7 to 8. You need to reinstall.
Thanks for quick replay pal, but is it possible to downgrade from 8 to previously installed version 7?

stevemowbray
Posts: 505
Joined: 2012/06/26 14:20:47

Re: No YUM - python3 conflicts

Post by stevemowbray » 2020/01/21 11:59:49

Youw ould have to try to reverse whatever changes you made, but I think it's unlikely to work given that the packaging system is now messed up.

Altar46
Posts: 5
Joined: 2019/02/18 07:55:09

Re: No YUM - python3 conflicts

Post by Altar46 » 2020/01/21 13:14:57

stevemowbray wrote:
2020/01/21 11:59:49
Youw ould have to try to reverse whatever changes you made, but I think it's unlikely to work given that the packaging system is now messed up.
OK but thought that upgrading 7 to 8 is possible regarding this link https://www.youtube.com/watch?v=m3q4AFdR1bk now I'm confused.

stevemowbray
Posts: 505
Joined: 2012/06/26 14:20:47

Re: No YUM - python3 conflicts

Post by stevemowbray » 2020/01/21 13:54:03

There is no official upgrade path. Some people may have cobbled together a procedure which works (or appears to work--something might come back to bite them later) for their particular installation, but trying it is likely to lead to exactly the situation you're in with a mixture of packages from different versions and package conflicts that can't be resolved without a lot of work if at all.

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

Re: No YUM - python3 conflicts

Post by jlehtone » 2020/01/21 14:12:00

Altar46 wrote:
2020/01/21 13:14:57
thought that upgrading 7 to 8 is possible regarding this link https://www.youtube.com/watch?v=m3q4AFdR1bk
Those fellas have a text version too, where they write:
We always recommend to perform these kind of task in staging before going into production.
"staging" means "a test environment that can be wiped away and recreated with ease"
"production" means "what you cannot afford to lose or mess up"

I won't watch the video to see whether they cover their ass in it too.


Internet has a lot of content. Some true, some erroneous, some outdated, some intentionally false.
For every piece you have to ask yourself: Can I trust this?

Quoting a song (by Tevis and Morricone):
There's just one kind of man that you can trust,
that's a dead man, or a gringo like me.

User avatar
TrevorH
Forum Moderator
Posts: 28571
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No YUM - python3 conflicts

Post by TrevorH » 2020/01/21 14:59:49

There is a reason why the upgrade is not supported and you appear to have just made a demonstration of exactly that.

Time to break out the backups and go back to CentOS 7.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Altar46
Posts: 5
Joined: 2019/02/18 07:55:09

Re: No YUM - python3 conflicts

Post by Altar46 » 2020/01/21 15:10:05

Huh, what can I say guys - you're right. Need to install 8 from scratch. I will lose some data and Kali on Vbox... It was my bad decision not to think twice before action. Bad luck. :shock:

Post Reply

Return to “CentOS 8 - General Support”