Something is messed up with the github servers. When running this from an Ubuntu 10.04 server I get the following:

> sudo pear channel-discover pear.drush.org
Discovering channel pear.drush.org over http:// failed with message: channel-add: Cannot open "http://pear.drush.org/channel.xml" (File http://pear.drush.org:80/channel.xml not valid (received: HTTP/1.1 404 Not Found
))
Trying to discover channel pear.drush.org over https:// instead
Discovery of channel "pear.drush.org" failed (channel-add: Cannot open "https://pear.drush.org/channel.xml" (Connection to `pear.drush.org:443' failed: Connection refused))

If I just run a "GET" on the command line, I see that I am returned a generic github page instead of the .xml file.

Comments

JimBroad’s picture

Not sure about the github page thing, but I was seeing a similar error on one of our boxes.

Just needed to run 'pear upgrade', then all was fine.

ñull’s picture

Just needed to run 'pear upgrade', then all was fine.

I tried that but it does not work here.

kyle_mathews’s picture

It's still not working for me. Got the same error even after running pear upgrade

JimBroad’s picture

Status: Active » Closed (duplicate)
marcnz’s picture

Version: » 7.x-5.9
Issue summary: View changes
Status: Closed (duplicate) » Active

This issue is still running today!
It is now more than 2 weeks I try to get drush installed via pear and fails.
Who can fix this? None of the provided tips/tricks work.

tobby’s picture

For what it's worth, Drush is no longer supporting installation via Pear. See https://www.drupal.org/node/2132447 for updated methods of installation.

helmo’s picture

Status: Active » Closed (won't fix)

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.