[英]Upgrading PEAR on x86_64 GNU/Linux
When I run sudo pear upgrade pear
, it ends with the following error: 当我运行sudo pear upgrade pear
,它以下列错误结束:
ERROR: unable to unpack /tmp/tmpsozA4Q/Structures_Graph-1.0.4.tgz
Has anyone run into something like this before and do you have any suggestions on how to resolve this issue? 有没有人遇到过这样的事情,你对如何解决这个问题有任何建议吗? It's been keeping me up all night. 它让我彻夜难眠。
Usually this error arises due to a very outdated pear version that can't even talk to the pear server anymore and downloads a HTML page instead of the real archive. 通常这个错误是由于一个非常过时的梨版本,甚至不能再与梨服务器通信并下载HTML页面而不是真正的存档。
To fix this you need to update pear by hand. 要解决此问题,您需要手动更新梨。
wget http://pear.php.net/go-pear.phar
php go-pear.phar
And follow the "system install" instructions. 并按照“系统安装”说明进行操作。
Apart from that 除此之外
unable to unpack
could mean that you don't have the ability to extract gzip archives or that the /tmp/
disk is full or something related. 可能意味着您无法提取gzip档案或/tmp/
disk已满或与之相关。 It's not all that likely but in those cases: 这不是那么可能,但在那些情况下:
pear install -Z pear
will download the .tar and not the .tgz 将下载.tar而不是.tgz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.