![hgsubversion,mercurial(ppa):依赖关系中断](https://linux22.com/image/1043074/hgsubversion%EF%BC%8Cmercurial%EF%BC%88ppa%EF%BC%89%EF%BC%9A%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB%E4%B8%AD%E6%96%AD.png)
我已经从电力供应协议,然后我想安装 hgsubversion。由于未满足依赖关系,安装失败。但据我所知,它们已满足。我在这里遗漏了什么?
jb@x60 ~ $ apt-cache policy mercurial
mercurial:
Installed: 2.7-0ppa1
Candidate: 2.7-0ppa1
Version table:
*** 2.7-0ppa1 0
500 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu/ raring/main i386 Packages
100 /var/lib/dpkg/status
2.2.2-2 0
500 http://ftp.tu-chemnitz.de/pub/linux/ubuntu/ raring/universe i386 Packages
jb@x60 ~ $ sudo apt-get install hgsubversion
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:
hgsubversion : Depends: mercurial (>= 1.9.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
其他信息:
jb@x60 ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 15 Olivia
Release: 15
Codename: olivia
答案1
调查 PPA 的 mercurial 源包中的 debian/control,我们发现它具有:
Breaks: hgsubversion (<< 1.5~)
所以如果您想要 hgsubversion,那么您将需要一个较新的版本(saucy 中提供 1.5-1)。
顺便说一下,在这种情况下,您还可以通过运行以下命令来查看错误:
sudo apt-get install -oDebug::pkgProblemResolver=yes hgsubversion
它从一开始就告诉我们:
Investigating (0) mercurial [ amd64 ] < 2.7-0ppa1 > ( universe/devel )
Broken mercurial:amd64 Breaks on hgsubversion [ amd64 ] < none -> 1.4-1 > ( universe/vcs ) (< 1.5~)
Considering hgsubversion:amd64 9998 as a solution to mercurial:amd64 5
Removing mercurial:amd64 rather than change hgsubversion:amd64