az9*_*z93 43 yum centos upgrade
我正在使用 CentOS 6.3。当我尝试使用 yum 更新我的系统时,我收到以下消息:
yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ircam.fr
* centosplus: miroir.univ-paris13.fr
* extras: mirrors.ircam.fr
* update: centos.quelquesmots.fr
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
Run Code Online (Sandbox Code Playgroud)
yum clean all
Loaded plugins: fastestmirror
Cleaning repos: CactiEZ addons base centosplus extras pgdg93 update
Cleaning up Everything
Cleaning up list of fastest mirrors
Run Code Online (Sandbox Code Playgroud)
yum check
Loaded plugins: fastestmirror
check all
Run Code Online (Sandbox Code Playgroud)
yum erase apf
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: apf
Determining fastest mirrors
* base: centos.mirror.fr.planethoster.net
* centosplus: centos.mirror.fr.planethoster.net
* extras: mirrors.ircam.fr
* update: centos.quelquesmots.fr
CactiEZ | 2.9 kB 00:00
CactiEZ/primary_db | 13 kB 00:00
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
Run Code Online (Sandbox Code Playgroud)
yum upgrade
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.fr.planethoster.net
* centosplus: centos.mirror.fr.planethoster.net
* extras: mirrors.ircam.fr
* update: centos.quelquesmots.fr
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
Run Code Online (Sandbox Code Playgroud)
我的 yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
Run Code Online (Sandbox Code Playgroud)
小智 36
你的 ca-bundles.crt 太旧了。在升级到更新版本的 CentOS 之前,一种解决方法是将 epel.repo 从使用 https 更改为 http
sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo
Run Code Online (Sandbox Code Playgroud)
SHW*_*SHW 18
试试这个(必须是root)
yum clean all
yum check
yum erase apf
yum update ca-certificates
yum upgrade
Run Code Online (Sandbox Code Playgroud)
在您的浏览器上输入“ http://mirror.centos.org/centos/6 ”,您会看到“addons”不存在。
所以,试试 yum --disablerepo=addons update
| 归档时间: |
|
| 查看次数: |
353663 次 |
| 最近记录: |