Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can't install on Elementary OS (Loki)

I can't install phalcon on this version OS (Elementary OS/Loki) and I don't know how to forge OS detection as Ubuntu/Xenial in this command. Below is the output of phalcon's packagecloud script output on my machine.

$ curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash Detected operating system as elementary/loki. Checking for curl... Detected curl... Running apt-get update... done. Installing apt-transport-https... done. Installing /etc/apt/sources.list.d/phalcon_stable.list...curl: (22) The requested URL returned error: 404 Not Found

Unable to download repo config from: ttps://packagecloud.io/install/repositories/phalcon/stable/config%5file.list?os=elementary&dist=loki&source=script

This usually happens if your operating system is not supported by packagecloud.io, or this script's OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script. You can find a list of supported OSes and distributions on our website: https://packagecloud.io/docs#os%5distro%5version

For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh

If you are running a supported OS, please email [email protected] and report this.



64.2k

it does seems a bit like network problem ? can you check if your connection to packagecould is ok ?



46.5k
Accepted
answer
edited Dec '16

Unable to download repo config from: ttps://packagecloud.io/install/repositories/phalcon/stable/config%5file.list?os=elementary&dist=loki&source=script

If that is copy/paste from terminal, no supprise why it cannot find it :) (missing leading h in http protocol - url)

Even though it should not be like that, since you provided full URL with curl? Try with wget.

I have done with that, I think it's one of automated commands in packagecloud script. I'm afraid that I missing some of automated commands from packagecloud if I do that. I have solved by "curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo os=ubuntu dist=xenial bash". Btw, thanks

Unable to download repo config from: ttps://packagecloud.io/install/repositories/phalcon/stable/config%5file.list?os=elementary&dist=loki&source=script

If that is copy/paste from terminal, no supprise why it cannot find it :) (missing leading h in http protocol - url)

Even though it should not be like that, since you provided full URL with curl? Try with wget.