APT had planned for dpkg to do more than it reported back (3 vs 7). Affected packages: nginx-core:amd64

可以使用如下命令解决

dpkg –configure -a
apt-get install -f