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

新的一年已经开始,准备换工作。在此之前,我已经做好了升级准备,买了一台服务器。

[En]

The new year has begun, ready to change jobs. Before that, I was ready to upgrade and bought a server.

最近阿里在做活动,新人35块就可以买一台服务器一年,确实便宜。
不用说,购买服务器并直接将其烘干。

[En]

Needless to say, buy the server and dry it directly.

没想到,我在第一步就卡住了。当他开始打败魏伟杰的时候,他在部队里病逝了,真的很遗憾。

[En]

Unexpectedly, I got stuck in the first step. It was really “a pity that he fell ill and died in the army when he started to defeat Wei Weijie.”

安装软件并直接向我报告错误:

[En]

Install a software and report the error directly to me:

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

;
没有,新买的服务器什么都没碰,官网上也下载了软件安装包。

[En]

No, the newly bought server has not touched anything, and the software installation package is also downloaded on the official website.

没有办法,只能求助于无所不能的杜娘,寻找许多和我有同样问题的人,认为这样应该可以很快解决问题

[En]

There is no way, but to turn to the almighty du Niang, a search for many people with the same problems as me, thinking that this should be able to solve the problem quickly

是没再报原先的错误了,但是新的问题出现了
Error: Failed to synchronize cache for repo 'AppStream';

好吧,继续度娘

下载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

后来,我终于在某个角落的评论中看到了它。

[En]

Later, I finally saw it in the comments in some corner.

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

修改文件,再次运行并修复它。

[En]

Modify the file, run it again and fix it.

Original: https://www.cnblogs.com/Dewumu/p/15962383.html
Author: 德乌姆列特
Title: 关于Linux_CentOS8.0安装软件时遇到的坑

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/524050/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • [转帖]shell中if语句的使用

    404. 抱歉,您访问的资源不存在。 可能是网址有误,或者对应的内容被删除,或者处于私有状态。 代码改变世界,联系邮箱 contact@cnblogs.com 园子的商业化努力-困…

    Linux 2023年5月28日
    0103
  • vue+vant音乐播放器(andriod)项目

    新建项目 在适合的目录下打开终端输入vue create music_player,回车 选择Default([Vue 2] babel,eslint) 等待项目构建完成 项目构建…

    Linux 2023年6月13日
    088
  • LeetCode-16. 最接近的三数之和

    题目来源 题目详情 给你一个长度为 n 的整数数组 nums和 一个目标值 target。请你从 nums 中选出三个整数,使它们的和与 target 最接近。 返回这三个数的和。…

    Linux 2023年6月7日
    098
  • ASCLL 字符码

    信息在计算机上是用二进制数表示的,这种表示法让人很难理解。因此,计算机上都配有输入和输出设备,这些设备的主要目的就是以一种人类可阅读的形式将信息在这些设备上显示出来供人阅读理解。为…

    Linux 2023年6月7日
    0114
  • 【报错解决】【Linux】Name or service not known

    Name or service not known 配置文件位置 /etc/sysconfig/network-scripts/ nano ifcfg-eth0查看网卡配置,确认d…

    Linux 2023年6月14日
    077
  • RPA 抖音机器人汇总

    bash;gutter:true; 一、RPA 抖音小店催好评机器人 RPA机器人详情: 1、配置好抖音小店订单号与催好评话术 2、启动抖音小店催好评机器人 3、机器人打开飞鸽客服…

    Linux 2023年6月7日
    088
  • 结构型之【装饰器模式】

    定义: 装饰器模式(Decorator Pattern) 也称为包装模式(Wrapper Pattern) 是指在不改变原有对象的基础之上,将功能附加到对象上,提供了比继承更有弹性…

    Linux 2023年6月14日
    0105
  • Linux命令

    Linux命令是对Linux系统进行管理的命令,对于Linux系统来说,无论是中央处理器、内存、磁盘驱动器、键盘、鼠标,还是用户等都是文件,Linux系统管理的命令是它正常运行的核…

    Linux 2023年5月27日
    090
  • OpenWRT TP_LINK703N 校园网 锐捷认证解决办法

    OpenWRT TP_LINK703N 校园网 锐捷认证解决办法 一、准备的工具 1) SSH登录工具,推荐使用MobaXterm_Personal下载链接https://moba…

    Linux 2023年6月6日
    087
  • 了解Redis这个核心数据类型

    string 字符串 tring 类型是二进制安全的,即 string 中可以包含任何数据。 Redis 中的普通 string 采用 raw encoding …

    Linux 2023年5月28日
    095
  • Shell中判断文件,目录是否存在

    一. 具体每个选项对应的判断内容: 二.常用的例子: Original: https://www.cnblogs.com/DreamDrive/p/7706585.htmlAuth…

    Linux 2023年5月28日
    084
  • Vue项目配置CDN

    两篇博客的实现方法不同。 另外:nginx的前端文件路径应该为:/usr/local/nginx/html下。 index.html <head> <meta c…

    Linux 2023年6月7日
    097
  • 写shell,运行出错:syntax error near unexpected token `$’dor”

    【解决过程】 1.网上搜了下,参考:linux shell脚本报错:syntax error near unexpected token </a></p> …

    Linux 2023年5月28日
    094
  • 基于CentOS系统安装OceanBase数据库

    一、OceanBase介绍 OceanBase是由蚂蚁集团完全自主研发的金融级分布式关系数据库,始创于2010年。OceanBase具有数据强一致、高可用、高性能、在线扩展、高度兼…

    Linux 2023年5月27日
    081
  • 正则表达式 9. 替换分组使用

    https://www.zybuluo.com/Zjmainstay/note/709093 替换分组使用 (9.1)给源串每个链接加上http://www.zjmainstay….

    Linux 2023年6月13日
    095
  • shell生成指定长度的随机数

    生成指定长度是随机数 8位纯数字的随机数 tr -cd ‘0-9’ 使用/dev/urandom而不是/dev/random是因为后者比较慢。 Original: https://…

    Linux 2023年5月28日
    0105
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球