缺少依赖项:软件包 reconfigure-0.1.50-1.noarch (ajenti) 需要 python-chardet

缺少依赖项:软件包 reconfigure-0.1.50-1.noarch (ajenti) 需要 python-chardet

安装 ajenti 时出现此错误。

yum install ajenti

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

任何想法?

答案1

我遇到了同样的错误并找到了解决方案。这似乎是因为您的系统上未正确添加 EPEL repo。

  1. 首先,检查你的操作系统版本(CentOS 6.x/5.x?32位/64位):

    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
    
  3. 现在启用 remi:

    vim /etc/yum.repos.d/remi.repo
    

    改为。[remi]enable=0enable=1

  4. 现在输入命令yum install ajenti它应该会成功。

有关详细信息,请参阅这里

相关内容