歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 使用yum時總是有提示信息的解決辦法

使用yum時總是有提示信息的解決辦法

日期:2017/3/3 16:12:25   编辑:關於Linux

1,

關於使用yum“The program package-cleanup is...”的解決辦法

在使用yum 時總是有提示信息:

The program package-cleanup is found in the yum-utils package.

或者提示:

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-complete-transaction

yum install yum-utils

# 運行 yum-complete-transaction

yum-complete-transaction --cleanup-only

# 清除可能存在的重復包

package-cleanup --dupes

# 清除可能存在的損壞包

package-cleanup --problems

問題解決!

2,

報錯:

You could try using --skip-broken to work around the problem

You could try running: package-cleanup --problems

package-cleanup --dupes

rpm -Va --nofiles --nodigest

The program package-cleanup is found in the yum-utils package.

解決:

yum clean all

rpm --rebuilddb

yum update

或者換一個yum源

刪掉原來的需要的包,重新安裝

 

Copyright © Linux教程網 All Rights Reserved