![Ubuntu 14.04:子进程 dpkg-deb --control 返回错误退出状态](https://linux22.com/image/1152293/Ubuntu%2014.04%EF%BC%9A%E5%AD%90%E8%BF%9B%E7%A8%8B%20dpkg-deb%20--control%20%E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81.png)
我正在尝试进行“升级”并出现以下错误。
$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
再试一次。
当然,只有当上一个命令运行无误时,我才会继续
尝试一下,如果在此过程中遇到任何错误,请使用您遇到的命令和错误更新您的问题。