ubuntu安装最新的mercurial

Mercurial 是一种轻量级分布式版本控制系统,采用 Python 语言实现,易于学习和使用,扩展性强

之前安装的mercurial版本(2.8.2)太老了,想安装最新版本的。

网上搜到方法

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

但是提示更新失败

W: Failed to fetch http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu/dists/trusty/main/binary-amd64/Packages  Hash Sum mismatch
W: Failed to fetch http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/dists/trusty/main/binary-amd64/Packages  Hash Sum mismatch

关于Hash Sum mismatch,就不在这里讨论了。

后来发现: pypi上有对应的安装包

https://pypi.python.org/pypi/Mercurial

只要

sudo pip install mercurial -U #如果之前已安装
sudo pip install mercurial    #如果之前未安装

效果:

[hupeng@hupeng-vm ~]$hg --version
Mercurial Distributed SCM (version 4.1.3)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2017 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

转载于:https://www.cnblogs.com/hupeng1234/p/6763262.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值