【原】Ubuntu中安装 mercurial - TortoiseHG
生活随笔
收集整理的這篇文章主要介紹了
【原】Ubuntu中安装 mercurial - TortoiseHG
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
=================================================
本文為khler原作,轉載必須確保本文完整并完整保留原作者信息及本文原始鏈接
E-mail: khler@163.com
QQ:?????23381103
MSN:???pragmac@hotmail.com
=================================================
Ubuntu9.10后對apt的操作方便了很多。以下針對9.10后:
1、加入ppa:mercurial
2、加入ppa:TortoiseHG3、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:~$
?
?
?
?
轉載于:https://www.cnblogs.com/khler/archive/2010/08/27/1810365.html
總結
以上是生活随笔為你收集整理的【原】Ubuntu中安装 mercurial - TortoiseHG的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JG+ 检查字符串
- 下一篇: Navicat 9如何连接ORACLE1