texlive-pstricks-doc 无法安装在 Ubuntu 15.04 上

texlive-pstricks-doc 无法安装在 Ubuntu 15.04 上

上周末我从 Ubuntu 14.10 升级到了 15.04,除了 之外,其他一切都安装得很完美texlive-pstricks-doc。升级完成时出现了错误。

从那时起,我尝试手动更新该软件包,这是我从终端得到的输出。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  texlive-pstricks-doc
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/85.6 MB of archives.
After this operation, 9,585 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 275255 files and directories currently installed.)
Preparing to unpack .../texlive-pstricks-doc_2014.20141024-1_all.deb ...
Unpacking texlive-pstricks-doc (2014.20141024-1) over (2014.20140717-1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/texlive-pstricks-doc_2014.20141024-1_all.deb (--unpack):
 cannot copy extracted data for './usr/share/doc/texlive-doc/generic/pstricks-add/pstricks-add-doc.dat.gz' to '/usr/share/doc/texlive-doc/generic/pstricks-add/pstricks-add-doc.dat.gz.dpkg-new': unexpected end of file or stream
Processing triggers for tex-common (5.03) ...
Running mktexlsr. This may take some time... done.
Errors were encountered while processing:
 /var/cache/apt/archives/texlive-pstricks-doc_2014.20141024-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

好吧,检查了几件事后,我运行了sudo apt-get clean,然后再次运行更新。这一次,它下载了新的副本texlive-pstricks-doc,并顺利安装了。结果发现,这只是下载中断了。

相关内容