Centos

缺少依賴關係:包 reconfigure-0.1.50-1.noarch (ajenti) 需要 python-chardet

  • December 14, 2015

我在安裝 ajenti 時遇到此錯誤。

yum install ajenti

Error: Missing Dependency: python-chardet is needed by 
package reconfigure-0.1.50-1.noarch (ajenti)

任何的想法?

我得到了同樣的錯誤並找到了解決方案。這似乎是因為 EPEL 儲存庫未正確添加到您的系統上。

  1. 首先,檢查你的作業系統的版本(CentOS 6.x/5.x?32-bit/64-bit):

cat /etc/*-release 2. 接下來,使用以下幾行添加 repo:

CentOS 5.x:

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

CentOS 6.x:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
  1. 現在啟用 remi:
vim /etc/yum.repos.d/remi.repo

[remi]更改enable=0enable=1. 4. 現在輸入命令yum install ajenti,它應該成功。

有關更多詳細資訊,請參見此處

引用自:https://serverfault.com/questions/608328