发布时间:2014-06-10 11:14:51来源:红联作者:velcbo
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 http://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 http://mirrorlist.centos.org/?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 www.baidu.com
^C
1)错误执行yum clean all报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:
这是因为升级了Python3.6,yum采用python作为命令解释器,系统自带的python解释器为python2.7
2)解决方法
修改/usr/bin/yum文件中的第一行为
#!/usr/bin/python修改成#!/usr/bin/python2.7
3)保存修改后再次执行 yum clean all
搞掂
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)