yum Error downloading packages error

Error downloading packages yum error occurs
error expression:
yum can list, you can clean cache, but can not be installed, the error message:

Downloading packages:


Downloading Packages Standard Package Error:
libevent-devel-2.0.21-4.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
libevent-2.0.21-4.el7.x86_64: [Errno 5] [Errno 2 ] no such file or directory

error reasons:
installation python3 modify soft link, there is no cause to modify completely

[Duke the root @ ~] # Music Videos / usr / bin / Python /usr/bin/python2.6.6
[Duke the root @ ~] -s /usr/local/bin/python3.6 LN # / usr / bin / Python
[the root @duke ~] # vi / usr / bin / yum
the file header
#! / usr / bin / python

Changed to
#! / Usr / bin / python2.6.6

after yum can turn over discovery list, you can clean cache, but can not be installed.

Error Resolution:
The downloader in python also modify the corresponding version

[root @ duke ~] # vi / usr / libexec / urlgrabber-ext-down
the file header
#! / usr / bin / python

Change
! # / Usr / bin / python2.6.6

error summary:
be taken into account only when the soft connection yum, did not expect to modify the downloader. After you create a soft link to change the python version, python can not find the corresponding version.

Guess you like

Origin www.cnblogs.com/twobrother/p/11577636.html