You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
首次安装 CentOS7 之后,执行
sudo yum update
命令时提示如下错误:Cannot find a valid baseurl for repo: base/7/x86_6
解决方法:
将
ONBOOT=no
改为ONBOOT=yes
, 保存退出再执行
sudo service network restart
重启网络即可。20191106 更新:
如果以上命令执行完毕之后, 仍然提示同样的错误, 则:
cd /etc/yum.repos.d/ sudo vi CentOS-Base.repo
在 vi 中, 将所有的
mirrorlist=...
的配置项注释掉, 同时将#baseurl=...
的配置项取消注释.保存并退出即可
The text was updated successfully, but these errors were encountered: