当前位置: 首页 > news >正文

成人宁波专业seo服务

成人,宁波专业seo服务,品牌设计和广告设计,wordpress总结CentOS7执行yum命令报错 引更新yum源备份原有源创建新的源文件清理并重建缓存 引 CentOS 7 系统无法连接到 CentOS 的官方镜像站点。这通常是由于网络问题或 CentOS 7 已停止维护导致的(2024年6月30日后 CentOS 7 已进入 EOL) 报错明细: 已…

CentOS7执行yum命令报错

  • 更新yum源
    • 备份原有源
    • 创建新的源文件
    • 清理并重建缓存

CentOS 7 系统无法连接到 CentOS 的官方镜像站点。这通常是由于网络问题或 CentOS 7 已停止维护导致的(2024年6月30日后 CentOS 7 已进入 EOL)

报错明细:

已加载插件:fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - “Could not resolve host: mirrorlist.centos.org; 未知的错误”
One of the configured repositories failed (未知),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo= …
4. Disable the repository permanently, so yum won’t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable
or
subscription-manager repos --disable=
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64

更新yum源

备份原有源

mkdir -p /etc/yum.repos.d/backup
mv /etc/yum.repos.d/CentOS-* /etc/yum.repos.d/backup/

创建新的源文件

cat > /etc/yum.repos.d/CentOS-Base.repo <<'EOF'
[base]
name=CentOS-7 - Base
baseurl=https://vault.centos.org/7.9.2009/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1[updates]
name=CentOS-7 - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1[extras]
name=CentOS-7 - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
EOF

清理并重建缓存

yum clean all
yum makecache
http://www.cadmedia.cn/news/4971.html

相关文章:

  • 磨床 东莞网站建设seo网站推广服务
  • 南宁大型网站开发百度推广怎么弄
  • 关于网站图片广西网站seo
  • 建设网上银行官方网站微博营销策略
  • 婚庆公司一条龙包括哪些批量优化网站软件
  • 福州高端网站建设公司山东公司网站推广优化
  • 万网网站建设的子分类能显示多少个全国教育培训机构平台
  • 网络购物网站大全怎么去做网络推广
  • 哈尔滨服务好的建站焦作网站seo
  • 深圳开发公司网站怎么自己做网址
  • 网站建设重点是什么网络营销相关的岗位有哪些
  • 广西建设教育学会网站seo课程多少钱
  • 软件开发平台简介系统优化软件有哪些
  • 网站建设流程及费用google浏览器下载安装
  • 罗湖商城网站建设多少钱seo推广方案怎么做
  • 创建一个公司需要多少钱windows优化大师可靠吗
  • 黑河商城网站建设软文推荐
  • 类似谷德设计网的网站百度图片识别搜索
  • 云主机玩游戏怎么样北京seo相关
  • 河北建设网站首页长沙网站建设公司
  • 中山市交通建设发展集团网站体育热点新闻
  • 湖南广厦建设工程有限公司网站环球资源网站网址
  • 非盈利网站建设问题整站优化要多少钱
  • 互联网 网站建设价格国内广告投放平台
  • 坂田做网站建设好的网络公司惠州seo网站管理
  • 网站建设的费用是多少钱久久seo正规吗
  • 奉贤做网站建设俄罗斯搜索引擎入口 yandex
  • 网站上文章字体部分复制怎么做宁波谷歌seo推广
  • 网页设计商品页面制作搜索广告优化
  • 晓风彩票网站建设软件推广方案有哪些