我有一个运行 CentOS 7 的虚拟机,我很久没有使用了。今天我启动了它,并尝试使用 将 CentOS 系统更新到最新版本yum update
,但出现了很多错误:
Loaded plugins: fastestmirror, langpacks
http//bay.uchicago.edu/centos/7.0.1406/os/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found Trying other mirror.
http//mirror.cs.pitt.edu/centos/7.0.1406/os/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found Trying other mirror.
http//mirror.anl.gov/pub/centos/7.0.1406/os/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 403 - Forbidden Trying other mirror.
http//mirror.pac-12.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno
14] HTTP Error 404 - Not Found Trying other mirror.
http//centos.expedientevirtual.com/7.0.1406/os/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found Trying other mirror.
Run Code Online (Sandbox Code Playgroud)
(省略了许多其他类似的错误......)
Trying other mirror. Loading mirror speeds from cached hostfile *
base: bay.uchicago.edu * epel: csc.mcs.sdsmt.edu * extras:
mirror.ancl.hawaii.edu * nux-dextop: li.nux.ro * updates:
centos-distro.cavecreek.net No packages marked for update
Run Code Online (Sandbox Code Playgroud)
我http
在上述错误消息之后删除了冒号以避免警告。我认为这些错误可能来自我使用的 CentOS 版本:7.0.1406 -- 因为当前的最新版本是一个新版本,比如 7.0.1588 或其他什么,相应的路径不存在,因此 HTTP 错误 404。但是如何让我当前的 CentOS 自动将路径名调整为最新版本并能够从正确的 URL 进行更新?谢谢。
use*_*360 25
运行以下命令来清理元数据:
yum clean all
Run Code Online (Sandbox Code Playgroud)
这将清除所有 yum 缓存,包括 yum 存储库的缓存镜像。在下一次运行时,它将获得一个新的镜像列表。
归档时间: |
|
查看次数: |
55101 次 |
最近记录: |