安装 ubuntu 18.04 bionic beaver 后更新出现错误

安装 ubuntu 18.04 bionic beaver 后更新出现错误

我已经将我的 ubuntu artful 升级到 bionic beta。但是我在使用命令后收到此错误,sudo apt update && sudo apt upgrade 以下是错误消息:

After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up i2p (0.9.34-1ubuntu3) ...
/var/lib/dpkg/info/i2p.config: 14: /etc/default/i2p: RUN_AS_ROOT: not found
dpkg: error processing package i2p (--configure):
 installed i2p package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 i2p
E: Sub-process /usr/bin/dpkg returned an error code (1)

我一直在尝试sudo apt install -fsudo dpkg --configure -a总是出现同样的错误。

答案1

尝试

sudo dpkg --configure --pending

这将显示问题包,然后你可以使用以下命令删除所有问题包

sudo apt remove sudo apt-get remove <package_name>

然后运行

sudo apt-get update
sudo apt-get upgrade

相关内容