背景:
阅读新闻
Linux系统使用yum仓库出现的错误总结
[日期:2014-02-03] 来源:Linux社区 作者:tongcheng [字体:]
1.用yum安装软件出现磁盘空间满
[root@node1 ~]# yum install ftp --安装软件出现错误
...................................
Error Downloading Packages:
ftp-0.17-53.el6.i686: Insufficient space in download directory /var/cache/yum/i386/6/c6-tong/packages
* free 0
* needed 56 k
[root@node1 ~]#
图:
解决方法:
[root@node1 ~]# df -h --查看磁盘空间,空间已满
文件系统 容量 已用 可用 已用%% 挂载点
/dev/mapper/VolGroup-lv_root
6.5G 6.1G 0 100% / --根分区空间已满,清除文件
tmpfs 504M 0 504M 0% /dev/shm
/dev/sda1 485M 46M 414M 10% /boot
/dev/sr0 3.6G 3.6G 0 100% /mnt
[root@node1 home]# df -h --清除后的结果
文件系统 容量 已用 可用 已用%% 挂载点
/dev/mapper/VolGroup-lv_root
6.5G 1.9G 4.2G 31% /
tmpfs 504M 0 504M 0% /dev/shm
/dev/sda1 485M 46M 414M 10% /boot
/dev/sr0 3.6G 3.6G 0 100% /mnt
[root@node1 home]#
测试结果:
[root@node1 home]# yum install ftp --安装成功
Loaded plugins: fastestmirror
Determining fastest mirrors
c6-tong
........................................
Running Transaction
Installing : ftp-0.17-53.el6.i686 1/1
Verifying : ftp-0.17-53.el6.i686 1/1
Installed:
ftp.i686 0:0.17-53.el6
Complete!
[root@node1 home]#
2.用yum使用网络源,出现网络不通
[root@node1 yum.repos.d]# yum install squid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist CentOS.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not retrieve mirrorlist ?release=6&arch=i386&repo=centosplus error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
^C^C^C^Z
[1]+ Stopped yum install squid
[root@node1 yum.repos.d]# ping
^C
解决方法:(检查网络)
测试结果:
3.使用yum安装软件包出现进程占用
解决方法:
测试结果: