snappy-tools 安装错误 ubuntu 14.04

snappy-tools 安装错误 ubuntu 14.04

当我尝试安装 snappy 工具时出现以下错误:

sudo add-apt-repository ppa:snappy-dev/beta; sudo apt-get update; sudo apt-get upgrade; sudo apt-get install snappy-tools bzr


The following packages have unmet dependencies:
snappy-tools : Depends: ubuntu-device-flash but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

ric@ric-ubuntu:~$ sudo apt-get install ubuntu-device-flash snappy-tools bzr
[sudo] password for ric: 
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:
ubuntu-device-flash : Depends: click-ubuntu-policy but it is not installable
E: Unable to correct problems, you have held broken packages.
ric@ric-ubuntu:~$ sudo apt-get install ubuntu-device-flash snappy-tools bzr click-ubuntu-policy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package click-ubuntu-policy 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 'click-ubuntu-policy' has no installation candidate
ric@ric-ubuntu:~$

@Jan

答案1

现在sudo add-apt-repository ppa:snappy-dev/beta您已经向 apt-sources 添加了一个新的存储库。

sudo apt-get update更新了软件包列表,包括您刚刚添加的 PPA 列表。

sudo apt-get upgrade将您的软件包升级到最新的可用软件包。

最后,sudo apt-get install snappy-tools bzr您尝试安装软件包snappy-toolsbzr。安装snappy-tools失败,因为该软件包依赖于另一个名为的软件包,ubuntu-device-flash但无法安装该软件包。

尝试sudo apt-get install ubuntu-device-flash snappy-tools bzr并报告。

编辑

click-ubuntu-policy在 14.04 中不可用,仅在较新的版本中可用:http://packages.ubuntu.com/search?suite=all&searchon=names&keywords=click-ubuntu-policy

这意味着您有一个混合的 14.04 / 14.10 系统...

相关内容