首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从Ubuntu 18.04.2中完全删除hg-git

如何从Ubuntu 18.04.2中完全删除hg-git
EN

Stack Overflow用户
提问于 2019-07-17 01:10:30
回答 2查看 145关注 0票数 0

当使用mbed-cli更新Mbed存储库时,我得到以下错误:

代码语言:javascript
复制
john@john-ThinkPad-Yoga-11e:~/Projects/myRepo$ mbed update
[mbed] Working path "/home/john/Projects/myRepo" (program)
[mbed] Updating program "myRepo" to latest revision in the current branch
[mbed] Updating library "mbed-os" to rev #c966348d3f9c (tag: mbed-os-5.11.1)
*** failed to import extension hggit from /path/to/hg-git: [Errno 2] No such file or directory: '/path/to/hg-git'
*** failed to import extension hggit from /path/to/hg-git: [Errno 2] No such file or directory: '/path/to/hg-git'

我不想使用hg-git,并已尝试完全删除它。Mbed-cli使用Python,所以我尝试了各种Python工具来删除hg-git,但仍然收到错误。我甚至不确定这实际上是mbed-cli的错误,因为它出现在我知道是mbed一部分的内容之后(即以“mbed”开头的行)。我还试图在一个文件中找到错误的来源(使用'grep Ubuntu . -e "hg-git"'),但在Ubuntu上我还不能做到。

关于错误消息的来源和/或我如何摆脱它并完全删除hg-git,有什么想法吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-11-22 02:42:26

在Mercurial配置中,hggit扩展仍处于启用状态。

您可以通过运行以下命令显示设置配置的文件和行:hg config extensions.hggit --template '{source}\n'

它可能会返回类似于/home/user/.hgrc:12的内容。在这种情况下,您必须删除或注释掉文件/home/user/.hgrc中的第12行,以禁用hggit扩展。

票数 0
EN

Stack Overflow用户

发布于 2019-07-17 01:15:03

使用apt命令删除hg-git

代码语言:javascript
复制
$ sudo apt remove hg-git
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57062354

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档