libdjvulibre21 无法安装/升级至 Ubuntu 11.10 版本

libdjvulibre21 无法安装/升级至 Ubuntu 11.10 版本

在升级到 Ubuntu 11.10 版本时,我注意到 (aptitude) 软件包libdjvulibre21安装失败。安装后,系统提示我一个软件包安装失败,并要求我执行软件包管理器或运行apt-get以纠正此问题。运行apt-get仍然无法解决问题。相反,它生成了以下日志文​​件。

vasilios@vasilios-OptiPlex-210L:~$ sudo apt-get -f install
[sudo] password for vasilios: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libpanel-applet-4-0 libswscale0 libavutil50 libgcj-bc libcamd2.2.0
  linux-headers-2.6.38-8 libftgl2 kalgebra-common libpostproc51 libpari2-gmp
  libavformat52 libgcj11 kalgebra linux-headers-2.6.38-8-generic
  gcj-4.5-jre-lib libsigsegv0 libavcodec52 gir1.2-panelapplet-4.0 gcj-4.5-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libdjvulibre21
The following packages will be upgraded:
  libdjvulibre21
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/706 kB of archives.
After this operation, 20.5 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 298010 files and directories currently installed.)
Preparing to replace libdjvulibre21 3.5.23-3ubuntu2 (using .../libdjvulibre21_3.5.24-8_i386.deb) ...
Unpacking replacement libdjvulibre21 ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libdjvulibre21_3.5.24-8_i386.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because the error message indicates an issue on the local system
         Errors were encountered while processing:
 /var/cache/apt/archives/libdjvulibre21_3.5.24-8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
vasilios@vasilios-OptiPlex-210L:~$ 

无论我执行多少次,apt-get我都会收到相同的错误消息。根据此日志文件判断。似乎libdjvulibre21_3.5.24-8_i386.deb安装过程中下载的包已损坏。不确定如何使用强制重新下载apt-get

另外,这个问题与我尝试在 Ubuntu 11.04 版下安装 OpenOffice 无关?在这种情况下,即使安装成功,LibreOffice 图标仍然显示在侧栏上,并且我的系统上找不到 OpenOffice 包。

答案1

删除该文件/var/cache/apt/archives/libdjvulibre21_3.5.24-8_i386.deb并再次尝试安装该包。

相关内容