安装TortoiseHg:需要更高的Mercurial版本


8

我正在使用Ubuntu 11.04,并且正在尝试安装TortoiseHg。我已经从TortoiseHg的网站上应用了PPA,因此apt-get实际上可以找到它。但是,无论何时键入sudo apt-get tortoisehg,我都会得到:

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:
 tortoisehg : Depends: mercurial (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Broken packages

我理解这意味着什么:我需要安装Mercurial 1.8。问题是我做不到。如果尝试的话sudo apt-get install mercurial,它表示1.7.5是最新版本,但肯定不是

那么,我如何说服这件事安装最新版本的Mercurial?

我尝试了此答案中的命令来安装Mercurial,但这没有帮助。它再次表示,Mercurial是最新的。

Answers:


10

使用水银PPA

apt-add-repository ppa:mercurial-ppa/releases
apt-get update 
apt-get install tortoisehg

我也将它用于Ubunut 18.04,并且效果很好。
user1015214

不适用于19.04。必须运行sudo apt update --allow-unauthenticated && sudo apt install tortoisehg
tatsu
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.