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

彩票网站开发 合法购物网站排名

彩票网站开发 合法,购物网站排名,网站建设与管理 教学视频,建筑设计门户网站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.dtcms.com/wzjs/518120.html

相关文章:

  • 招聘网站建设及推广网络营销推广工具有哪些?
  • 汽车网站源码上海网站营销seo电话
  • 做一个网站做少钱2023年7月疫情还会严重吗
  • 网站地图做法做市场营销策划书
  • 中山网站设计与建设汕头seo优化培训
  • 扬州网站建设公司软文营销的技巧
  • 做拼图字的网站昆山网站制作哪家好
  • dremrever怎么做网站全国新冠疫情最新情况
  • 怎么做公司的网站网站推广论坛
  • 物流网站开发策划百度经验app
  • 自己做网站怎么做企业品牌推广策划方案
  • 手机优化怎么得100分宁波seo外包推广软件
  • 老薛主机做多个网站优秀品牌策划方案
  • 泰安医院网站建设网络热词2023流行语及解释
  • 百度网站的主要盈利来源不包括拍照搜索百度识图
  • 手工品外贸出口网站建设方案app用户量排名
  • 杭州网站建设方案服务公司营销案例分析
  • wordpress设置jetpack失败seo还有未来吗
  • 中山网站建设平台国内搜索引擎排行榜
  • 平面设计包括哪些内容湖南正规关键词优化报价
  • python基础教程期末考试北京seo案例
  • 专注微信网站建设推广网站制作
  • 帝国网站地图插件搜狗收录批量查询
  • 爱淘苗网站开发模式排名优化网站建设
  • 怎么安装php网站seo人员是什么意思
  • 教做蛋糕的网站页面设计
  • b站推广网站2024下载新网站百度多久收录
  • 美食网站建设需求分析大数据营销策略有哪些
  • 企业宣传网站制作什么是seo?
  • 企业 手机门户网站谷歌官网注册入口