解決centos 下yum lock

來源:互聯網
上載者:User

解決centos 下yum lock

http://www.cnblogs.com/tippoint/archive/2010/09/19/1831126.html

centos5.5下yum install的時候,報了一堆錯誤,如下:


Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 38 M RSS ( 37 MB VSZ)
Started:Sta Jul 24 16:28:58 2010 - 1:37:07 ago
State : Sleeping, pid: 13020

看來是有一個進程正在執行yum,於是採用常規的處理方式

1。登出:結果無效

2。重啟:無效

3。虛機重啟:還是無效

這還真怪了啊,看來linux和windows就是不一樣,於是查了點資料,發現在系統初始化的時候,是還有這個進程的。

解決辦法:


rm -f /var/run/yum.pid
/sbin/service yum-updatesd restart
Stopping yum-updatesd: [ OK ]
Starting yum-updatesd: [ OK ]
另外有人說用/sbin/service yum-updatesd stop 也不管用,原因是你禁止了update但是系統啟動的時候還是會有這個進程。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.