打印

解决Fedora10无法使用yum

[复制链接]
193|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
追光少年|  楼主 | 2018-10-5 17:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
刚装的fedora10,在给firefox安装flash插件时无法使用yum,终端一直打印another app is currently holding the yum lock;waiting for it to exit...。那么刚装到系统是谁在用yum呢?以下E文是老外写的方法[可以很好解决它]:



i dont know if this is good advise, but i found this, just google it



hit ctrl-c; that's the key combination to kill any currently running process in a bash shell or terminal.



to find out what's locking up yum, try running:



# ps aux | grep yum



note the pid number of the process and run this to kill the process:



# kill (insert pid number)



check to see if the process has been killed by rerunning:



# ps aux | grep yum



if not, rinse and repeat until the process is killed; some processes can be very stubborn.         



ps命令大全:

1)ps a 显示现行终端机下的所有程序,包括其他用户的程序。



2)ps -A 显示所有程序。



3)ps c 列出程序时,显示每个程序真正的指令名称,而不包含路径,参数或常驻服务的标示。



4)ps -e 此参数的效果和指定"A"参数相同。



5)ps e 列出程序时,显示每个程序所使用的环境变量。



6)ps f 用ASCII字符显示树状结构,表达程序间的相互关系。



7)ps -H 显示树状结构,表示程序间的相互关系。



8)ps -N 显示所有的程序,除了执行ps指令终端机下的程序之外。



9)ps s 采用程序信号的格式显示程序状况。



10)ps S 列出程序时,包括已中断的子程序资料。



11)ps -t<终端机编号>



指定终端机编号,并列出属于该终端机的程序的状况。



12)ps u



以用户为主的格式来显示程序状况。



13)ps x



显示所有程序,不以终端机来区分。



最常用的方法是ps -aux,然后再利用一个管道符号导向到grep去查找特定的进程,然后再对特定的进程进行操作。

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

379

主题

379

帖子

0

粉丝