ºìÁªLinuxÃÅ»§
Linux°ïÖú

Centos7´íÎóÇëÇó°ïÖú£¡

·¢²¼Ê±¼ä:2015-09-18 15:23:17À´Ô´:ºìÁª×÷Õß:ChubbyJiang
²»ÖªµÀʲôԭÒò£¬Ê¹ÓÃvim±à¼­Îļþʱ³öÏÖÕâÑùµÄ´íÎó£º
[centos@ip ~]$ vim test
vim: error while loading shared libraries: libgpm.so.2: cannot open shared object file: No such file or directory

Ö®ºóÏëÓÃyumÖØа²×°vimÊÔÊÔ£¬½á¹û³öÏÖÕâÑùµÄÎÊÌ⣺

[centos@ip ~]$ sudo yum install -y vim
ÒѼÓÔزå¼þ£ºfastestmirror
[Errno 117] ½á¹¹ÐèÒªÇåÀí: '/var/cache/yum/x86_64/7/base/repomd.xml.old.tmp'

µ«ÊÇls¿´Õâ¸öĿ¼ÓÖûÓÐÕâ¸öÎļþ£º

[centos@ip ~]$ ls /var/cache/yum/x86_64/7/base/
0e6e90965f55146ba5025ea450f822d1bb0267d0299ef64dd4365825e6bad995-c7-x86_64-comps.xml.gz
9c92f78fb6f22491ea7414f5a844ad08c604139b151d4c702f2c0d6ae092c86f-primary.sqlite.bz2
cachecookie
gen
mirrorlist.txt
packages
repomd.xml

ʹÓÃyum updateÒ²²»ÐУº

[centos@ip ~]$ sudo yum update
ÒѼÓÔزå¼þ£ºfastestmirror


[Errno 117] ½á¹¹ÐèÒªÇåÀí: '/var/cache/yum/x86_64/7/base/repomd.xml.old.tmp'

ʹÓÃyum clean£º

[centos@ip ~]$ sudo yum clean all
ÒѼÓÔزå¼þ£ºfastestmirror
ÕýÔÚÇåÀíÈí¼þÔ´£º base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors

Ö®ºóyum updateËƺõ¿ÉÒÔÕý³£Ö´ÐУ¬µ«ÊǺÜÃ÷ÏÔ»¹ÊÇ´íÎó£º

ÕýÔÚ¸üР: nss-tools-3.19.1-5.el7_1.x86_64 47/268
Error unpacking rpm package nss-tools-3.19.1-5.el7_1.x86_64
error: openssl-libs-1:1.0.1e-42.el7.9.x86_64: install failed
error: unpacking of archive failed on file /usr/lib64/nss/unsupported-tools/atob;55fbb40c: cpio: open

Ò»´ó¶ÑÕÒ²»µ½ÎļþµÄ´íÎó¡£

ÇëÎÊÓÐľÓдóÉñÖªµÀÕâÊÇʲô¸öÔ­Òò£¬ÎÒÐèÒªÔõôÐÞ¸´£¿£¿
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. ryonji ÓÚ 2015-09-22 09:35:45·¢±í:

    Ö±½ÓµÄ±¨´íÊÇ:
    vim: error while loading shared libraries: libgpm.so.2: cannot open shared object file: No such file or directory
    Ó¦¸ÃÊÇÄã°ügpm °²×°µÄ²»¶Ô,ÐèÒªÖØа²×° .
    Äã¶Ôyum µÄʹÓÃÊÇÁíÒ»ÈËÎÊÌâ,ÓÐʱºòyum ÍøÂç²»Îȶ¨Ò²»áÔì³ÉÕâ¸öÏÖÏó.
    ,