Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to install Immortal based on packagecloud.io #65

Closed
felipe-colussi opened this issue Aug 19, 2021 · 2 comments
Closed

Failing to install Immortal based on packagecloud.io #65

felipe-colussi opened this issue Aug 19, 2021 · 2 comments

Comments

@felipe-colussi
Copy link

felipe-colussi commented Aug 19, 2021

I'm trying to download Immortal through

curl -s https://packagecloud.io/install/repositories/immortal/immortal/script.deb.sh | sudo bash
I'm using a php:7.3-fpm image.

This is my docker file:

RUN apt-get install -y --no-install-recommends git zip unzip nano libxml2-dev libpng-dev libzip-dev libpq-dev cron

RUN curl -s https://packagecloud.io/install/repositories/immortal/immortal/script.deb.sh | bash

RUN apt-get install -y immortal

The packagecloud.io script is failing with the following error :


Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/immortal_immortal.list...curl: (22) The requested URL returned error: 404 
Unable to download repo config from: https://packagecloud.io/install/repositories/immortal/immortal/config_file.list?os=debian&dist=11&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 support@packagecloud.io and report this.
The command '/bin/sh -c curl -s https://packagecloud.io/install/repositories/immortal/immortal/script.deb.sh | bash' returned a non-zero code: 1

I'm using this dockerfile from a long long time. This error started today .

@nbari
Copy link
Member

nbari commented Aug 21, 2021

From the log:

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

What OS you are using?

you can always download it from: https://packagecloud.io/immortal/immortal

@felipe-colussi
Copy link
Author

The OS detection didn't fail.

The script created the following url:

https://packagecloud.io/install/repositories/immortal/immortal/config_file.list?os=debian&dist=11&source=script

This is a debian - 11

I'm using PHP:7.3-fpm and PHP: 7.4-fpm images.

My "solution" was to download the script and add a if to echo the immortal_immortal.list if this is my OS.

echo "deb https://packagecloud.io/immortal/immortal/debian/ buster main deb-src https://packagecloud.io/immortal/immortal/debian/ buster main" > $apt_source_path

@nbari nbari closed this as completed Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants