为 ubuntu touch preview 安装 phablet-tools 时缺少 python 依赖项

为 ubuntu touch preview 安装 phablet-tools 时缺少 python 依赖项

我在使用 ubuntu 13.04,遇到了类似的情况,不知道如何解决依赖关系问题。有人可以帮忙吗?

mk@MS7549:~$ sudo apt-get install phablet-tools
[sudo] password for mk: 
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:
 phablet-tools : Depends: python-configobj but it is not installable
                 Depends: python-launchpadlib but it is not installable
                 Depends: python-requests but it is not installable
E: Unable to correct problems, you have held broken packages.

然后我尝试安装这 3 个 Python 包,但它们不可用。我现在需要做什么?

mk@MS7549:~$ sudo apt-get install python-configobj
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-configobj is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-configobj' has no installation candidate

mk@MS7549:~$ sudo apt-get install python-launchpadlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-launchpadlib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-launchpadlib' has no installation candidate

mk@MS7549:~$ sudo apt-get install python-requests
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-requests is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-requests' has no installation candidate

答案1

这对我来说在 Ubuntu 上很有效13.0464 位。

您是否首先添加了 PPA?

从:https://wiki.ubuntu.com/Touch/Install

sudo add-apt-repository ppa:phablet-team/tools

sudo apt-get update

sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot

答案2

我在 13.10 中遇到了同样的问题。我所做的就是在“软件和更新”中更改“下载自:”服务器。它被设置为“瑞典服务器”(因为我来自瑞典),然后我切换到从“主服务器”下载,突然一切都开始正常工作。所以要么是瑞典服务器过时了,要么是我现在可以使用的旧更新出了问题。

希望能帮助到你!

编辑:是的,我已经添加了 ppa 并进行了 apt-get 更新

相关内容