Looks like this week we are running into some obscure errors, where there is not much information about them on the web.
The new issue on this series is “invalid tgz file” while trying to install a PEAR package. It is not happening with every package which makes it more obscure.
# pear install Net_Ping downloading Net_Ping-2.4.4.tgz ... Starting to download Net_Ping-2.4.4.tgz (9,563 bytes) .....done: 9,563 bytes Could not get contents of package "/tmp/pear/download/Net_Ping-2.4.4.tgz". Invalid tgz file. Download of "pear/Net_Ping" succeeded, but it is not a valid package archive Error: cannot download "pear/Net_Ping" Download failed install failed
Until we find out the final solution for it, there is a workaround. The tgz file gets downloaded by the installer, so running the following command finishes the installation of the package:
pear install --offline /tmp/pear/download/Net_Ping-2.4.4.tgz
If someone did find a final solution to this problem, we will reward the answer with a gift!