yum 安装软件时总出现提示问题的解决—centos 5.8 64bit

简介:

今天学习做实验时,因为需要用yum安装一些软件,但是在启动yum时总出现以下的提示:

?
1
2
3
4
5
6
7
8
9
[root@bogon ~] # yum install
Loaded plugins: fastestmirror, security
Repository base is listed  more  than once  in  the configuration
Repository updates is listed  more  than once  in  the configuration
Repository addons is listed  more  than once  in  the configuration
Repository extras is listed  more  than once  in  the configuration
Repository centosplus is listed  more  than once  in  the configuration
Repository contrib is listed  more  than once  in  the configuration
Loading mirror speeds from cached hostfile

虽然不影响使用,看着总不美观 。

在搜索引擎里搜索了一下, 也没有找到十分确切的解决办法,有一个细路不是看看repo文件是不是重复,根据提示,说明应该是配置的yum里有相同的命令。

我回想了一下,应该有这方面的问题 ,因为我为了加快yum的速度,除了系统配置好的以外,我还添加了 163,epel的源。

?
1
2
3
4
5
6
7
8
9
10
11
[root@bogon ~] # cd /etc/yum.repos.d/
[root@bogon yum.repos.d] # ll
鎬昏 36
-rw-r--r-- 1 root root 2341 2011-02-17 CentOS5-Base-163.repo --自己添加的
-rw-r--r-- 1 root root 2446 05-14 06:45 CentOS-Base.repo
-rw-r--r-- 1 root root 1926 2013-10-08 CentOS-Base.repo.ori
-rw-r--r-- 1 root root  636 2013-10-08 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  626 2013-10-08 CentOS-Media.repo
-rw-r--r-- 1 root root 7574 2013-10-08 CentOS-Vault.repo
-rw-r--r-- 1 root root  954 2010-08-12 epel.repo   --自己添加
-rw-r--r-- 1 root root 1054 2010-08-12 epel-testing.repo --自动与epel.repo一起安装的
?
1
  
?
1
我的解决办法是:把163的改名不让他起作用。
[root@bogon yum.repos.d]# mv CentOS5-Base-163.repo CentOS5-Base-163.repo.ori
[root@bogon yum.repos.d]# yum info
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: mirrors.yun-idc.com

修改完成后,直接运行yum info,没有再出现这个问题。看来是解决了,

本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/1412145如需转载请自行联系原作者


cysky

相关文章
|
安全 关系型数据库 MySQL
CentOS 7 yum 安装 MySQL教程
在CentOS 7上安装MySQL 8,其实流程很清晰。首先通过官方Yum仓库来安装服务,然后启动并设为开机自启。最重要的环节是首次安全设置:需要先从日志里找到临时密码来登录,再修改成你自己的密码,并为远程连接创建用户和授权。最后,也别忘了在服务器防火墙上放行3306端口,这样远程才能连上。
2918 16
|
Linux
Centos6配置阿里云yum源报错
在CentOS 6配置阿里云Yum源时,可能出现EPEL仓库访问报错(404 Not Found)。解决方法:编辑`/etc/yum.repos.d/epel.repo`文件,将`enabled`和`gpgcheck`参数设为0 ``` 此设置可解决仓库无法访问的问题。
2613 29
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
1953 25
|
缓存 Linux
CentOS-6的iso下载地址镜像yum源
通过上述步骤,您可以成功下载CentOS 6的ISO镜像文件,并配置适用于CentOS 6的YUM源。尽管CentOS 6已经停止更新,但使用这些镜像和YUM源配置,可以继续在需要的环境中使用和维护CentOS 6系统。
9171 20
|
Linux 虚拟化 开发者
一键将CentOs的yum源更换为国内阿里yum源
一键将CentOs的yum源更换为国内阿里yum源
24402 31
CentOs9 yum源出现404问题
CentOs9-stream yum源出现404问题
|
缓存 Linux
解决CentOS 7停止更新后yum源失效问题【图文教程】
以上步骤完成后,你的 CentOS 7 系统就会使用阿里云的 yum 源,更换yum以后就可以正常使用啦。
16535 2
|
关系型数据库 MySQL Linux
在CentOS上使用yum安装与使用MySQL
在CentOS操作系统上使用yum包管理器安装和配置MySQL数据库的详细步骤,包括下载MySQL的yum源配置、安装MySQL服务、启动和停止服务、设置开机自启动、获取临时密码、修改root用户密码、授权用户以及处理相关问题。同时,文章还包含了一些操作的截图,帮助用户更直观地理解安装和配置过程。
4198 0
在CentOS上使用yum安装与使用MySQL
|
Web App开发 缓存 Ubuntu
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
1564 11
|
网络协议 Linux
CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org;"之解决办法(换源)
CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org; Name or service not known“之解决办法(换源)