我在运行 Ubuntu 16.04 LTS xenial OS 的机器上安装 cloudera manager。当我输入时,sudo apt-get install cloudera-manager-agent
我在命令行上得到了以下内容
root@chinni:/home/solomon# apt-get install cloudera-manager-agent Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: cloudera-manager-agent : Depends: libssl-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages
请帮我修复
感谢并问候 MSKrishna
答案1
当我输入apt-get purge Cloudera-manager-agent
Got following
root@chinni:/home/solomon# apt-get purge Cloudera-manager-agent Reading package lists... Done Building dependency tree Reading state information... Done Package 'Cloudera-manager-agent' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
当我打字时sudo apt-get autoclean
已关注
root@chinni:/home/solomon# sudo apt-get autoclean Reading package lists... Done Building dependency tree Reading state information... Done
当我输入sudo apt-get clear cache
已关注
root@chinni:/home/solomon# sudo apt-get clear cache E: Invalid operation clear
当我输入sudo apt-get update && sudo apt-get upgrade
已关注
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/by-hash/SHA256/dae248f756e160fd915d49993b50c904e511bf59424df660d6946bc266992370
当我输入
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-amd64/by-hash/SHA256/7482a22fa7637f6a15b2ffe45c0347c52e8785174fae3623d97e0e1bcee3ba3f
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-i386/by-hash/SHA256/60aed3a96f8007aea276e6a21e4a3b0d2bde0560605d0a6f044ca895305aeb1d
E: Some index files failed to download. They have been ignored, or old ones used instead.apt-get install Cloudera-manager-agent
得到以下内容
root@chinni:/home/solomon# apt-get install Cloudera-manager-agent Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable the distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: cloudera-manager-agent : Depends: libssl-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages
有什么解决办法吗?
答案2
首先尝试sudo apt-get install -f
修复损坏的软件包。如果不行,则尝试通过清除已安装的软件包来删除sudo apt-get purge cloudera-manager-agent
。然后运行以下命令清理您的 apt 缓存文件
sudo apt-get autoclean sudo apt-get clean cache
然后通过运行来更新并升级你的包管理器sudo apt-get update && sudo apt-get upgrade
然后再次安装你的包sudo apt-get install cloudera-manager-agent
希望这会有效!!