首页 > 解决方案 > 如何从 Ubuntu 18.04.2 中完全删除 hg-git

问题描述

使用 mbed-cli 更新 Mbed 存储库时,出现以下错误:

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 -rnw . -e "hg-git"'),但作为 Ubuntu 上的一个新手,我无法做到这一点。

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

标签: ubuntumbedhg-git

解决方案


使用apt命令删除hg-git

$ sudo apt remove hg-git

推荐阅读