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

转载于:https://www.cnblogs.com/khler/archive/2010/08/27/1810365.html

【原】Ubuntu中安装 mercurial - TortoiseHG相关推荐

  1. linux软件安装 home,Ubuntu中安装建筑设计软件Sweet Home 3D

    原标题:Ubuntu中安装建筑设计软件Sweet Home 3D 本教程介绍如何在Ubuntu 16.04,Ubuntu 18.04,Ubuntu 19.04及更高版本中轻松安装最新的Sweet Ho ...

  2. 【Ubuntu】Ubuntu中安装yum

    ** Ubuntu中安装yum ** 步骤: sudo apt-get install build-essential apt-get install yum 问题:无法定位软件包 解决方法: 更新软 ...

  3. Ubuntu中安装docker-compose

    安装最新Docker社区版请看博客<Ubuntu中安装最新Docker社区版> Compose是用于定义和运行多容器Docker应用程序的工具.通过Compose,我们可以使用YAML文件 ...

  4. abp 打包部署到ubuntu_如何在Ubuntu中安装Docker和运行 Docker容器

    Docker是一种开源且流行的操作系统级虚拟化(俗称"容器化")技术,主要在Linux和Windows上运行. Docker使用容器可以更轻松地创建,部署和运行应用程序. 使用容器 ...

  5. ubuntu安装matlab2009,Ubuntu中安装Matlab2010a

    Ubuntu中安装Matlab2010a 一.前言: 相信大家对于Matlab应该很熟悉吧,我就不多做介绍了. 对于如何在Ubuntu中安装Matlab很多人都不懂,大家都是新手,可以理解.我自己本身 ...

  6. unbantu上python安装步骤_如何在Ubuntu中安装Python 3.6?

    Python是增长最快的主要通用编程语言.原因有很多,比如它的可读性和灵活性,易于学习和使用,可靠和高效. 有两个主要的Python版本被使用- 2和3 (Python的现在和未来);前者将看不到新的 ...

  7. Ubuntu中安装Eclipse的SVN插件——subclipse

    Ubuntu中安装Eclipse的SVN插件--subclipse (2010-07-01 18:38) 分类: Linux 安装好Eclipse以后 进入菜单Help->Install new ...

  8. samba服务器新建文件权限,Ubuntu中安装samba服务器创建文件共享的方法及普通用户设置共享的问题解析...

    Ubuntu中安装samba服务器创建文件共享的方法及普通用户设置共享的问题解析 发布时间:2011-01-04 19:10:00   作者:佚名   我要评论 本文是基于ubuntu桌面版进行操作说 ...

  9. labview linux 内核 不匹配,Linux CentOS7(或Ubuntu)中安装NI-VISA后一打开范例Simple Serial.vi就闪退,LabVIEW就崩溃。...

    Linux CentOS7(或Ubuntu)中安装NI-VISA后一打开范例Simple Serial.vi就闪退,LabVIEW就崩溃. 我安装了LabVIEW pro 2017 for Linux ...

最新文章

  1. linux软件安装不完全傻瓜手册
  2. python startswitch_python学习第四天
  3. ffmpeg 转换flv压缩大小_ffmpeg转换参数和压缩输出大小的比率 参考 最新版本FFMPEG...
  4. pause容器作用_Kubernetes学习之pause容器
  5. M1 Mac禁用电池运行状况管理,打开/关闭优化电池和充电方法有哪些?
  6. Linux 2.6.19.x 内核编译配置选项简介
  7. python sorted函数倒序_Python sorted函数
  8. HDU 6318 Swaps and inversions
  9. C# 导出Excel解决Cannot get a text value from a numeric cell或者Cannot get a numeric value from a text cell
  10. oracle 表字段拆分,oracle 字段拆分
  11. Web前端和后端之区分
  12. cv2.imread
  13. 国内几个免费的Git私有仓库
  14. b站唐老师人工智能基础知识笔记
  15. aardio - 【库】扩展函数库
  16. 手机u盘显示服务器连接超时,U盘插到手机里却没反应?这几种情况你知道么?...
  17. 不用下载软件,教你轻松在线修改照片大小
  18. 世界级软件开发大师Martin Fowler这三本书经典书你都读过哪一本?
  19. 服务器无法远程连接原因分析
  20. 今天参加小米的宣讲会

热门文章

  1. 利用HAProxy实现零停机更新维护
  2. 边缘检测与轮廓检测有什么区别?
  3. OpenCV2.3的cvCalcHist函数有问题?255级值总为0,索性自己写一个直方图计算函数,附源码
  4. SpringMVC应用和RESTful应用的区别
  5. 大理大学日常作业计算机基础知识,大理学院成人高等教育计算机应用基础课程作业题及答案...
  6. could not load java7_xml导入properties文件报异常:Could not load JDBC driver class [${jdbc.driver}]...
  7. Go安装web框架revel
  8. python第五章课后题答案超星_MOOC网课章节答案_Python 语言程序设计见面课测试答案...
  9. makefile编译_C++ Lesson 5:编译Makefile
  10. 9月往后推6个月是几月_成考每年一般几月份颁发毕业证书