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

Installation failes with 404 on debian #818

Open
papirosko opened this issue Jul 6, 2023 · 1 comment
Open

Installation failes with 404 on debian #818

papirosko opened this issue Jul 6, 2023 · 1 comment

Comments

@papirosko
Copy link

papirosko commented Jul 6, 2023

When i run this command in Dockerfile:

RUN curl https://dl.2ndquadrant.com/default/release/get/deb | bash

i get the error:

[ 4/12] RUN curl https://dl.2ndquadrant.com/default/release/get/deb | bash:
#8 0.269   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#8 0.270                                  Dload  Upload   Total   Spent    Left  Speed
100  4445  100  4445    0     0   9523      0 --:--:-- --:--:-- --:--:--  9538
#8 1.372 OK
#8 1.868 Hit:1 http://deb.debian.org/debian bookworm InRelease
#8 1.942 Hit:2 http://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
#8 1.945 Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
#8 2.039 Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
#8 2.168 Reading package lists...
#8 2.763 Reading package lists...
#8 3.353 Building dependency tree...
#8 3.497 Reading state information...
#8 3.756 The following NEW packages will be installed:
#8 3.757   apt-transport-https lsb-release
#8 3.965 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
#8 3.965 Need to get 31.7 kB of archives.
#8 3.965 After this operation, 53.2 kB of additional disk space will be used.
#8 3.965 Get:1 http://deb.debian.org/debian bookworm/main amd64 apt-transport-https all 2.6.1 [25.2 kB]
#8 4.094 Get:2 http://deb.debian.org/debian bookworm/main amd64 lsb-release all 12.0-1 [6,416 B]
#8 4.289 Fetched 31.7 kB in 0s (96.2 kB/s)
#8 4.308 Selecting previously unselected package apt-transport-https.
(Reading database ... 12102 files and directories currently installed.)
#8 4.319 Preparing to unpack .../apt-transport-https_2.6.1_all.deb ...
#8 4.323 Unpacking apt-transport-https (2.6.1) ...
#8 4.349 Selecting previously unselected package lsb-release.
#8 4.350 Preparing to unpack .../lsb-release_12.0-1_all.deb ...
#8 4.353 Unpacking lsb-release (12.0-1) ...
#8 4.378 Setting up apt-transport-https (2.6.1) ...
#8 4.384 Setting up lsb-release (12.0-1) ...
#8 4.660 Hit:1 http://deb.debian.org/debian bookworm InRelease
#8 4.672 Hit:2 http://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
#8 4.739 Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
#8 4.782 Ign:4 https://dl.2ndquadrant.com/default/release/apt bookworm-2ndquadrant InRelease
#8 4.827 Hit:5 http://deb.debian.org/debian-security bookworm-security InRelease
#8 4.882 Err:6 https://dl.2ndquadrant.com/default/release/apt bookworm-2ndquadrant Release
#8 4.882   404  Not Found [IP: 159.69.181.86 443]
#8 4.932 Reading package lists...
#8 5.529 FATAL: Installation failed, either your platform is not easily detectable
#8 5.529 or it is not supported by this installer script. Please open a support ticket
#8 5.529 and attach the log file '/tmp/2ndq_packages_installation.log.wIY8R' to receive more detailed
#8 5.529 information
@papirosko
Copy link
Author

workaround:

RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

RUN apt-get update
RUN apt-get -y install postgresql-13-repmgr

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

1 participant