Magento – Downloader: Failed to download within preferred state “beta”, latest release is version x.x.x, stability “alpha”, use “channel://…” to install PEAR ERROR: install failed

by c

When installing a Magento extension with Downloader, you may see this message:

Failed to download magento-community/xxxx within preferred state “beta”, latest release is version x.x.x, stability “alpha”, use “channel://connect.magentocommerce.com/community/xxx” to install

PEAR ERROR: install failed

Following instructions, you may try and download using the method suggested and see:

Invalid package identifier provided:

channel://connect.magentocommerce.com/community/xxx

Magento Connect 1.0 and 2.0 don’t play nicely together. Did you know you can install via the commandline? Magento’s downloader is a frontend for a local PEAR installation. You will need shell access to your host, but you can type this in magento root:

./pear install channel://connect.magentocommerce.com/community/xxxx

and somewhere among the noise, you will see:

install ok: channel://connect.magentocommerce.com/community/xxxx

And the extension is installed.