当前位置:   article > 正文

“Could not resolve host: mirrorlist.centos.org; 未知的错误“_could not resolve host: mirrorlist.centos.org; 未知的

could not resolve host: mirrorlist.centos.org; 未知的错误

一.报错信息

找了很多种方法:
有说:改 vi /etc/sysconfig/network-scripts/ifcfg-ens33 网络配置文件的 重启网络的
还有说:在 /etc/yum.repos.d/CentOS-Base.repo 文件中,找到并修改 baseurl 和 mirrorlist 为其他可用的镜像源地址。
各种方法:都不得行,究其原因 就是镜像源 的问题
该文章讲述centos7 无法使用yum 和 wget 报以下类似错误的问题

[root@contos7 ~]# sudo yum -y update
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"


 One of the configured repositories failed (未知),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
 Cannot find a valid baseurl for repo: base/7/x86_64
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

在这里插入图片描述

联不通网的可以参考以下:
https://blog.csdn.net/wxnshuai/article/details/108492257?spm=1001.2014.3001.5506
联网后 ping 下面 地址能ping通的

ping www.baidu.com 
  • 1

在这里插入图片描述

二.下载安装包(建议使用阿里云)

网易镜像库 http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages
阿里云镜像库 https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages
阿里链接进来的会到这个界面:
在这里插入图片描述
在这个界面 Ctrl+F 直接搜

不理解,也先别急,跟就行了

在这里插入图片描述

找到的这个wget-1.14-18.el7_6.1.x86_64.rpm 下载下来

三.安装wget(离线和联网操作一样的步骤)

cd /home 进去 mkdir wget 创建一个wget 的(目录)文件夹

在这里插入图片描述
我这里用的finalshell
直接上传到你刚才建的目录里边
在这里插入图片描述
cd wget 命令进入目录 然后执行命令rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

cd wget/
  • 1
rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm
  • 1

在这里插入图片描述

四.安装yum

这里为了防止后续出问题,我们全部删除干净(命令一个一个来)

4.1:卸载python

##强制删除已安装程序及其关联
rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps

##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令
whereis python |xargs rm -frv -rf

##验证删除,返回无结果
whereis python
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

4.2:删除yum

rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
whereis yum |xargs rm -frv -rf
  • 1
  • 2
[root@contos7 wget]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
软件包准备中...
python-firewall-0.5.3-5.el7.noarch
python-slip-dbus-0.4.0-4.el7.noarch
python-slip-0.4.0-4.el7.noarch
python-urlgrabber-3.10-9.el7.noarch
python-decorator-3.4.0-3.el7.noarch
python-pyudev-0.15-9.el7.noarch
python-iniparse-0.4-9.el7.noarch
python-configobj-4.7.2-7.el7.noarch
python-linux-procfs-0.4.9-4.el7.noarch
python-schedutils-0.4-6.el7.x86_64
python-pycurl-7.19.0-19.el7.x86_64
rpm-python-4.11.3-35.el7.x86_64
python-perf-3.10.0-957.el7.x86_64
newt-python-0.52.15-4.el7.x86_64
libselinux-python-2.5-14.1.el7.x86_64
dbus-python-1.1.1-9.el7.x86_64
python-gobject-base-3.22.0-1.el7_4.1.x86_64
python-2.7.5-76.el7.x86_64
python-libs-2.7.5-76.el7.x86_64
[root@contos7 wget]# whereis python |xargs rm -frv -rf
已删除"/usr/lib/python2.7/site-packages/rpmUtils/__init__.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/arch.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/arch.pyc"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/miscutils.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/miscutils.pyc"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/oldUtils.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyc"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/transaction.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/transaction.pyc"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/updates.py"
已删除"/usr/lib/python2.7/site-packages/rpmUtils/updates.pyc"
已删除目录:"/usr/lib/python2.7/site-packages/rpmUtils"
已删除"/usr/lib/python2.7/site-packages/yum/Errors.py"
已删除"/usr/lib/python2.7/site-packages/yum/Errors.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/__init__.py"
已删除"/usr/lib/python2.7/site-packages/yum/transactioninfo.py"
已删除"/usr/lib/python2.7/site-packages/yum/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/sqlutils.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/callbacks.py"
已删除"/usr/lib/python2.7/site-packages/yum/transactioninfo.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/callbacks.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/comps.py"
已删除"/usr/lib/python2.7/site-packages/yum/comps.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/config.py"
已删除"/usr/lib/python2.7/site-packages/yum/config.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/update_md.py"
已删除"/usr/lib/python2.7/site-packages/yum/constants.py"
已删除"/usr/lib/python2.7/site-packages/yum/constants.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/depsolve.py"
已删除"/usr/lib/python2.7/site-packages/yum/depsolve.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/drpm.py"
已删除"/usr/lib/python2.7/site-packages/yum/drpm.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/failover.py"
已删除"/usr/lib/python2.7/site-packages/yum/failover.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/fssnapshots.py"
已删除"/usr/lib/python2.7/site-packages/yum/fssnapshots.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/history.py"
已删除"/usr/lib/python2.7/site-packages/yum/history.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/i18n.py"
已删除"/usr/lib/python2.7/site-packages/yum/i18n.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/igroups.py"
已删除"/usr/lib/python2.7/site-packages/yum/igroups.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/logginglevels.py"
已删除"/usr/lib/python2.7/site-packages/yum/logginglevels.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/mdparser.py"
已删除"/usr/lib/python2.7/site-packages/yum/mdparser.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/metalink.py"
已删除"/usr/lib/python2.7/site-packages/yum/metalink.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/misc.py"
已删除"/usr/lib/python2.7/site-packages/yum/misc.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/packageSack.py"
已删除"/usr/lib/python2.7/site-packages/yum/packageSack.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/packages.py"
已删除"/usr/lib/python2.7/site-packages/yum/packages.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/parser.py"
已删除"/usr/lib/python2.7/site-packages/yum/parser.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/pgpmsg.py"
已删除"/usr/lib/python2.7/site-packages/yum/pgpmsg.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/pkgtag_db.py"
已删除"/usr/lib/python2.7/site-packages/yum/pkgtag_db.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/plugins.py"
已删除"/usr/lib/python2.7/site-packages/yum/plugins.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/repoMDObject.py"
已删除"/usr/lib/python2.7/site-packages/yum/repoMDObject.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/repos.py"
已删除"/usr/lib/python2.7/site-packages/yum/repos.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/rpmsack.py"
已删除"/usr/lib/python2.7/site-packages/yum/rpmsack.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/rpmtrans.py"
已删除"/usr/lib/python2.7/site-packages/yum/rpmtrans.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/sqlitesack.py"
已删除"/usr/lib/python2.7/site-packages/yum/sqlitesack.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/sqlutils.py"
已删除"/usr/lib/python2.7/site-packages/yum/update_md.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/updateinfo.py"
已删除"/usr/lib/python2.7/site-packages/yum/updateinfo.pyc"
已删除"/usr/lib/python2.7/site-packages/yum/yumRepo.py"
已删除"/usr/lib/python2.7/site-packages/yum/yumRepo.pyc"
已删除目录:"/usr/lib/python2.7/site-packages/yum"
已删除"/usr/lib/python2.7/site-packages/tuned/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/admin.py"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.py"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/exceptions.py"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/admin.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/admin.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/exceptions.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/admin/exceptions.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/admin"
已删除"/usr/lib/python2.7/site-packages/tuned/consts.py"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/application.py"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/controller.py"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/daemon.py"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/application.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/application.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/controller.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/controller.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/daemon.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/daemon/daemon.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/daemon"
已删除"/usr/lib/python2.7/site-packages/tuned/exceptions.py"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/controller.py"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/dbus_exporter.py"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/interfaces.py"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/controller.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/controller.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/dbus_exporter.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/dbus_exporter.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/interfaces.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/exports/interfaces.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/exports"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher.py"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.py"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/inventory.py"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/device_matcher_udev.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/inventory.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/hardware/inventory.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/hardware"
已删除"/usr/lib/python2.7/site-packages/tuned/logs.py"
已删除"/usr/lib/python2.7/site-packages/tuned/logs.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/logs.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/base.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/base.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/base.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_disk.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_load.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_net.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/repository.py"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/repository.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/repository.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_disk.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_disk.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_load.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_load.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_net.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/monitors/monitor_net.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/monitors"
已删除"/usr/lib/python2.7/site-packages/tuned/patterns.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/base.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/decorators.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/exceptions.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/hotplug.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/factory.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/instance.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/factory.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/factory.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/instance.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/instance/instance.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/plugins/instance"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_audio.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_selinux.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_bootloader.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_cpu.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_cpu.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_cpu.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_disk.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_modules.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_mounts.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_net.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scheduler.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_script.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_script.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_script.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scsi_host.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_selinux.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysctl.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysfs.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_systemd.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_vm.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/repository.py"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/repository.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/repository.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_mounts.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scheduler.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/base.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/base.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_mounts.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_vm.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/decorators.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/decorators.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_net.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_vm.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/exceptions.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/exceptions.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scsi_host.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_net.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_audio.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_audio.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_modules.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scsi_host.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_bootloader.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_bootloader.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_scheduler.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_disk.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_disk.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_selinux.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_eeepc_she.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_modules.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysctl.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysctl.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysfs.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_sysfs.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_systemd.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_systemd.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/plugins/plugin_video.pyc"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/plugins"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/exceptions.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/factory.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/base.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion_non_equal.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex_invert.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_unpack.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_exec.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_hex2cpulist.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_kb2s.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_s2kb.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_strip.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/repository.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_s2kb.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/base.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/base.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_exec.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_unpack.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_strip.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion_non_equal.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion_non_equal.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_kb2s.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex_invert.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist2hex_invert.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_hex2cpulist.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_hex2cpulist.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_kb2s.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_exec.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_strip.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_s2kb.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_unpack.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_virt_check.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/functions/functions.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/profiles/functions"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/loader.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/locator.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/merger.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/profile.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/unit.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/variables.py"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/exceptions.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/exceptions.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/factory.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/factory.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/loader.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/loader.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/locator.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/locator.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/merger.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/merger.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/profile.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/profile.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/unit.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/unit.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/variables.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/profiles/variables.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/profiles"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/factory.py"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/interfaces.py"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.py"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/storage.py"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/factory.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/factory.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/interfaces.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/interfaces.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/storage.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/storage/storage.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/storage"
已删除"/usr/lib/python2.7/site-packages/tuned/units/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/units/manager.py"
已删除"/usr/lib/python2.7/site-packages/tuned/units/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/units/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/units/manager.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/units/manager.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/units"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/__init__.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/commands.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/global_config.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/nettool.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/plugin_loader.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/plugin_loader.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/plugin_loader.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/polkit.py"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/commands.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/commands.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/global_config.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/nettool.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/nettool.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/polkit.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/utils/polkit.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned/utils"
已删除"/usr/lib/python2.7/site-packages/tuned/version.py"
已删除"/usr/lib/python2.7/site-packages/tuned/__init__.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/__init__.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/consts.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/consts.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/exceptions.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/exceptions.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/patterns.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/patterns.pyo"
已删除"/usr/lib/python2.7/site-packages/tuned/version.pyc"
已删除"/usr/lib/python2.7/site-packages/tuned/version.pyo"
已删除目录:"/usr/lib/python2.7/site-packages/tuned"
已删除目录:"/usr/lib/python2.7/site-packages"
已删除目录:"/usr/lib/python2.7"
已删除"/usr/lib64/python2.7/site-packages/_sqlitecache.so"
已删除"/usr/lib64/python2.7/site-packages/sqlitecachec.py"
已删除"/usr/lib64/python2.7/site-packages/yum_metadata_parser-1.1.4-py2.7.egg-info"
已删除"/usr/lib64/python2.7/site-packages/sqlitecachec.pyc"
已删除"/usr/lib64/python2.7/site-packages/sqlitecachec.pyo"
已删除"/usr/lib64/python2.7/site-packages/liblzma.py"
已删除"/usr/lib64/python2.7/site-packages/lzma.so"
已删除"/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/PKG-INFO"
已删除"/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/SOURCES.txt"
已删除"/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/dependency_links.txt"
已删除"/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/top_level.txt"
已删除目录:"/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info"
已删除"/usr/lib64/python2.7/site-packages/liblzma.pyc"
已删除"/usr/lib64/python2.7/site-packages/liblzma.pyo"
已删除"/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/PKG-INFO"
已删除"/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/SOURCES.txt"
已删除"/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/dependency_links.txt"
已删除"/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/top_level.txt"
已删除目录:"/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info"
已删除"/usr/lib64/python2.7/site-packages/xattr.so"
已删除"/usr/lib64/python2.7/site-packages/gpgme/__init__.py"
已删除"/usr/lib64/python2.7/site-packages/gpgme/_gpgme.so"
已删除"/usr/lib64/python2.7/site-packages/gpgme/editutil.py"
已删除"/usr/lib64/python2.7/site-packages/gpgme/editutil.pyc"
已删除"/usr/lib64/python2.7/site-packages/gpgme/editutil.pyo"
已删除"/usr/lib64/python2.7/site-packages/gpgme/__init__.pyc"
已删除"/usr/lib64/python2.7/site-packages/gpgme/__init__.pyo"
已删除目录:"/usr/lib64/python2.7/site-packages/gpgme"
已删除"/usr/lib64/python2.7/site-packages/pygpgme-0.3-py2.7.egg-info"
已删除"/usr/lib64/python2.7/site-packages/acutilmodule.so"
已删除目录:"/usr/lib64/python2.7/site-packages"
已删除目录:"/usr/lib64/python2.7"
[root@contos7 wget]# whereis python
python:[root@contos7 wget]# rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
软件包准备中...
yum-3.4.3-161.el7.centos.noarch
警告:文件 /usr/lib/python2.7/site-packages/yum/yumRepo.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/yumRepo.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/updateinfo.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/updateinfo.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/update_md.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/update_md.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/transactioninfo.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/transactioninfo.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/sqlutils.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/sqlutils.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/sqlitesack.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/sqlitesack.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/rpmtrans.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/rpmtrans.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/rpmsack.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/rpmsack.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/repos.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/repos.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/repoMDObject.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/repoMDObject.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/plugins.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/plugins.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/pkgtag_db.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/pkgtag_db.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/pgpmsg.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/pgpmsg.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/parser.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/parser.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/packages.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/packages.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/packageSack.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/packageSack.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/misc.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/misc.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/metalink.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/metalink.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/mdparser.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/mdparser.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/logginglevels.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/logginglevels.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/igroups.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/igroups.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/i18n.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/i18n.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/history.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/history.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/fssnapshots.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/fssnapshots.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/failover.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/failover.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/drpm.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/drpm.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/depsolve.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/depsolve.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/constants.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/constants.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/config.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/config.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/comps.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/comps.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/callbacks.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/callbacks.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/__init__.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/__init__.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/Errors.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum/Errors.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/yum: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/updates.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/updates.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/transaction.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/transaction.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/miscutils.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/arch.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/arch.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/__init__.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils/__init__.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib/python2.7/site-packages/rpmUtils: 移除失败: 没有那个文件或目录
yum-metadata-parser-1.1.4-10.el7.x86_64
警告:文件 /usr/lib64/python2.7/site-packages/yum_metadata_parser-1.1.4-py2.7.egg-info: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib64/python2.7/site-packages/sqlitecachec.pyo: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib64/python2.7/site-packages/sqlitecachec.pyc: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib64/python2.7/site-packages/sqlitecachec.py: 移除失败: 没有那个文件或目录
警告:文件 /usr/lib64/python2.7/site-packages/_sqlitecache.so: 移除失败: 没有那个文件或目录
[root@contos7 wget]# whereis yum |xargs rm -frv -rf
已删除"/etc/yum/vars/infra"
已删除"/etc/yum/vars/contentdir"
已删除目录:"/etc/yum/vars"
已删除"/etc/yum/protected.d/systemd.conf"
已删除目录:"/etc/yum/protected.d"
已删除"/etc/yum/pluginconf.d/langpacks.conf"
已删除目录:"/etc/yum/pluginconf.d"
已删除目录:"/etc/yum"
[root@contos7 wget]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537

能联网的话直接复制运行即可(注意下载路径,会下载到当前路径下),如果不能联网就自己手动下载然后拷贝到服务器上
我这里是直接在wget 目录下建了一个rpm的目录来装我们下载的文件

4.3:下载安装包

wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/lvm2-python-libs-2.02.187-6.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/libxml2-python-2.9.1-6.el7.5.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages//python-libs-2.7.5-89.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-ipaddress-1.0.16-2.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-backports-1.0-8.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-2.7.5-89.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-pycurl-7.19.0-19.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-urlgrabber-3.10-10.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-setuptools-0.9.8-7.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-chardet-2.2.1-3.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/rpm-python-4.11.3-45.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-utils-1.1.31-54.el7_8.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-aliases-1.1.31-54.el7_8.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-protectbase-1.1.31-54.el7_8.noarch.rpm
wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

cd rpm 进去(没目录自己建)
然后复制上边的命令 全都下载下来 下载文件成功是这样的,最后一个要自己敲一下回车键
在这里插入图片描述
网易的下载不成功是改用阿里云的镜像源,网易的报404是这样的

在这里插入图片描述
全部下载完有20个文件
在这里插入图片描述

4.4:安装替换依赖

然后执行

rpm -ivh --nodeps --force *.rpm
  • 1

在这里插入图片描述

4.5:测试

yum

在这里插入图片描述
python 进去后 输入exit()回车推出
在这里插入图片描述

五.处理源yum

5.1:删除yum源(直接执行下边的命令就行)
rm -rf /etc/yum/.repos.d/*
  • 1
5.2:下载阿里云yum源

http://mirrors.aliyun.com/repo/Centos-7.repo

5.3:删除源文件

进去

cd /etc/yum.repos.d/
  • 1

执行(都y就行)

rm -r *
  • 1

在这里插入图片描述

5.3:拷贝源文件

把下载好的Centos-7.repo拷贝到/etc/yum.repos.d/下,没有该文件夹就手动新建一个

在这里插入图片描述

传上边叫下载的文件后
在这里插入图片描述

5.4:清除和生成yum缓存
## 清除缓存
yum clean all

## 生成缓存
yum makecache
  • 1
  • 2
  • 3
  • 4
  • 5

在这里插入图片描述
然后执行你报错的命令,我报错的开始是

sudo yum -y update
  • 1

到这里就解决了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/972678
推荐阅读
相关标签
  

闽ICP备14008679号