在过去的周末,我从Ubuntu14.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)发布于 2015-05-02 03:34:07
好的,在检查了几件事情之后,我运行了sudo apt-get clean,然后再次运行更新。这一次,它下载了一个新的texlive-pstricks-doc副本,并安装了它,没有问题。原来那只是一个坏掉的下载。
https://askubuntu.com/questions/616180
复制相似问题