AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1182598
Accepted
machnic
machnic
Asked: 2019-10-22 01:16:56 +0800 CST2019-10-22 01:16:56 +0800 CST 2019-10-22 01:16:56 +0800 CST

如何在 ubuntu 19.10 上安装 TortoiseHg

  • 772

从 Ubuntu 19.04 更新到 Ubuntu 19.10 后,我刚刚尝试安装 TortoiseHg,我得到了以下信息:

sudo apt install tortoisehg 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package tortoisehg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'tortoisehg' has no installation candidate

目前是否有任何安装 TortoiseHg 的选项,除了我自己从源代码构建它?


关于可能重复安装 TortoiseHg 的评论:需要更高的 Mercurial 版本- 它不能解决问题。

目前我正在使用 mercurial 版本4.8.2,这是 19.10 中最新可用的版本,没有添加 mercurial-ppa。

当我尝试添加 mercurial-ppa 时,出现以下错误:

sudo add-apt-repository ppa:mercurial-ppa/releases
 See https://launchpad.net/~mercurial-ppa
 More info: https://launchpad.net/~mercurial-ppa/+archive/ubuntu/releases
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Ign:1 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan InRelease
Err:2 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan Release                                                                
  404  Not Found [IP: 91.189.95.83 80]
Hit:3 http://security.ubuntu.com/ubuntu eoan-security InRelease                                                                                                                                        
Hit:4 http://nl.archive.ubuntu.com/ubuntu eoan InRelease                                                                                                                                               
Hit:5 http://nl.archive.ubuntu.com/ubuntu eoan-updates InRelease                                                                                                   
Hit:6 https://repo.skype.com/deb stable InRelease                                                                          
Hit:7 http://nl.archive.ubuntu.com/ubuntu eoan-backports InRelease                                                         
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease                                         
Ign:9 http://dl.google.com/linux/earth/deb stable InRelease
Hit:10 http://dl.google.com/linux/chrome/deb stable Release
Hit:11 http://dl.google.com/linux/earth/deb stable Release
Hit:12 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
mercurial 19.10
  • 2 2 个回答
  • 4777 Views

2 个回答

  • Voted
  1. Best Answer
    Kulfy
    2019-10-22T02:18:43+08:002019-10-22T02:18:43+08:00

    基于 Debian 的操作系统的 TortoiseHg 最新版本是 4.8.1-0.1(根据Debian 搜索结果)。Ubuntu 的档案库中提供了相同的版本(可以通过搜索 Ubuntu Packages * 找到),并且在 Eoan Ermine (19.10) 中仍然可以满足依赖关系,而无需任何额外的工作。

    要安装运行:

    wget http://ftp.us.debian.org/debian/pool/main/t/tortoisehg/tortoisehg_4.8.1-0.1_all.deb
    sudo apt install ./tortoisehg_4.8.1-0.1_all.deb
    

    *感谢N0rbert提醒包含链接。

    • 9
  2. Jay
    2020-06-03T07:46:54+08:002020-06-03T07:46:54+08:00

    Kulfy的回答对我不起作用。实际上 wget 行失败是因为该文件不存在。截至今天,4.5.2 是可用于 Ubuntu 的最新 Tortoisehg 版本。

    这是我在 Ubuntu 20 中的做法;它可能也适用于 19 岁。请注意,我是从“稳定”分支中提取的,因为它具有不在主分支中的修复(截至今天,例如,主分支上的架子功能被破坏但固定在“稳定”上。)

    # make a folder to hold the tortoise source
    mkdir ~/temp 2>/dev/null
    cd ~/temp
    
    # alias the python3 binary as python
    sudo apt install python-is-python3
    # now this should work, and return a 3.8.x version
    python --version
    
    # pip3 is needed to fulfill all the build dependencies
    sudo apt install -y python3-pip build-essential
    
    # install mercurial command line
    sudo apt install -y mercurial
    # pull tortoisehg source (stable branch)
    # this no longer exists: hg clone https://bitbucket.org/tortoisehg/thg/ -r stable
    # use this one instead:
    hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg -r stable
    cd thg
    pip3 install pyqt5
    pip3 install mercurial
    pip3 install qscintilla
    sudo apt install -y pyqt5.qsci-dev
    
    # install one more necessary package
    sudo apt install -y python3-iniparse
    
    # build it
    make local
    # move it to ~/tortoisehg  (this is optional)
    cd ~/temp
    rm -rf ~/tortoisehg 2>/dev/null
    mkdir ~/tortoisehg
    mv thg/* ~/tortoisehg
    

    现在您可以创建一个停靠/桌面条目:

    gedit ~/.local/share/applications/tortoisehg.desktop
    

    并粘贴在这些行中(用您的用户名替换“开发者”):

    [Desktop Entry]
    Name=TortoiseHG
    Exec=/home/developer/tortoisehg/thg
    Comment=Launch TortoiseHG
    Terminal=false
    Type=Application
    Icon=/home/developer/tortoisehg/icons/thg_logo.ico
    

    现在您可以点击“显示应用程序”按钮(开始菜单),搜索 Tortoise,并将其添加到收藏夹。

    • 1

相关问题

  • Mercurial 安装在哪里?

  • Mercurial 有完整的 GUI 界面吗?

  • 编译 Mercurial

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve