在Ubuntu 16.04 64位的清洁安装上安装ubuntu-sdk时,我得到了这个错误:
The following packages have unmet dependencies:
ubuntu-sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed
Depends: autopilot-desktop but it is not installable
Depends: intltool but it is not installable
Depends: libcontent-hub-doc but it is not installable
Depends: phablet-tools but it is not going to be installed
Depends: ubuntu-device-flash but it is not going to be installed
Depends: ubuntu-sdk-ide but it is not going to be installed
E: Unable to correct problems, you have held broken packages.`如何解决这个问题。
发布于 2016-09-25 20:19:36
您需要一个一个地分别安装一些依赖项。在我的例子中,它是:
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:
ubuntu-sdk : Depends: phablet-tools but it is not going to be installed
Depends: ubuntu-sdk-ide but it is not going to be installed
E: Unable to correct problems, you have held broken packages.所以我第一次尝试安装软件工具:
sudo apt install phablet-tools它抛出:
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:
phablet-tools : Depends: android-tools-adb (>= 4.2.2)
Depends: android-tools-fastboot (>= 4.2.2)
E: Unable to correct problems, you have held broken packages.因此,我已经安装了android-tools-亚行和android-工具-使用以下方法一个接一个地快速引导:
sudo apt install android-tools-adb
sudo apt install android-tools-fastboot然后,我再次尝试使用以下方法安装ubuntu:
sudo apt install ubuntu-sdk而且起作用了。
因此,关键是,您必须一个一个地安装所有依赖项。它适用于您想要安装的任何软件包,而不仅仅适用于ubuntu。
发布于 2016-07-12 04:53:22
如果在安装sdk时遇到类似未满足的依赖项之类的错误,则需要安装错误中提到的所有依赖项。然后最后安装ubuntu。效果很好。
https://askubuntu.com/questions/777144
复制相似问题