首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在16.04上安装ubuntu-sdk时存在依赖关系问题

在16.04上安装ubuntu-sdk时存在依赖关系问题
EN

Ask Ubuntu用户
提问于 2016-05-25 05:24:04
回答 2查看 1.6K关注 0票数 2

在Ubuntu 16.04 64位的清洁安装上安装ubuntu-sdk时,我得到了这个错误:

代码语言:javascript
复制
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.`

如何解决这个问题。

EN

回答 2

Ask Ubuntu用户

发布于 2016-09-25 20:19:36

您需要一个一个地分别安装一些依赖项。在我的例子中,它是:

代码语言:javascript
复制
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.

所以我第一次尝试安装软件工具:

代码语言:javascript
复制
sudo apt install phablet-tools

它抛出:

代码语言:javascript
复制
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-工具-使用以下方法一个接一个地快速引导:

代码语言:javascript
复制
sudo apt install android-tools-adb
sudo apt install android-tools-fastboot

然后,我再次尝试使用以下方法安装ubuntu:

代码语言:javascript
复制
sudo apt install ubuntu-sdk

而且起作用了。

因此,关键是,您必须一个一个地安装所有依赖项。它适用于您想要安装的任何软件包,而不仅仅适用于ubuntu。

票数 1
EN

Ask Ubuntu用户

发布于 2016-07-12 04:53:22

如果在安装sdk时遇到类似未满足的依赖项之类的错误,则需要安装错误中提到的所有依赖项。然后最后安装ubuntu。效果很好。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/777144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档