问题描述

使用 bzip2 命令的时候提示「未找到命令」

[root@localhost ~]# bzip2 -c test.txt
-bash: bzip2: 未找到命令

那就安装个 bzip2 吧,又提示以下内容:

[root@localhost ~]# yum install bzip2
已加载插件:fastestmirror
^[[A^[[B^[[B^[[B^Z
[2]+  已停止               yum install bzip2
[root@localhost ~]# yum install bzip2
已加载插件:fastestmirror
/var/run/yum.pid 已被锁定,PID 为 1242 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...另一个应用程序是:yum内存: 24 M RSS (415 MB VSZ)已启动: Sun Jan 20 10:06:09 2019 - 00:24之前状态  :跟踪/停止,进程ID:1242
Another app is currently holding the yum lock; waiting for it to exit...另一个应用程序是:yum内存: 24 M RSS (415 MB VSZ)已启动: Sun Jan 20 10:06:09 2019 - 00:26之前状态  :跟踪/停止,进程ID:1242
Another app is currently holding the yum lock; waiting for it to exit...另一个应用程序是:yum内存: 24 M RSS (415 MB VSZ)已启动: Sun Jan 20 10:06:09 2019 - 00:28之前状态  :跟踪/停止,进程ID:1242
Another app is currently holding the yum lock; waiting for it to exit...另一个应用程序是:yum内存: 24 M RSS (415 MB VSZ)已启动: Sun Jan 20 10:06:09 2019 - 00:30之前状态  :跟踪/停止,进程ID:1242
^Z
[3]+  已停止               yum install bzip2

解决方案

/var/run/yum.pid 删除即可,输入以下命令:

rm -rf /var/run/yum.pid

然后就可以用 yum 命令继续安装 bzip2 了。

最后

我的计算机呀。。。。

yum 安装出现 /var/run/yum.pid 已被锁定相关推荐

  1. Linux进程被锁定,解决yum时出现 /var/run/yum.pid 已被锁定,PID 为 3548 的另一个程序正在运行。...

    在CentOS 7.5下使用yum时出现系统处于锁定状态的解决方法. 问题如下: [linuxidc@localhost Linux公社 www.linuxidc.com]$ sudo yum ins ...

  2. yum安装时报错,提示/var/run/yum.pid 已被锁定,解决办法

    报错现象 解决方法 方法①:直接在root下运行即可 rm -f /var/run/yum.pid '//删除进程pid,然后再次运行yum安装即可' 方法②:root下先杀死这个PID进程,再清空缓 ...

  3. 解决 CentOS 7 报错: /var/run/yum.pid 已被锁定

    报错描述 今天在使 yum 命令安装软件的时候遇到了如下报错: /var/run/yum.pid 已被锁定,PID 为 3355 的另一个程序正在运行. Another app is currentl ...

  4. /var/run/yum.pid 已被锁定 解决办法

    [root@localhost 桌面]# yum install glibc.i686 已加载插件:fastestmirror, langpacks /var/run/yum.pid 已被锁定,PID ...

  5. 成功解决使用yum安装软件的时候提示/var/run/yum.pid被锁定

    前言 yum安装软件的时候提示/var/run/yum.pid被锁定,这个问题遇到的频率比较高,相信你也曾经遇到过,网上的解决方案最常见的只有一种,而我们今天不但要解决这个问题,还要使用多种方案来解决 ...

  6. 已加载插件:fastestmirror, langpacks /var/run/yum.pid 已被锁定,PID 为 2686 的另一个程序正在运行。

    遇到的问题: 解决办法: 输入命令 rm -f /var/run/yum.pid

  7. Existing lock /var/run/yum.pid: another copy is running as pid

    yum只能支持一个例程运行,所以如果有一个例程已经在运行,其他的必须等待该进程退出释放lock.出现这种情况时,可以用以下命令来恢复: rm -f /var/run/yum.pid

  8. Existing lock /var/run/yum.pid: another copy is running as pid 22873. Another app is currently hold.

    Existing lock /var/run/yum.pid: another copy is running as pid 22873. Another app is currently holdi ...

  9. at定时任务:Can't open /var/run/atd.pid to signal atd. No atd running?

    尝试了at命令,发现报错.原因服务没有启动 [root@test yum.repos.d]# at 15:05 at> init 6 at> job 1 at Mon Jul 29 15: ...

最新文章

  1. matlab图像处理课程设计,基于MATLAB_GUI的数字图像处理程序设计课程设计
  2. AR行业成本拆解解析
  3. mapper.xml报异常The content of elhe content of element type mapper
  4. 【深度学习】神经网络知识专题总结
  5. python3读取excel方法封装_Python读取Excel的方法封装
  6. python发送文件到服务器_python 使用poster模块进行http方式的文件传输到服务器的方法...
  7. 东拉西扯:那些“老”互联网公司
  8. 什么是电源正激和反激? 正激和反激有什么区别特点?如何快速区分
  9. 把网页放到云服务器上,怎么把网页放到云服务器上
  10. python基础19 -------面向对象终结篇(介绍python对象中各种内置命令)
  11. SecondaryNameNode的Inconsistent checkpoint fields异常
  12. FTP Client Setup
  13. SQL中的集合运算有必要存在的几个例子
  14. 绕开华为通道,获取解锁码解锁BootLoader
  15. 均值漂移(Meanshift)算法
  16. 成都传智播客七月开班。你HOLD住了吗?
  17. 关于CVR建模中延迟反馈问题
  18. 分类堆叠柱状图顺序排列及其添加合适条块标签
  19. 【x86架构】x86平台CPU的历史
  20. 智慧交通产品解决方案-交通地理信息平台

热门文章

  1. 实体类与数据库字段类型
  2. ios客户端学习-二维码扫描和应用跳转
  3. 通过AppStore上的app生成二维码扫描下载
  4. 【KD】Correlation Congruence for Knowledge Distillation
  5. iphone11右上角信号显示_iPhone11真机使用半个月,不黑不吹,信号明显比10好很多...
  6. DIY旧电脑-解决旧电脑硬盘无法显示
  7. 贪心埃及分数函数c语言,贪心算法之埃及分数问题
  8. activity不在后台应用中显示
  9. QAxObject word文档添加页码(页眉和页脚)
  10. Ant Design Vue - 环境搭建(Windows)