Ubuntu软件包更新

当使用sudo apt update来更新软件时,报了这些错误。 Hit:1 http://it.archive.ubuntu.com/ubuntu bionic InReleaseHit:2 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:5 http://archive.canonical.com/ubuntu bionic InRelease Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 8, in <module> from CommandNotFound.db.creator import DbCreatorModuleNotFoundError: No module named 'CommandNotFound'Reading packages list... DoneE: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code

发布于 

服务器环境搭建

连接服务器ssh root@47.106.85.1**如果报错, Please contact your system administrator.Add correct host key in /Users/xgf/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /Users/xgf/.ssh/known_hosts:4 说明 之前用密钥连过,要删除记录

发布于 

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。

本站由 @nnocase 创建,使用 Stellar 作为主题,您可以在 GitHub 找到本站源码。