php-pear broken in trusty tahr - channel wrapper missing

Bug #1330542 reported by David Favor
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This bug has been reported on many versions of Ubuntu. I've gone through many fix guides. Nothing works. Here's the problem.
_______

1) apt-get purge php-pear

2) rm -rf ~/.pearrc /etc/pear.conf /usr/share/php/ /usr/share/doc/php5-common/PEAR (required to purge all things pear)

3) apt-get install php-pear

4) pear list-channels

nap-net1# pear list-channels
Registered Channels:
====================
Channel Alias Summary
doc.php.net phpdocs PHP Documentation Team
pear.php.net pear PHP Extension and Application
                     Repository
pecl.php.net pecl PHP Extension Community Library
__uri __uri Pseudo-channel for static packages

nap-net1# pear install foo

Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1518
PHP Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1518
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. file_exists() /usr/share/php/PEAR/Downloader/Package.php:1518

Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1528
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1528
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. is_file() /usr/share/php/PEAR/Downloader/Package.php:1528

Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1528
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1528
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. is_file() /usr/share/php/PEAR/Downloader/Package.php:1528
No releases available for package "pear.php.net/foo"
install failed

Revision history for this message
David Favor (davidfavor) wrote :

After investing hours trying all sorts of suggestions that worked for others... None worked for me...

This is what did work...

1) net1# pecl upgrade
     pear.php.net is using a unsupported protocol - This should never happen.

     Error still occurring...

2) pear upgrade
     ... snip ...
     pear/pear dependency package "pear/XML_Util" downloaded version 1.2.3 is not the recommended version 1.2.1, but may be compatible, use --force to install
     pear/XML_Util cannot be installed, conflicts with installed packages

     So pear gives more info... great... Now to cram through a forced update...

3) pear install --force XML_Util

4) pecl upgrade works now.

Very ugly.

Revision history for this message
David Favor (davidfavor) wrote :
Download full text (4.8 KiB)

This problem has lingered for a year.

Same problem presents in all PHP versions from Tahr to Vivid.

net4-dev# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

net4-dev# pear install Archive_Tar

Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1518
PHP Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1518
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:307
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. file_exists() /usr/share/php/PEAR/Downloader/Package.php:1518

Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1528
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1528
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:307
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. is_file() /usr/share/php/PEAR/Downloader/Package.php:1528

Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader/Package.php on line 1528
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1528
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:307
PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP 7. is_file() /usr/share/php/PEAR/Downloader/Package.php:1528
downloading Archive_Tar-1.3.16.tgz ...
Starting to download Archive_Tar-1.3.16.tgz (20,024 bytes)
.......done: 20,024 bytes

Warning: unlink(/usr/share/php/Archive/Tar.php): No such file or directory in PEAR/Installer.php on line 870
PHP Warning: unlink(/usr/share/php/Archive/Tar.ph...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Nish Aravamudan (nacc) wrote :
Download full text (4.9 KiB)

Hello and thank you for your bug report! What versions of php-pear and Ubuntu are we discussing here?

Precise:

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
# apt-cache policy php-pear
php-pear:
  Installed: 5.3.10-1ubuntu3.21
  Candidate: 5.3.10-1ubuntu3.21
  Version table:
 *** 5.3.10-1ubuntu3.21 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.3.10-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
# pear list-channels
Registered Channels:
====================
Channel Alias Summary
doc.php.net phpdocs PHP Documentation Team
pear.php.net pear PHP Extension and Application
                     Repository
pecl.php.net pecl PHP Extension Community Library
__uri __uri Pseudo-channel for static packages
# pear install foo
No releases available for package "pear.php.net/foo"
install failed

Trusty:

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
# apt-cache policy php-pear
php-pear:
  Installed: 5.5.9+dfsg-1ubuntu4.14
  Candidate: 5.5.9+dfsg-1ubuntu4.14
  Version table:
 *** 5.5.9+dfsg-1ubuntu4.14 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.9+dfsg-1ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
# pear list-channels
Registered Channels:
====================
Channel Alias Summary
doc.php.net phpdocs PHP Documentation Team
pear.php.net pear PHP Extension and Application
                     Repository
pecl.php.net pecl PHP Extension Community Library
__uri __uri Pseudo-channel for static packages
# pear install foo
No releases available for package "pear.php.net/foo"
install failed

Vivid:

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.04
DISTRIB_CODENAME=vivid
DISTRIB_DESCRIPTION="Ubuntu 15.04"
# apt-cache policy php-pear
php-pear:
  Installed: 5.6.4+dfsg-4ubuntu6.4
  Candidate: 5.6.4+dfsg-4ubuntu6.4
  Version table:
 *** 5.6.4+dfsg-4ubuntu6.4 0
        500 http://archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.6.4+dfsg-4ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
# pear list-channels
Registered Channels:
====================
Channel Alias Summary
doc.php.net phpdocs PHP Documentation Team
pear.php.net pear PHP Extension and Application
                     Repository
pecl.php.net pecl PHP Extension Community Library
__uri __uri Pseudo-channel for static packages
# pear install foo
No releases available for package "pear.php.net/foo"
install failed

Wily:

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DIST...

Read more...

Changed in php5 (Ubuntu):
status: Confirmed → Incomplete
assignee: nobody → Nish Aravamudan (nacc)
Nish Aravamudan (nacc)
Changed in php5 (Ubuntu):
assignee: Nish Aravamudan (nacc) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for php5 (Ubuntu) because there has been no activity for 60 days.]

Changed in php5 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.