我用了
sudo apt-get install alien dpkg-dev debhelper build-essential
在 Ubuntu 14.04 中获取终端的 alien 包。但我收到了这个错误消息,找不到解决方案……这是我在终端中收到的,
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:
dpkg-dev : Depends: libdpkg-perl (= 1.17.5ubuntu5) but 1.17.5ubuntu5.3 is to be installed
Recommends: fakeroot but it is not going to be installed
Recommends: libalgorithm-merge-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
请帮助我,我还是个 Linux 初学者......
答案1
包裹alien
&build-essential
可在Ubuntu 14.04 的主存储库。
首先,确保您已从软件和更新中启用了主存储库和 Universe 存储库:
这主要的组件包含的应用程序是免费软件,可以自由重新分发,并受到 Ubuntu 团队的全力支持。&宇宙组件是自由、开源和 Linux 世界的快照。
以下命令也有助于启用主存储库和 Universe 存储库:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe"
sudo apt-get update
然后通过以下方式安装包:
sudo apt-get update
sudo apt-get install alien
如果你还有问题检查您手动添加的额外存储库(来自软件和更新 > 其他软件);移除/清除然后sudo apt-get update
尝试sudo apt-get install alien
sudo apt-get install -f
并且sudo dpkg --configure -a
还有助于修复依赖关系和完成待处理的配置。