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.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM