Ubuntu 12.04 升级和 thunderbird

Ubuntu 12.04 升级和 thunderbird

应用建议的更新(179)后,过程结束时出现一条错误消息,建议我运行 apt-get install -f。

由于这是一个相当新的 Ubuntu 安装 (x86),我尚未在 Thunderbird 中设置任何内容。使用 -f 进程生成了不同的错误消息 (查看详细信息):

~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  thunderbird
Suggested packages:
  latex-xft-fonts
The following packages will be upgraded:
  thunderbird
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/20.8 MB of archives.
After this operation, 594 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 170457 files and directories currently installed.)
Preparing to replace thunderbird 11.0.1+build1-0ubuntu2 (using .../thunderbird_12.0.1+build1-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement thunderbird ...
dpkg-deb (subprocess): data: internal gzip read error: 
'<fd:4>: invalid code lengths set' dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives  /thunderbird_12.0.1+build1-0ubuntu0.12.04.1_i386.deb (--unpack):
short read on buffer copy for backend dpkg-deb during `./usr/lib/thunderbird/libxul.so'
 Errors were encountered while processing:
 /var/cache/apt/archives/thunderbird_12.0.1+build1-0ubuntu0.12.04.1_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

尝试:

 sudo rm /var/cache/apt/archives/thunderbird_12.0.1+build1-0ubuntu0.12.04.1_i386.deb
 sudo apt-get clean
 sudo apt-get update && sudo apt-get dist-upgrade

注意:在同意之前,只需查看 apt-get dist-upgrade 的输出,在没有启用 -proposed 的系统上应该是安全的

相关内容