我无法在我的 12.04 机器上安装 phablet-tools,我试过
$ sudo apt-get update
[...]
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
[...]
$ sudo apt-get upgrade
$ sudo apt-get install phablet-tools
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:any (>= 2.7.1-0ubuntu2) but it is not installable
E: Unable to correct problems, you have held broken packages.
我的python版本是:
$dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii python 2.7.3-0ubuntu2 interactive high-level object-oriented langu
我不知道出了什么问题,有什么建议吗?
答案1
首先,尝试一下
sudo apt-get update
sudo apt-get install -f
然后尝试重新安装。如果失败,让我们尝试其他方法。第一个方法将更新软件数据库,第二个方法将尝试修复任何损坏的依赖关系。
如果失败,你可以尝试强制安装
sudo apt-get download phablet-tools
sudo dpkg -i <filename of package>
该文件应位于您正在工作的同一文件夹中。
但是我不建议在损坏的系统上使用这些工具,我不知道用它管理的设备会发生什么。
如果没有其他问题,我随时都愿意重新安装整个系统。没有破坏的依赖关系,没有问题。始终有一个分区来保存我需要的数据和一个外部硬盘。
答案2
您应该已经完成以下步骤:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot