从终端安装 Krita 时断电。现在由于 dpkg 错误无法安装任何内容

从终端安装 Krita 时断电。现在由于 dpkg 错误无法安装任何内容
    eric@Eric-PC:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Hit:5 http://deb.playonlinux.com precise InRelease 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
eric@Eric-PC:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,340 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: dependency problems prevent configuration of ntrack-module-libnl-0:
 ntrack-module-libnl-0 depends on libntrack0 (>= 005); however:
  Package libntrack0 is not installed.

dpkg: error processing package ntrack-module-libnl-0 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package libntrack0 (--configure):
 package libntrack0 is not ready for configuration
 cannot configure (current status 'half-installed')
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 ntrack-module-libnl-0
 libntrack0
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我尝试删除ntrack-module-libnl-0libntrack0重新安装时,我尝试自己修复问题。但那不起作用。我很后悔没有咨询这里就尝试修复,所以我不想在不知道如何修复的情况下做其他任何事情。

以下内容摘自sudo apt install -f

eric@Eric-PC:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,340 B of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of ntrack-module-libnl-0:
 ntrack-module-libnl-0 depends on libntrack0 (>= 005); however:
  Package libntrack0 is not installed.

dpkg: error processing package ntrack-module-libnl-0 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package libntrack0 (--configure):
 package libntrack0 is not ready for configuration
 cannot configure (current status 'half-installed')
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 ntrack-module-libnl-0
 libntrack0
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

从半安装软件包帖子中得到答案只需使用以下命令重新安装软件包:

sudo apt install --reinstall <package name>

谢谢大家的帮助。

相关内容