【原】Ubuntu中安裝 mercurial – TortoiseHG

來源:互聯網
上載者:User

=================================================
本文為khler原作,轉載必須確保本文完整並完整保留原作者資訊及本文原始連結
E-mail: khler@163.com
QQ:     23381103
MSN:   pragmac@hotmail.com
=================================================

Ubuntu9.10後對apt的操作方便了很多。以下針對9.10後:

1、加入ppa:mercurial

2、加入ppa:TortoiseHG
3、update apt
4、install TortoiseHG
5、重啟系統
6、OK了

具體操作如下:

hyh@ubuntu:~$ sudo add-apt-repository ppa:tortoisehg-ppa/releases
[sudo] password for hyh:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 61EC6AF562E4A619C1156F71F2A97597D5056DDE
gpg: 下載密鑰‘D5056DDE’,從 hkp 伺服器 keyserver.ubuntu.com
gpg: 密鑰 D5056DDE:公開金鑰“Launchpad TortoiseHg PPA Packagers”已匯入
gpg: 合計被處理的數量:1
gpg:               已匯入:1  (RSA: 1)

hyh@ubuntu:~$ sudo apt-get update
命中 http://cn.archive.ubuntu.com lucid Release.gpg
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/main Translation-zh_CN         
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-zh_CN   
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/universe Translation-zh_CN     
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-zh_CN   
命中 http://cn.archive.ubuntu.com lucid-updates Release.gpg                    
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-zh_CN
命中 http://cn.archive.ubuntu.com lucid Release                                
命中 http://cn.archive.ubuntu.com lucid-updates Release                        
命中 http://cn.archive.ubuntu.com lucid/main Packages                          
命中 http://cn.archive.ubuntu.com lucid/restricted Packages                    
命中 http://cn.archive.ubuntu.com lucid/main Sources                           
命中 http://cn.archive.ubuntu.com lucid/restricted Sources                     
命中 http://cn.archive.ubuntu.com lucid/universe Packages                      
命中 http://cn.archive.ubuntu.com lucid/universe Sources                       
命中 http://cn.archive.ubuntu.com lucid/multiverse Packages                    
命中 http://cn.archive.ubuntu.com lucid/multiverse Sources                     
命中 http://cn.archive.ubuntu.com lucid-updates/main Packages                  
命中 http://cn.archive.ubuntu.com lucid-updates/restricted Packages            
命中 http://cn.archive.ubuntu.com lucid-updates/main Sources                   
命中 http://cn.archive.ubuntu.com lucid-updates/restricted Sources             
命中 http://cn.archive.ubuntu.com lucid-updates/universe Packages              
命中 http://cn.archive.ubuntu.com lucid-updates/universe Sources               
命中 http://cn.archive.ubuntu.com lucid-updates/multiverse Packages            
命中 http://cn.archive.ubuntu.com lucid-updates/multiverse Sources             
命中 http://ppa.launchpad.net lucid Release.gpg                                
忽略 http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/ lucid/main Translation-zh_CN
命中 http://ppa.launchpad.net lucid Release                                
命中 http://ppa.launchpad.net lucid/main Packages                           
命中 http://security.ubuntu.com lucid-security Release.gpg
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-zh_CN
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-zh_CN
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-zh_CN
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-zh_CN
命中 http://security.ubuntu.com lucid-security Release
命中 http://security.ubuntu.com lucid-security/main Packages
命中 http://security.ubuntu.com lucid-security/restricted Packages
命中 http://security.ubuntu.com lucid-security/main Sources
命中 http://security.ubuntu.com lucid-security/restricted Sources
命中 http://security.ubuntu.com lucid-security/universe Packages
命中 http://security.ubuntu.com lucid-security/universe Sources
命中 http://security.ubuntu.com lucid-security/multiverse Packages
命中 http://security.ubuntu.com lucid-security/multiverse Sources
正在讀取軟體包列表... 完成

hyh@ubuntu:~$ sudo apt-get install tortoisehg
正在讀取軟體包列表... 完成
正在分析軟體包的相依樹狀結構       
正在讀取狀態資訊... 完成       
有一些軟體包無法被安裝。如果您用的是 unstable 發行版,這也許是
因為系統無法達到您要求的狀態造成的。該版本中可能會有一些您需要的軟體
包尚未被建立或是它們已被從新到(Incoming)目錄移出。
下列資訊可能會對解決問題有所協助:

下列軟體包有未滿足的依賴關係:
  tortoisehg: 依賴: mercurial (>= 1.6) 但是它將不會被安裝
E: 破損的軟體包

hyh@ubuntu:~$ sudo add-apt-repository ppa:mercurial-ppa/releases
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 41BD8711B1F0EC2B0D85B91CF59CE3A8323293EE
gpg: 下載密鑰‘323293EE’,從 hkp 伺服器 keyserver.ubuntu.com
gpg: 密鑰 323293EE:公開金鑰“Launchpad Mercurial PPA Packagers”已匯入
gpg: 合計被處理的數量:1
gpg:               已匯入:1  (RSA: 1)

hyh@ubuntu:~$ sudo apt-get update
命中 http://cn.archive.ubuntu.com lucid Release.gpg
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/main Translation-zh_CN         
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-zh_CN   
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/universe Translation-zh_CN     
命中 http://cn.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-zh_CN   
命中 http://cn.archive.ubuntu.com lucid-updates Release.gpg                    
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-zh_CN
忽略 http://cn.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-zh_CN
命中 http://cn.archive.ubuntu.com lucid Release                                
命中 http://cn.archive.ubuntu.com lucid-updates Release                        
命中 http://cn.archive.ubuntu.com lucid/main Packages                          
命中 http://cn.archive.ubuntu.com lucid/restricted Packages                    
命中 http://cn.archive.ubuntu.com lucid/main Sources                           
命中 http://cn.archive.ubuntu.com lucid/restricted Sources                     
命中 http://cn.archive.ubuntu.com lucid/universe Packages                      
命中 http://cn.archive.ubuntu.com lucid/universe Sources                       
命中 http://cn.archive.ubuntu.com lucid/multiverse Packages                    
命中 http://cn.archive.ubuntu.com lucid/multiverse Sources                     
命中 http://cn.archive.ubuntu.com lucid-updates/main Packages                  
命中 http://cn.archive.ubuntu.com lucid-updates/restricted Packages            
命中 http://cn.archive.ubuntu.com lucid-updates/main Sources                   
命中 http://cn.archive.ubuntu.com lucid-updates/restricted Sources             
命中 http://cn.archive.ubuntu.com lucid-updates/universe Packages              
命中 http://cn.archive.ubuntu.com lucid-updates/universe Sources               
命中 http://cn.archive.ubuntu.com lucid-updates/multiverse Packages            
命中 http://cn.archive.ubuntu.com lucid-updates/multiverse Sources             
擷取:1 http://ppa.launchpad.net lucid Release.gpg [307B]                      
忽略 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu/ lucid/main Translation-zh_CN
命中 http://ppa.launchpad.net lucid Release.gpg
命中 http://security.ubuntu.com lucid-security Release.gpg
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-zh_CN
忽略 http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/ lucid/main Translation-zh_CN
擷取:2 http://ppa.launchpad.net lucid Release [57.3kB]
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-zh_CN
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-zh_CN
忽略 http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-zh_CN
命中 http://security.ubuntu.com lucid-security Release
命中 http://security.ubuntu.com lucid-security/main Packages
命中 http://security.ubuntu.com lucid-security/restricted Packages
命中 http://security.ubuntu.com lucid-security/main Sources
命中 http://security.ubuntu.com lucid-security/restricted Sources
命中 http://security.ubuntu.com lucid-security/universe Packages
命中 http://security.ubuntu.com lucid-security/universe Sources
命中 http://security.ubuntu.com lucid-security/multiverse Packages
命中 http://security.ubuntu.com lucid-security/multiverse Sources
命中 http://ppa.launchpad.net lucid Release           
擷取:3 http://ppa.launchpad.net lucid/main Packages [1,904B]
命中 http://ppa.launchpad.net lucid/main Packages
下載 59.5kB,耗時 3秒 (14.9kB/s)
正在讀取軟體包列表... 完成

hyh@ubuntu:~$ sudo apt-get install tortoisehg
正在讀取軟體包列表... 完成
正在分析軟體包的相依樹狀結構       
正在讀取狀態資訊... 完成       
將會安裝下列額外的軟體包:
  mercurial mercurial-common python-iniparse
建議安裝的軟體包:
  qct vim emacs kdiff3 tkdiff meld xxdiff python-mysqldb python-pygments
  tortoisehg-nautilus
下列【新】軟體包將被安裝:
  mercurial mercurial-common python-iniparse tortoisehg
升級了 0 個軟體包,新安裝了 4 個軟體包,要卸載 0 個軟體包,有 0 個軟體包未被升級。
需要下載 4,002kB 的軟體包。
解壓縮後會消耗掉 11.7MB 的額外空間。
您希望繼續執行嗎?[Y/n]
擷取:1 http://cn.archive.ubuntu.com/ubuntu/ lucid/main python-iniparse 0.3.1-1 [19.0kB]
擷取:2 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu/ lucid/main mercurial-common 1.6.3-0ppa1~lucid1 [1,321kB]
擷取:3 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu/ lucid/main mercurial 1.6.3-0ppa1~lucid1 [54.8kB]                                            
擷取:4 http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/ lucid/main tortoisehg 1.1.2-1ppa1 [2,608kB]                                                
下載 4,002kB,耗時 43秒 (92.7kB/s)                                                                                                                          
選中了曾被取消選擇的軟體包 mercurial-common。
(正在讀取資料庫 ... 系統當前總共安裝有 127088 個檔案和目錄。)
正在解壓縮 mercurial-common (從 .../mercurial-common_1.6.3-0ppa1~lucid1_all.deb) ...
選中了曾被取消選擇的軟體包 mercurial。
正在解壓縮 mercurial (從 .../mercurial_1.6.3-0ppa1~lucid1_i386.deb) ...
選中了曾被取消選擇的軟體包 tortoisehg。
正在解壓縮 tortoisehg (從 .../tortoisehg_1.1.2-1ppa1_all.deb) ...
選中了曾被取消選擇的軟體包 python-iniparse。
正在解壓縮 python-iniparse (從 .../python-iniparse_0.3.1-1_all.deb) ...
正在處理用於 man-db 的觸發器...
正在處理用於 doc-base 的觸發器...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
正在設定 mercurial-common (1.6.3-0ppa1~lucid1) ...

正在設定 mercurial (1.6.3-0ppa1~lucid1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version

正在設定 tortoisehg (1.1.2-1ppa1) ...

正在設定 python-iniparse (0.3.1-1) ...

正在處理用於 python-support 的觸發器...

hyh@ubuntu:~$

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.