CentOS 4 yum不能更新解决一例

来源:互联网 发布:国家数据统计库 编辑:程序博客网 时间:2024/04/29 08:57
今天帮一台CentOS 4.7安装snmp时,发现出错了:
[root@~ yum.repos.d]# yum install -y net-snmp net-snmp-utils
Setting up Install Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
not using ftp, http[s], or file for repos, skipping - 4 is not a valid release or hasnt been released yet
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@~ yum.repos.d]#
去找了/etc/yum.repos.d/CentOS-Base.repo,看了里面的配置,访问http://mirror.centos.org/centos/4/,出现readme.txt,点开后提示

This directory (and version of CentOS) is depreciated.  

CentOS-4 is now past EOL

You can get the last released version of centos 4.9 here:

http://vault.centos.org/4.9/

原来还有最后的更新源(http://vault.centos.org/4.9/),不过是4.7的CentOS-Base.repo没有了,进入4.9目录时看还有,于是将4.9的CentOS-Base.repo下载下来更新到服务器/etc/yum.repos.d/CentOS-Base.repo,然后将文件中4.9全部更新为4.7,
再来yum,搞定了。
[root@~ yum.repos.d]# yum install -y net-snmp net-snmp-utils
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 160 kB    00:09
sqlite cache needs updating, reading in metadata
update    : ################################################## 516/516
primary.xml.gz            100% |=========================| 608 kB    00:28
sqlite cache needs updating, reading in metadata
base      : ################################################## 1591/1591
primary.xml.gz            100% |=========================|  38 kB    00:03
sqlite cache needs updating, reading in metadata
extras    : ################################################## 172/172
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for net-snmp-utils to pack into transaction set.
net-snmp-utils-5.1.2-13.e 100% |=========================|  27 kB    00:02
---> Package net-snmp-utils.i386 0:5.1.2-13.el4_7.3 set to be updated
---> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.1.2-13.el4_7.3 100% |=========================|  37 kB    00:03
---> Package net-snmp.i386 0:5.1.2-13.el4_7.3 set to be updated
--> Running transaction check
--> Processing Dependency: libsensors.so.3 for package: net-snmp
--> Processing Dependency: net-snmp-libs = 5.1.2-13.el4_7.3 for package: net-snmp
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.8.7-2.40.5.i 100% |=========================|  23 kB    00:00
---> Package lm_sensors.i386 0:2.8.7-2.40.5 set to be updated
---> Downloading header for net-snmp-libs to pack into transaction set.
net-snmp-libs-5.1.2-13.el 100% |=========================|  25 kB    00:01
---> Package net-snmp-libs.i386 0:5.1.2-13.el4_7.3 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 net-snmp                i386       5.1.2-13.el4_7.3  update            506 k
 net-snmp-utils          i386       5.1.2-13.el4_7.3  update            159 k
Installing for dependencies:
 lm_sensors              i386       2.8.7-2.40.5     base              426 k
Updating for dependencies:
 net-snmp-libs           i386       5.1.2-13.el4_7.3  update            1.7 M

Transaction Summary
=============================================================================
Install      3 Package(s)
Update       1 Package(s)
Remove       0 Package(s)
Total download size: 2.8 M
Downloading Packages:
(1/4): lm_sensors-2.8.7-2 100% |=========================| 426 kB    00:14
(2/4): net-snmp-utils-5.1 100% |=========================| 159 kB    00:10
(3/4): net-snmp-libs-5.1. 100% |=========================| 1.7 MB    02:15
(4/4): net-snmp-5.1.2-13. 100% |=========================| 506 kB    00:18
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : net-snmp-libs                ######################### [1/5]
  Installing: lm_sensors                   ######################### [2/5]
  Installing: net-snmp                     ######################### [3/5]
  Installing: net-snmp-utils               ######################### [4/5]
  Cleanup   : net-snmp-libs                ######################### [5/5]

Installed: net-snmp.i386 0:5.1.2-13.el4_7.3 net-snmp-utils.i386 0:5.1.2-13.el4_7.3
Dependency Installed: lm_sensors.i386 0:2.8.7-2.40.5
Dependency Updated: net-snmp-libs.i386 0:5.1.2-13.el4_7.3
Complete!

阅读(927) | 评论(0) | 转发(0) |
0

上一篇:VMware 下Linux 移动/复制后无法识别网卡的解决过程

下一篇:CentOS 4.7 yum安装snmp

相关热门文章
  • 电脑0x000000f4蓝屏的解决办法...
  • 解决克隆虚拟机的网络问题...
  • 你知道Samsung的智能手能+投影...
  • ORA-04031 故障解决案例详细分...
  • 有问题呈现的时候应当踊跃解决...
  • linux 常见服务端口
  • 【ROOTFS搭建】busybox的httpd...
  • 什么是shell
  • linux socket的bug??
  • linux的线程是否受到了保护?...
  • IBM DS3400 盘阵怎么查看是单...
  • 启动auditd时,报错如下,怎么...
  • CGSL系统中root密码正确,但无...
  • 在CGSL系统中,如何为不同的用...
  • CGSL系统如何设置交换分区的大...
给主人留下些什么吧!~~
原创粉丝点击