ubuntu - 如何从 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 的任何想法?
解决方案
使用apt
命令删除hg-git
$ sudo apt remove hg-git
推荐阅读
- laravel - Facade 类属性 $app 是如何以及在哪里设置的?
- python - 如何从先前处于 Catch 状态的函数访问 Step Function 中的错误信息
- jquery - 样式化 MagnificPopup 图像
- ios - Xcode 不会在 Nativescript 应用程序中选择 Info.plist
- c# - EF Core '另一个实例已被跟踪'
- reactjs - 选择芯片输入不显示所选值
- excel - 如何从 VBA 项目中安全地删除所有 Option Base 1 语句
- amazon-web-services - SageMaker ClientError:调用 CreateTrainingJob 操作时发生错误 (ValidationException):无法承担角色
- java - MigLayout - componentResized() 调用次数过多
- android - 添加到购物车不会更新数量,而是再次添加产品