今天deepvps在一个 CentOS VPS 上升级系统时遇到一个问题,yum 报错: 复制代码代码如下: # yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Traceback (most recent call last): File “/usr/bin/yum”, line , in ? yummain.user_main(sys.argv[1:], exit_code=True) File “/usr/share/yum-cli/yummain.py”, line , in user_main errcode = main(args) File “/usr/share/yum-cli/yummain.py”, line , in main result, resultmsgs = base.doCommands() File “/usr/share/yum-cli/cli.py”, line , in doCommands self._getTs(needTsRemove) File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line , in _getTs self._getTsInfo(remove_only) File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line , in _getTsInfo pkgSack = self.pkgSack File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line , in pkgSack = property(fget=lambda self: self._getSacks(), File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line , in _getSacks self.repos.populateSack(which=repos) File “/usr/lib/python2.4/site-packages/yum/repos.py”, line , in populateSack self.doSetup() File “/usr/lib/python2.4/site-packages/yum/repos.py”, line , in doSetup self.ayum.plugins.run(‘postreposetup’) File “/usr/lib/python2.4/site-packages/yum/plugins.py”, line , in run func(conduitcls(self, self.base, conf, **kwargs)) File “/usr/lib/yum-plugins/fastestmirror.py”, line , in postreposetup_hook all_urls = FastestMirror(all_urls).get_mirrorlist() File “/usr/lib/yum-plugins/fastestmirror.py”, line , in get_mirrorlist self._poll_mirrors() File “/usr/lib/yum-plugins/fastestmirror.py”, line , in _poll_mirrors pollThread.start() File “/usr/lib/python2.4/threading.py”, line , in start _start_new_thread(self.__bootstrap, ()) thread.error: can’t start new thread yum 在启动 fastestmirror 插件时出错,是 yum 的一个 bug( mysqld,yum 一切工作正常。临时解决办法是 yum update 时禁止启动 fastestmirror 插件。 复制代码代码如下: yum –disableplugin=fastestmirror update
推荐整理分享yum update 升级报错的解决办法(yum update upgrade),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:yum 升级系统,yum更新包,yum更新命令,yum升级软件到指定版本,yum 更新软件,yum update -y出错,yum update upgrade,yum update upgrade,内容如对您有帮助,希望把文章链接给更多的朋友!
用root安全登录VPS 的方法 如果你对安全问题还有犹豫,抱有我这个小站没人理的想法,那么打开/var/log/secure看看有多少IP多少次企图登录你的服务器?刚开通的一个VPS还来不及用
使用 WinSCP 管理 Linux VPS/服务器上的文件 图文教程 Linux上经常会经常需要编辑文件,特别是LinuxVPS/服务器安装好系统之后配置环境会需要修改很多的配置文件等,对于常用Linux的基本上都能够熟练使用vi
LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法 如何才能将上传大小设置为自己想设置的值,一共需要修改3个地方:1、修改/usr/local/nginx/conf/nginx.conf文件,查找client_max_body_size将后面的值设置为你想