![检查更新时出现问题[Ubuntu 18.04]](https://linux22.com/image/1016881/%E6%A3%80%E6%9F%A5%E6%9B%B4%E6%96%B0%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%5BUbuntu%2018.04%5D%20.png)
我的屏幕右上角不断出现这个红色信号,并出现此错误。如果我运行,sudo apt update
我得到的是:
Hit:1 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
sh: 1: /usr/lib/cnf-update-db: not found
Reading package lists... Done
E: 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
谢谢。
答案1
这应该可以帮助您解决问题。请先检查是否ls -la /usr/bin/python
指向 python 2.x 或 3.x。