关于Linux_CentOS8.0安装软件时遇到的坑

编程

新的一年开始了,准备换工作。在这之前准备先好好提升一下,买了一台服务器。

最近阿里在做活动,新人35块就可以买一台服务器一年,确实便宜。

话不多说,买完服务器直接开干。

没想到第一步就给我卡住了,真是“出师未捷身先死”

安装个软件直接给我报错:

Repository AppStream is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository PowerTools is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

;

不能够啊,新买的服务器,啥也没动过啊,软件安装包也是在官网上下载的。

没办法,只好求助万能的度娘,一搜好多和我一样问题的,心想这下应该能很快解决问题

  • http://www.bnxb.com/linuxserver/27764.html
  • https://www.jianshu.com/p/68a5b33099d2

是没再报原先的错误了,但是新的问题出现了

Error: Failed to synchronize cache for repo "AppStream";

好吧,继续度娘

  • https://blog.csdn.net/benleng/article/details/103080644
  • https://blog.csdn.net/qq_20677507/article/details/105591353?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1.queryctrv4&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1.queryctrv4&utm_relevant_index=2
  • https://blog.csdn.net/ZYXxxx666/article/details/122793499?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~LandingCtr~Rate-1.queryctrv4&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~LandingCtr~Rate-1.queryctrv4&utm_relevant_index=2
  • https://blog.csdn.net/nyist_zxp/article/details/109372794?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-1.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-1.pc_relevant_default&utm_relevant_index=2
  • https://blog.csdn.net/weixin_46601322/article/details/122772684

    一开始一以为是CentOS-AppStream.repo和CentOS-Base.repo文件的问题

    改了又改,还是一样的报错

    把文件删了,从仓库重新下载,重新跑了一遍还是不行

# 下载CentOS-Base.repo 到路径/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

# 清除缓存

yum clean all

# 重建缓存

yum makecache

后来,终于在某个角落的评论里看到

修改 $releasever 为$releasever-stream 可以解决

修改一下文件,重跑一遍搞定

作者:德乌姆列特

出处:https://www.cnblogs.com/Dewumu/

本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。

博主的文章没有高度、深度和广度,只是凑字数。由于博主的水平不高,不足和错误之处在所难免,希望大家能够批评指出。

博主是利用读书、参考、引用、抄袭、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个无耻的文档搬运工!

以上是 关于Linux_CentOS8.0安装软件时遇到的坑 的全部内容, 来源链接: utcz.com/z/520228.html

回到顶部