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 / 问题

问题[mercurial](ubuntu)

Martin Hope
Alberto Castillo
Asked: 2020-09-17 09:17:08 +0800 CST

如何从源代码在 Ubuntu 20.04 上安装 TortoiseHg

  • 3

我已经尝试了几个这样的选项,但我得到的只是错误,比如这个:

python setup.py \
    构建_ui \
    build_py -c -d 。\
    build_mo
运行 build_ui
运行 build_py
运行 build_mo
HGRCPATH=python 版本
回溯(最近一次通话最后):
  <module> 中的文件“thg”,第 99 行
    tortoisehg.hgqt.run.run()
  文件“/usr/lib/python3.8/importlib/util.py”,第 245 行,在 __getattribute__ 中
    self.__spec__.loader.exec_module(self)
  文件“<frozen importlib._bootstrap_external>”,第 783 行,在 exec_module
  _call_with_frames_removed 中的文件“<frozen importlib._bootstrap>”,第 219 行
  <module> 中的文件“/home/user/thg/tortoisehg/hgqt/run.py”,第 499 行
    _('存储库根目录或符号路径名')),
  文件“/home/user/thg/tortoisehg/util/i18n.py”,第 109 行,在 gettext
    返回 hglib.fromunicode(u)
  文件“/usr/lib/python3.8/importlib/util.py”,第 245 行,在 __getattribute__ 中
    self.__spec__.loader.exec_module(self)
  文件“<frozen importlib._bootstrap_external>”,第 783 行,在 exec_module
  _call_with_frames_removed 中的文件“<frozen importlib._bootstrap>”,第 219 行
  <module> 中的文件“/home/user/thg/tortoisehg/util/hglib.py”,第 351 行
    readmergestate = mergemod.mergestate.read
  文件“/usr/lib/python3.8/importlib/util.py”,第 256 行,在 __getattribute__
    返回getattr(自我,attr)
AttributeError:模块“mercurial.merge”没有属性“mergestate”
make: *** [Makefile:25: local] 错误 1

或者安装pyqt5之后的这个:

    from PyQt5.QtCore import *
ImportError: No module named PyQt5.QtCore
make: *** [Makefile:24: local] Error 1

如果需要,我的 python 版本是 3.8.2

mercurial 20.04
  • 2 个回答
  • 1869 Views
Martin Hope
N0rbert
Asked: 2020-04-24 09:15:17 +0800 CST

如何在 Ubuntu MATE 20.04 LTS 上安装 TortoiseHG 并集成到 Caja?

  • 7

在 Ubuntu 16.04 LTS 和 18.04 LTS 等以前的系统上,这是可能的。

但是 20.04 LTS 没有tortoisehg和tortoisehg-caja在存储库中。

该怎么办?

mercurial mate ubuntu-mate caja 20.04
  • 2 个回答
  • 1879 Views
Martin Hope
machnic
Asked: 2019-10-22 01:16:56 +0800 CST

如何在 ubuntu 19.10 上安装 TortoiseHg

  • 8

从 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 个回答
  • 4777 Views
Martin Hope
N0rbert
Asked: 2019-08-14 12:36:54 +0800 CST

是否可以在带有西里尔文文件名的 Caja 中同时使用 TortoiseHG(用于 Mercurial)和 RabbitVCS(用于 Git)?

  • 0

我使用 Caja 文件管理器运行 Ubuntu MATE 16.04.6 LTS。

我按照我的方法为 Caja 文件管理器添加了 TortoiseHG python 扩展。它适用于 Mercurial 存储库。

目前我需要为 Git 存储库提供类似的文件和目录标志。为此,我按照我的方法安装了 RabbitVCS 。

但我发现 RabbitVCS 在显示 Mercurial 存储库中的 Cyrillic 对象的标志时存在问题。对于此类对象,RabbitVCS 显示额外的错误标志

/usr/share/icons/hicolor/scalable/emblems/emblem-rabbitvcs-error.svg

所有 Mercurial 项目如下:

带有 Git 和 Mercurial 存储库的 Caja - 西里尔文名称错误

我不想将所有 25 个 Mercurial 存储库重命名为 ascii 拉丁名称。所以我需要在 RabbitVCS 中禁用 Mercurial 并将 TortoiseHG 用于此类.hg存储库。据我所知,TortoiseHG 允许使用西里尔文文件名。

我怎样才能做到这一点?

git rabbitvcs mercurial mate caja
  • 1 个回答
  • 128 Views
Martin Hope
N0rbert
Asked: 2019-04-11 08:30:24 +0800 CST

如何设置 TortoiseHG 在 Ubuntu 16.04 LTS 上与 Caja 一起工作?

  • 1

众所周知,现代 Ubuntu 版本如 Ubuntu 18.04 LTS 都有相应的tortoisehg-caja包。TortoiseHG 包为 Mercurial 提供了 GUI。

这会在下拉菜单中生成漂亮的项目:

18.04 LTS 中的 TortoiseHG-Caja

但是旧的 Ubuntu 16.04 LTS 没有这样的包。

是否可以在 16.04 LTS 上将 TortoiseHG 集成到 Caja 文件管理器中?

mercurial 16.04 mate caja
  • 1 个回答
  • 261 Views
Martin Hope
Raph Peres
Asked: 2018-07-25 03:34:17 +0800 CST

TortoiseHg 指向旧版本

  • 2

我在我的 Ubuntu16.04 虚拟机上安装了 Mercurial 和 TortoiseHG。

运行hg version显示版本是3.7.3.

运行sudo apt-get install tortoisehg显示 TortoiseHg 已经是最新版本3.7.3-1。

但是,当我运行时,thg我得到了这个:

    #!python
    ** Mercurial version (3.7.3).  TortoiseHg version (2.10)
    ** Command: 
    ** CWD: /home/rp
    ** Encoding: UTF-8
    ** Extensions loaded: 
    ** Python version: 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
    ** System: Linux rp-VM 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64
    ** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9.1


    This version of TortoiseHg requires Mercurial version 2.7.n to 2.8.n, but found 3.7.3

有什么方法可以使thg命令以最新的 TortoiseHg 版本为目标?还是我需要删除一些东西?

编辑:

输出type thg:thg is /usr/local/bin/thg

mercurial 16.04
  • 1 个回答
  • 389 Views
Martin Hope
Pete
Asked: 2010-12-31 17:10:55 +0800 CST

Mercurial 安装在哪里?

  • 5

我曾经sudo apt-get install mercurial安装 Hg .. 它把可执行文件放在哪里?我需要在 Netbeans 中指定位置。

有没有一种通用的方法可以找到 apt-get 的安装位置?(在安装之前也会很好。)

apt installation mercurial
  • 1 个回答
  • 7817 Views
Martin Hope
Queops
Asked: 2010-10-30 12:42:58 +0800 CST

Mercurial 有完整的 GUI 界面吗?

  • 12

我已经从存储库中尝试过 TortoiseHG,但它根本不起作用。

gui version-control mercurial
  • 4 个回答
  • 18046 Views
Martin Hope
Queops
Asked: 2010-10-30 12:01:40 +0800 CST

编译 Mercurial

  • 3

我正在尝试将最新版本的 Mercurial (1.6.4) 安装到我的 Ubuntu 10.10 中,但是当我执行“make install”时出现此错误:

无法导入标准 zlib(不完整的 Python 安装)

值得知道的是,我成功编译安装了python 2.7,但是在安装2.7之前还是出现了这个错误。(认为​​ Ubuntu 10.10 带有 2.6)

有什么问题?

python compiling mercurial
  • 1 个回答
  • 1085 Views

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