What are the meanings of packages, requests, deleting, and updated by the following when yum update error occurs?

Asked 1 years ago, Updated 1 years ago, 322 views

"When ""yum update error"", ""package"", ""request"", ""deleting"", and ""updated by the following"" are displayed, what do you mean?"
·Error in package uwsi-plugin-python36u-2.0.17.1-1.ius.el7.x86_64(ius)?
"·I requested ""python36u"", but there was ""python36u-3.6.4-1.ius.centos7.x86_64(@ius)"", so would you like to delete it?"
· Should I end up with python 3-3.6.8-18.el7.x86_64 (updates)? If so, should I type yum install python 3-3.6.8-18.el7.x86_64?

$sudo yum update

-// Abbreviated

-->Dependency resolution terminated.
Error: Package: uwsi-plugin-python36u-2.0.17.1-1.ius.el7.x86_64 (ius)
             Request: uwsi-plugin-common=2.0.17.1
            Deleting: uwsi-plugin-common-2.0.16-1.el7.x86_64 (@epel)
                uwsgi-plugin-common=2.0.16-1.el7
            Updated by: :uwsi-plugin-common-2.0.18-8.el7.x86_64(epel)
                uwsgi-plugin-common=2.0.18-8.el7
Error: Package: uwsi-plugin-python36u-2.0.17.1-1.ius.el7.x86_64 (ius)
             request:python36u
            Deleting: python36u-3.6.4-1.ius.centos7.x86_64 (@ius)
                python36u=3.6.4-1.ius.centos7
            Removed by : python3-3.6.8-18.el7.x86_64 (updates)
                US>Not Found
 You can use --skip-broken to avoid problems.
 You can try these: rpm -Va --nofiles --nodigest

Environment
CentOS Linux release 7.2.1511 (Core)

When I did the following, python was displayed, so I think python is strange.

$sudorpm-Va --nodigest
// Abbreviated
  /usr/lib/python 3.6/site-packages/pip/basecommand.py not found.
  /usr/lib/python 3.6/site-packages/pip/baseparser.py not found.
  /usr/lib/python 3.6/site-packages/pip/cmdoptions.py not found.
  Unable to find /usr/lib/python 3.6/site-packages/pipe/commands.
  /usr/lib/python 3.6/site-packages/pipe/commands/__init__.py not found.
  Unable to find /usr/lib/python 3.6/site-packages/pipe/commands/__pycache__.
// Abbreviated

Currently, we have Python 2.7.5 and Python 3.6.4.

$python-V
Python 2.7.5

$ which python
/usr/bin/python

$ python 3.6 -- version
Python 3.6.4

$ which python 3.6
/usr/bin/python 3.6

centos yum

2023-02-06 10:58

1 Answers

I tried to resolve the dependency while updating the package, but there is a conflict and I can't resolve it.

When conflicts occur, sometimes just "wait for the package to be fixed", but this time I think the following is the problem:

  • referencing updates, epel,ius and multiple repositories
  • CentOS updates left unattended

Updates is the official CentOS repository, but be careful when using third-party repositories such as epel,ius, and remi.
It is safer to enable the repository only when necessary, rather than always enabling it.

Python 3.6.4 is probably installed from ius (python36u-3.6.4-1.ius.centos7.x86_64), but updates also have python 3-3.6.8-18.el7.x86_64 distributed, causing conflicts.

Depending on the CentOS 7.2 operational policy you are managing, I think it is easy to understand whether to update to CentOS 7.9 or remove Python 3 via IUS and re-enter the CentOS official Python 3.

reference:


2023-02-06 15:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.