linux系統使用yum倉庫出現的錯誤總結

mysql dba技術羣 378190849node

武漢-linux運維羣 236415619mysql


1.用yum安裝軟件出現磁盤空間滿linux

[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 ~]#sql

 

圖:centos

wKiom1LjXnnjIy0qAAIOzJxrKa0616.jpg

解決方法:網絡

[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]#app

 

測試結果:運維

[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]#
ide

 

 2.用yum使用網絡源,出現網絡不通linux運維

[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]#

 

解決方法:(檢查網絡)

wKiom1LjZK_QIjqUAAIYF6-U5j4224.jpg

測試結果:

wKiom1LjZhDh-nn5AADUmIIL1ik482.jpg

 

3.使用yum安裝軟件包出現進程佔用

wKiom1LjZT3jdvgRAAHpqT_hsVg183.jpg

解決方法:

wKioL1LjZVeDvnuHAABLcTcxfpk509.jpg

測試結果:

wKioL1LjZbLBoxqVAADUmIIL1ik182.jpg

 

 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      

..................................................................................        

 

Linux搭建網絡源:http://tongcheng.blog.51cto.com/6214144/1338949

Linux搭建本地源:http://tongcheng.blog.51cto.com/6214144/1338876

相關文章
相關標籤/搜索