He,YuanHui —— 业精于勤荒于嬉,行成于思毁于随

如果你喜欢一个事,又有这样的才干,那就把整个人都投入进去,就要象一把刀直扎下去直到刀柄一样,不要问为什么,也不要管会碰到什么。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

=================================================
本文为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:~$

 

 

 

 

posted on 2010-08-27 19:35  He,YuanHui  阅读(3097)  评论(0编辑  收藏  举报

Add to Google