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]#
解决方法:(检查网络)
测试结果:
3.使用yum安装软件包出现进程占用
解决方法:
测试结果:
4.You could try using --skip-broken to work around the problem
错误:
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
解决方法:
yum clean all
rpm --rebuilddb
yum update
5.提示需要key值
[root@db2 yum.repos.d]# yum install mysql-mmm*
Loaded plugins: refresh-packagekit, rhnplugin
Repository base is listed more than once in the configuration
................................................................
Total size: 3.6 M
Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[root@db2 yum.repos.d]#
解决方法:
[root@db2 yum.repos.d]# yum install mysql-mmm* --nogpgcheck
Loaded plugins: refresh-packagekit, rhnplugin
Repository base is listed more than once in the configuration
This system is not registered with RHN.
6.Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@node2 yum.repos.d]# yum install mysql-mmm*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@node2 yum.repos.d]#
解决方法:
[root@node2 yum.repos.d]# ping baidu.com --网络不通
ping: unknown host baidu.com
[root@node2 yum.repos.d]# ping -c 3 baidu.com --调试网络,必须能连接外网
PING baidu.com (123.125.114.144) 56(84) bytes of data.
64 bytes from 123.125.114.144: icmp_seq=1 ttl=52 time=116 ms
64 bytes from 123.125.114.144: icmp_seq=2 ttl=51 time=33.5 ms
64 bytes from 123.125.114.144: icmp_seq=3 ttl=52 time=31.9 ms
--- baidu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2035ms
rtt min/avg/max/mdev = 31.902/60.596/116.372/39.445 ms
[root@node2 yum.repos.d]# yum install mysql-mmm*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 5.5 kB 00:00
epel-debuginfo/metalink | 5.7 kB 00:00
epel-source/metalink | 5.6 kB 00:00
* epel: ftp.yzu.edu.tw
* epel-debuginfo: ftp.yzu.edu.tw
* epel-source: ftp.yzu.edu.tw
C6.0-base | 3.7 kB 00:00
C6.0-base/primary_db
..................................................................................