關於linux(CentOS)無法更新安裝軟體出錯的解決辦法(提示The program package-cleanup is found in the yum-utils package)

來源:互聯網
上載者:User
關於使用yum“The program package-cleanup is...”的解決辦法 在使用yum 時總是有提示資訊: The program package-cleanup is found in the yum-utils package.   www.2cto.com  或者提示: There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. The program yum-complete-transaction is found in the yum-utils package.

以下是網上給出(錯誤的)解決方案,但經過測試是錯誤的或者失敗的解決辦法,因為這時的yum已經不能正常安裝任何軟體了,所以yum-utils自然也

無法安裝了,故以下方法步驟 在第一步的時候就被秒殺了

處理步驟: # 安裝 yum-complete-transaction yum install yum-utils # 運行 yum-complete-transaction yum-complete-transaction --cleanup-only   www.2cto.com  # 清除可能存在的重複包 package-cleanup --dupes # 清除可能存在的損壞包 package-cleanup --problems


正確的解決方案

其實很簡單 只要兩步 命令一切OK

先執行:yum clean all
然後再:rpm --rebuilddb
最後是:yum update

一切OK!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.