由于 libcupsimage2-dev,libcups2-dev 不会安装

由于 libcupsimage2-dev,libcups2-dev 不会安装

我正在运行 Raspbian,想要安装斯普利克斯,为此我需要 libcupsimage2-dev,因此我使用 apt-get 安装了它,这产生了一个错误,说它依赖于“libcupsimage2-dev”,而不会安装。当我运行“sudo apt --fix-broken install”时,它会产生:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libcupsimage2-dev
The following NEW packages will be installed:
  libcupsimage2-dev
0 upgraded, 1 newly installed, 0 to remove and 212 not upgraded.
1 not fully installed or removed.
Need to get 0 B/18.3 kB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive member header cgnTrol.tar,xz  1566333;93$  ( 
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Prior errors apply to /var/cache/apt/archives/libcupsimage2-dev_2.2.10-6+deb10u1_armhf.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: file '/var/cache/apt/archives/libcupsimage2-dev_2.2.10-6+deb10u1_armhf.deb' is corrupt - bad archive header magic
dpkg: error processing archive /var/cache/apt/archives/libcupsimage2-dev_2.2.10-6+deb10u1_armhf.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libcupsimage2-dev_2.2.10-6+deb10u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

存档已损坏,您应该将其删除并重试:

sudo rm /var/cache/apt/archives/libcupsimage2-dev_2.2.10-6+deb10u1_armhf.deb

相关内容