一.报错信息
找了很多种方法:
有说:改 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
联不通网的可以参考以下:
https://blog.csdn.net/wxnshuai/article/details/108492257?spm=1001.2014.3001.5506
联网后 ping 下面 地址能ping通的
ping www.baidu.com
二.下载安装包(建议使用阿里云)
网易镜像库 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/
rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm
四.安装yum
这里为了防止后续出问题,我们全部删除干净(命令一个一个来)
4.1:卸载python
##强制删除已安装程序及其关联
rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令
whereis python |xargs rm -frv -rf
##验证删除,返回无结果
whereis python
4.2:删除yum
rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
whereis yum |xargs rm -frv -rf
[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]#
能联网的话直接复制运行即可(注意下载路径,会下载到当前路径下),如果不能联网就自己手动下载然后拷贝到服务器上
我这里是直接在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
cd rpm 进去(没目录自己建)
然后复制上边的命令 全都下载下来 下载文件成功是这样的,最后一个要自己敲一下回车键
网易的下载不成功是改用阿里云的镜像源,网易的报404是这样的
全部下载完有20个文件
4.4:安装替换依赖
然后执行
rpm -ivh --nodeps --force *.rpm
4.5:测试
yum
python 进去后 输入exit()回车推出
五.处理源yum
5.1:删除yum源(直接执行下边的命令就行)
rm -rf /etc/yum/.repos.d/*
5.2:下载阿里云yum源
http://mirrors.aliyun.com/repo/Centos-7.repo
5.3:删除源文件
进去
cd /etc/yum.repos.d/
执行(都y就行)
rm -r *
5.3:拷贝源文件
把下载好的Centos-7.repo拷贝到/etc/yum.repos.d/下,没有该文件夹就手动新建一个
传上边叫下载的文件后
5.4:清除和生成yum缓存
## 清除缓存
yum clean all
## 生成缓存
yum makecache
然后执行你报错的命令,我报错的开始是
sudo yum -y update
到这里就解决了
版权归原作者 猫小吕 所有, 如有侵权,请联系我们删除。