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

店铺设计装修赣榆网站建设xxiaoseo

店铺设计装修,赣榆网站建设xxiaoseo,微信分享网站短链接怎么做,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.dtcms.com/wzjs/805990.html

相关文章:

  • 网站开发环境选择百度网站的优势
  • 网站开发实训总结致谢wordpress删除谷歌自提
  • 织梦网站如何做404wordpress ux theme
  • 可以做内容的网站湘潭网站建设 AA磐石网络
  • 网站上传到虚拟服务器网站建设氵金手指下拉十二
  • 淘宝客没有网站怎么做上海所有公司名称
  • 网站建设学那些课深圳知名室内设计公司
  • 建行官方网站c 网站开发案例详解
  • 平面设计实例网站网站做招聘需要什么资质
  • 网站要有可留言功能 怎么做福州建站网络公司
  • 建网站建设的基本流程电商平台谈双11变冷
  • win7系统做网站服务器系统在吗做网站商城
  • 深圳外贸网站优化什么是企业网站策划案
  • 网站标题用什么符号分开珠海网站建设及优化
  • 上海网站关键词排名优化报价东莞全网合一网站
  • 网络公司 网站建设 小程序中国建设银银行招聘网站
  • 做网站去哪个公司好甘肃住房和城乡建设厅网站首页
  • 北京网站开发浩森宇特有什么网站做任务给钱的
  • 柞水县城乡建设局网站wordpress 页面转跳
  • 有经验的企业做网站wordpress实时交流插件
  • 文化馆网站建设磁力搜索器在线
  • 网站建设电话销售录音深圳网站营销推广公司电话
  • wordpress中文站cn电子工程网 ofweek
  • 做任务 网站深圳知名设计公司
  • 企业为什么做网站推广网站问题有哪些内容
  • 东莞网站建设东莞crm软件系统 运用
  • 有没有好的网站可以学做头发网址类网站怎么做
  • 建设网站需要提交什么资料企业网站营销的典型案例
  • 上行30m可以做网站吗企业公司网站建设公司
  • 手机怎么建设视频网站设计公司的logo