Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No releases available for package

I'm trying to install some pear packages such as gnupg in a Ubuntu OS in virtualbox, but if i use sudo pecl install gnupg, it throws

No releases available for package "pecl.php.net/gnupg"
install failed

It is not only happening for gnupg, but for all pear packages. But i couldn't identify what exactly the issue is. The same command is working in my another virtual machine. So i'm really confused. Please help.

Note:

PEAR Version: 1.9.4
PHP Version: 5.5.9-1ubuntu4
Zend Engine Version: 2.5.0
Running on: Linux udhay-dev 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64

This is what the pear configuration (using pear config-show) shows,

Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels     auto_discover    1
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       http://foo.bar/
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /home/udhay-dev/pear/bin
PEAR documentation directory   doc_dir          /home/udhay-dev/pear/docs
PHP extension directory        ext_dir          /usr/lib/php5/20121212+lfs
PEAR directory                 php_dir          /home/udhay-dev/pear/share/pear
PEAR Installer cache directory cache_dir        /tmp/pear/cache
PEAR configuration file        cfg_dir          /home/udhay-dev/pear/cfg
directory
PEAR data directory            data_dir         /home/udhay-dev/pear/data
PEAR Installer download        download_dir     /tmp/pear/install
directory
PHP CLI/CGI binary             php_bin          /usr/bin/php
php.ini location               php_ini          <not set>
--program-prefix passed to     php_prefix       <not set>
PHP's ./configure
--program-suffix passed to     php_suffix       <not set>
PHP's ./configure
PEAR Installer temp directory  temp_dir         /tmp/pear/install
PEAR test directory            test_dir         /home/udhay-dev/pear/tests
PEAR www files directory       www_dir          /home/udhay-dev/pear/www
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            2
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /etc/pear/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /home/udhay-dev/.pearrc
System Configuration File      Filename         /etc/pear/pear.conf

When i use pear clear-cache, it shows,

Directory /tmp/pear/cache not found.

For the commands pear update-channels and pear upgrade, i got,

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/http.so' - /usr/lib/php5/20121212/http.so: undefined symbol: php_persistent_handle_abandon in Unknown on line 0
Updating channel "doc.php.net"
Channel "doc.php.net" is not responding over http://, failed with message: Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known
Trying channel "doc.php.net" over https:// instead
Cannot retrieve channel.xml for channel "doc.php.net" (Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known)
Updating channel "pear.php.net"
Channel "pear.php.net" is not responding over http://, failed with message: Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known
Trying channel "pear.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pear.php.net" (Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known)
Updating channel "pecl.php.net"
Channel "pecl.php.net" is not responding over http://, failed with message: Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known
Trying channel "pecl.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `foo.bar:8080' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known)
like image 297
Stranger Avatar asked May 09 '14 11:05

Stranger


2 Answers

Have you tried entering this before?

pear clear-cache
pear update-channels
pear upgrade
like image 76
mAsT3RpEE Avatar answered Oct 04 '22 18:10

mAsT3RpEE


I had this problem with pecl and oci8. Resolved by setting the proxy to get through our firewall:

sudo pear config-set http_proxy http://username:[email protected]:port

Perhaps this is your problem?

like image 41
heli Avatar answered Oct 04 '22 18:10

heli