【问题标题】:Phantom Mercurial, How to remove?幻影水银,如何去除?
【发布时间】:2015-08-16 21:03:31
【问题描述】:

我正在尝试在 Ubuntu 14.04 上安装 TortoiseHg。它运行良好,但试图打开它抱怨有一个不受支持的 Mercurial 版本(3.4.1)。我通过以下方式删除:

  • sudo apt-get remove mercurial
  • sudo apt-get purge mercurial
  • sudo dpkg -r mercurial
  • sudo dpkg --purge mercurial

结果是成功的,但如果我尝试:

hg --version

我明白了:

Mercurial Distributed SCM (version 3.4.1)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2015 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

还有其他想法吗? TortoiseHG 需要 3.1.x 或 3.0.x。

【问题讨论】:

    标签: ubuntu installation mercurial tortoisehg


    【解决方案1】:

    您可以使用type 命令找出应用程序在路径中的位置,如下所示(使用 bash 时):

    ry4an@four:~$ type -a hg
    hg is /usr/local/bin/hg
    

    它可能是作为 python 包安装的,在这种情况下,命令是:

    pip uninstall mercurial
    

    但是安装一个在你的路径中较早的地方受支持的版本可能会更容易/更安全,以便 Tortoise 找到那个。

    【讨论】:

      猜你喜欢
      • 2021-11-14
      • 2012-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-05
      • 1970-01-01
      相关资源
      最近更新 更多