不知道为什么更新源会出现这样的情况,用官方源一直网络连接失败,用的中科大或者其他国内源,在apt update的时候会出现
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
运行了apt-get update
吗?