|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!成绩
新装了CentOS6.5体系,盘算利用yum装置步伐是呈现了以下毛病:
[plain]viewplaincopyprint?
- Loadingmirrorspeedsfromcachedhostfile
- Traceback(mostrecentcalllast):
- File"/usr/bin/yum",line29,in<module>
- yummain.user_main(sys.argv[1:],exit_code=True)
- File"/usr/share/yum-cli/yummain.py",line285,inuser_main
- errcode=main(args)
- File"/usr/share/yum-cli/yummain.py",line136,inmain
- result,resultmsgs=base.doCommands()
- File"/usr/share/yum-cli/cli.py",line434,indoCommands
- self._getTs(needTsRemove)
- File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line99,in_getTs
- self._getTsInfo(remove_only)
- File"/usr/lib/python2.6/site-packages/yum/depsolve.py",line110,in_getTsInfo
- pkgSack=self.pkgSack
- File"/usr/lib/python2.6/site-packages/yum/__init__.py",line887,in<lambda>
- pkgSack=property(fget=lambdaself:self._getSacks(),
- File"/usr/lib/python2.6/site-packages/yum/__init__.py",line669,in_getSacks
- self.repos.populateSack(which=repos)
- File"/usr/lib/python2.6/site-packages/yum/repos.py",line279,inpopulateSack
- self.doSetup()
- File"/usr/lib/python2.6/site-packages/yum/repos.py",line105,indoSetup
- self.ayum.plugins.run(postreposetup)
- File"/usr/lib/python2.6/site-packages/yum/plugins.py",line184,inrun
- func(conduitcls(self,self.base,conf,**kwargs))
- File"/usr/lib/yum-plugins/fastestmirror.py",line197,inpostreposetup_hook
- ifdowngrade_ftpand_len_non_ftp(repo.urls)==1:
- File"/usr/lib/python2.6/site-packages/yum/yumRepo.py",line699,in<lambda>
- urls=property(fget=lambdaself:self._geturls(),
- File"/usr/lib/python2.6/site-packages/yum/yumRepo.py",line696,in_geturls
- self._baseurlSetup()
- File"/usr/lib/python2.6/site-packages/yum/yumRepo.py",line648,in_baseurlSetup
- self.mirrorurls=self._replace_and_check_url(mirrorurls)
- File"/usr/lib/python2.6/site-packages/yum/yumRepo.py",line691,in_replace_and_check_url
- printYumRepoError:AllmirrorURLsarenotusingftp,http
orfile.
Eg.%s%misc.to_utf8(skipped)
- File"/usr/lib64/python2.6/codecs.py",line351,inwrite
- data,consumed=self.encode(object,self.errors)
- UnicodeDecodeError:asciicodeccantdecodebyte0xbcinposition3746:ordinalnotinrange(128)
办理计划
顺次实行以下操纵:
[plain]viewplaincopyprint?
- cd/var/lib/rpm/
- rm-i__db.*
- yumcleanall
- yumhistorynew
欢迎大家来到仓酷云论坛! |
|