VMware 使用yum遇到的一些问题

Existing lock /var/run/yum.pid: another copy is running as pid 解决办法
yum只能支持一个例程运行,所以如果有一个例程已经在运行,其他的必须等待该进程退出释放lock。出现这种情况时,可以用以下命令来恢复:
rm -f /var/run/yum.pid
转自https://blog.csdn.net/violet_echo_0908/article/details/52047289
yum安装出现No package vim available解决办法
首先需要更新yum仓库yum -y update,这个耗时比较长
再次运行安装,发现错误依旧,看来这种猜包名的方法不适用;所以接下来可以通过yum的查找参数来列出vim相关的包名:
[root@malu2 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.hosting90.cz
  • extras: mirror.hosting90.cz
  • updates: mirror.hosting90.cz
    ===================== Matched: vim ===================
    vim-X11.x86_64 : The VIM version of the vi editor for the X Window System.
    vim-common.x86_64 : The common files needed by any version of the VIM editor.
    vim-enhanced.x86_64 : A version of the VIM editor which includes recent
    : enhancements.
    vim-minimal.x86_64 : A minimal version of the VIM editor.

通过查看,我们可以看到,yum列出了详细的vim相关的包名,这样就可以顺利的安装vim了:

#yum -y install vim-enhanced.x86_64

以上命令就能执行成功了。当然不仅仅vim安装,其他程序比如mysql我们也同样只要先进行yum查找,再通过匹配详细包名来进行安装,就不会出现上述错误了
转自:https://blog.csdn.net/gl1987807/article/details/7253021

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值