在 x86_64 GNU/Linux 上升级 PEAR

发布于 2024-12-22 13:14:38 字数 185 浏览 6 评论 0原文

当我运行 sudo pear Upgrade pear 时,它以以下错误结束:

ERROR: unable to unpack /tmp/tmpsozA4Q/Structures_Graph-1.0.4.tgz

有人以前遇到过类似的情况吗?您对如何解决此问题有任何建议吗?它让我彻夜难眠。

When I run sudo pear upgrade pear, it ends with the following error:

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仅一夜美梦 2024-12-29 13:14:38

通常,此错误是由于非常过时的 pear 版本导致的,该版本甚至无法再与 pear 服务器通信并下载 HTML 页面而不是真正的存档。

要解决此问题,您需要手动更新 pear。

wget http://pear.php.net/go-pear.phar 
php go-pear.phar

并按照“系统安装”说明进行操作。


除此之外,

unable to unpack 

可能意味着您无法提取 gzip 存档或 /tmp/ 磁盘已满或相关的东西。这不太可能,但在这些情况下:

pear install -Z pear 

将下载 .tar 而不是 .tgz


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.

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. It's not all that likely but in those cases:

pear install -Z pear 

will download the .tar and not the .tgz


~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文