{"id":10,"date":"2019-01-30T09:27:14","date_gmt":"2019-01-30T01:27:14","guid":{"rendered":"http:\/\/127.0.0.1\/wordpress\/?p=10"},"modified":"2020-06-06T14:49:40","modified_gmt":"2020-06-06T06:49:40","slug":"centos%e7%b3%bb%e7%bb%9f%e9%81%87%e5%88%b0another-app-is-currently-holding-the-yum-lock%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.mrfai.cn\/index.php\/2019\/01\/30\/10\/","title":{"rendered":"CentOS\u7cfb\u7edf\u9047\u5230Another app is currently holding the yum lock\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p><strong>\u95ee\u9898\u63cf\u8ff0\uff1aCentOs\u7cfb\u7edf\u4e2d\u4f7f\u7528yum\u5b89\u88c5\u8f6f\u4ef6\uff0c\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-verse\">[root@localhost ~]# yum install gnuradio usrp\nLoaded plugins: fastestmirror\nExisting lock \/var\/run\/yum.pid: another copy is running as pid 15069.\nAnother app is currently holding the yum lock; waiting for it to exit...\u00a0\nThe other application is: yum-updatesd-he\u00a0\u00a0\u00a0\nMemory :\u00a0 17 M RSS ( 29 MB VSZ)\u00a0\u00a0\u00a0\nStarted: Wed May 25 20:58:54 2011 - 2:10:35 ago\u00a0\u00a0\u00a0\nState\u00a0 : Sleeping, pid: 15069<\/pre>\n\n\n\n<p><strong>\u53d1\u73b0\u95ee\u9898\u540e\uff0c\u7ec8\u6b62\u5b89\u88c5\uff0c\u5f53\u518d\u6b21\u6267\u884c\u5b89\u88c5\u547d\u4ee4\u540e\uff0c\u95ee\u9898\u4f9d\u7136\u3002<\/strong><\/p>\n\n\n\n<p><br><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-verse\">\u5728\u547d\u4ee4\u884c\u8f93\u5165\uff1a\n# rm -f \/var\/run\/yum.pid \/sbin\/service\u00a0\n# yum-updatesd restart<\/pre>\n\n\n\n<p><strong>\u7136\u540e\u91cd\u65b0\u6267\u884c\u5b89\u88c5\u547d\u4ee4\uff0c\u95ee\u9898\u89e3\u51b3\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0\uff1aCentOs\u7cfb\u7edf\u4e2d\u4f7f\u7528yum\u5b89\u88c5\u8f6f\u4ef6\uff0c\u51fa&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/blog.mrfai.cn\/index.php\/2019\/01\/30\/10\/\">Continue reading<span class=\"screen-reader-text\">CentOS\u7cfb\u7edf\u9047\u5230Another app is currently holding the yum lock\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[4,2],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-linux","entry"],"_links":{"self":[{"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":4,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mrfai.cn\/index.php\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}