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再次尝试安装。
当然,只有在前一个命令无错误运行时才会继续进行。
请尝试以上步骤,如果在过程中遇到任何错误,请更新您的问题并提供卡住的命令和错误信息。

非常高兴能够帮助。 - John Orion
这对我来说起了作用,尽管我在Raspbian上遇到了错误。 - Fid