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

mysqldba技术群 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 ~]#

图:

解决方法:

[root@node1 ~]# df -h –查看磁盘空间,空间已满文件系统 容量 已用 可用 已用%% 挂载点/dev/mapper/VolGroup-lv_root6.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_root6.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: fastestmirrorDetermining fastest mirrorsc6-tong………………………………….Running TransactionInstalling : ftp-0.17 53.el6.i686 1/1Verifying : ftp-0.17-53.el6.i686 1/1Installed:ftp.i686 0:0.17-53.el6 Complete![root@node1 home]#

2.用yum使用网络源,出现网络不通

[root@node1 yum.repos.d]# yum install squidLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 arch=i386 repo=os error was14: 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 was14: 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.Youcouldtryusing–skip-brokentoworkaroundtheproblem

错误:

Youcouldtryusing–skip-brokentoworkaroundtheproblemYoucouldtryrunning:package-cleanup–problemspackage-cleanup–dupesrpm-Va–nofiles–nodigestTheprogrampackage-cleanupisfoundintheyum-utilspackage.

解决方法:

yumcleanallrpm–rebuilddbyumupdate

5.提示需要key值

[root@db2 yum.repos.d]# yum install mysql-mmm* Loaded plugins: refresh-packagekit, rhnpluginRepository base is listed more than once in the configuration

……………………………………………………….

Total size: 3.6 MInstalled size: 15 MIs this ok [y/N]: yDownloading 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* –nogpgcheckLoaded plugins: refresh-packagekit, rhnpluginRepository base is listed more than once in the configurationThis 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: fastestmirrorLoading mirror speeds from cached hostfileError: 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 ms64 bytes from 123.125.114.144: icmp_seq=2 ttl=51 time=33.5 ms64 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 2035msrtt min/avg/max/mdev = 31.902/60.596/116.372/39.445 ms

[root@node2 yum.repos.d]# yum install mysql-mmm*Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileepel/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.twC6.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

累死累活不说,走马观花反而少了真实体验,

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

相关文章:

你感兴趣的文章:

标签云: