php-pear broken in trusty tahr - channel wrapper missing
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/
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
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
PHP Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/
PHP Stack trace:
PHP 1. {main}() /usr/share/
PHP 2. PEAR_Command_
PHP 3. PEAR_Command_
PHP 4. PEAR_Downloader
PHP 5. PEAR_Downloader
PHP 6. PEAR_Downloader
PHP 7. file_exists() /usr/share/
Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/
PHP Stack trace:
PHP 1. {main}() /usr/share/
PHP 2. PEAR_Command_
PHP 3. PEAR_Command_
PHP 4. PEAR_Downloader
PHP 5. PEAR_Downloader
PHP 6. PEAR_Downloader
PHP 7. is_file() /usr/share/
Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in PEAR/Downloader
PHP Warning: is_file(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/
PHP Stack trace:
PHP 1. {main}() /usr/share/
PHP 2. PEAR_Command_
PHP 3. PEAR_Command_
PHP 4. PEAR_Downloader
PHP 5. PEAR_Downloader
PHP 6. PEAR_Downloader
PHP 7. is_file() /usr/share/
No releases available for package "pear.php.net/foo"
install failed
Changed in php5 (Ubuntu): | |
assignee: | Nish Aravamudan (nacc) → nobody |
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.