We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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_file.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_distro_version

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.



85.5k

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



79.0k
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.