Ubuntu 14.04:子进程 dpkg-deb --control 返回错误退出状态

Ubuntu 14.04:子进程 dpkg-deb --control 返回错误退出状态

我正在尝试进行“升级”并出现以下错误。

$sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  notepadqq-common
Use 'apt-get autoremove' to remove it.
The following packages will be upgraded:
  fonts-opensymbol
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/110 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{gzbz2xzlzma}
E: Prior errors apply to /var/cache/apt/archives/fonts-opensymbol_2%3a102.6+LibO4.2.8-0ubuntu5.2_all.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: `/var/cache/apt/archives/fonts-opensymbol_2%3a102.6+LibO4.2.8-0ubuntu5.2_all.deb' is not a debian format archive
dpkg: error processing archive /var/cache/apt/archives/fonts-opensymbol_2%3a102.6+LibO4.2.8-0ubuntu5.2_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

如果我遇到这种情况,我会尝试:

sudo apt-get clean清除 apt 缓存。然后运行sudo apt-get update以将软件包列表更新为最新版本。

然后sudo apt-get -f install尝试sudo dpkg --configure -a修复任何未完成的安装,最后sudo apt-get upgrade再试一次。

当然,只有当上一个命令运行无误时,我才会继续

尝试一下,如果在此过程中遇到任何错误,请使用您遇到的命令和错误更新您的问题。

相关内容