当前位置 : 主页 > 操作系统 > centos >

linux系统使用yum仓库出现的错误总结

来源:互联网 收集:自由互联 发布时间:2022-06-20
mysqldba技术群 378190849 武汉-linux运维群 236415619 1.用yum安装软件出现磁盘空间满 [root@node1 ~]# yum install ftp --安装软件出现错误 ................................... Error Downloading Packages: ftp-0.17-53.el6

mysql dba技术群 378190849

武汉-linux运维群 236415619


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

 

图:

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总

解决方法:

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

 

解决方法:(检查网络)

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总_02

测试结果:

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总_03

 

3.使用yum安装软件包出现进程占用

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总_04

解决方法:

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总_05

测试结果:

linux系统使用yum仓库出现的错误总结_linux系统使用yum仓库出现的错误总_06

 

 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

【文章原创作者:阿里云代理 http://www.558idc.com/aliyun.html 复制请保留原URL】
上一篇:rsync的配置使用
下一篇:没有了
网友评论