Thread: BUG #18655: APT repository shell script doesn't work
The following bug has been logged on the website: Bug reference: 18655 Logged by: William Chipman Email address: bill@chipmaninfo.com PostgreSQL version: 16.0 Operating system: Linux Mint Debian Edition (LMDE) Description: The script provided from the postgresql Debian installation page (https://www.postgresql.org/download/linux/debian/) is: deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' The system throws an error about the debian version (LMDE is faye, but the Debian version is bookworm). Also, the system defaults to i386 architecture, which is not supported. Adding arch-amd64 to the predicate fixes this. Working line below: deb [arch=amd64 signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main
Hi, Re: PG Bug reporting form > deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] > https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > > /etc/apt/sources.list.d/pgdg.list' > > The system throws an error about the debian version (LMDE is faye, but the > Debian version is bookworm). Does Mint provide some "this distro release is like Debian $whatever" info in /etc/os-release that we could use? > Also, the system defaults to i386 architecture, which is not supported. Defaults where? Christoph
LMDE defaults to i386, so you need to include a arch=amd64 in the heading to the deb string.
William D. (Bill) Chipman
1307 White Lake Drive
Irving, Texas 75060
(214) 277-3863
On Tue, Nov 5, 2024 at 2:43 PM Christoph Berg <cb@df7cb.de> wrote:
Hi,
Re: PG Bug reporting form
> deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc]
> https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" >
> /etc/apt/sources.list.d/pgdg.list'
>
> The system throws an error about the debian version (LMDE is faye, but the
> Debian version is bookworm).
Does Mint provide some "this distro release is like Debian $whatever"
info in /etc/os-release that we could use?
> Also, the system defaults to i386 architecture, which is not supported.
Defaults where?
Christoph
Re: William Chipman > I found it somewhere, but not anywhere that could be counted on and machine > readable. Since I have no idea how compatible each mint release is to whatever Debian release, I'd be reluctant to claim anywhere that we officially support it. The apt.postgresql.org.sh script is just a helper for setting up the repo, if a particular installation needs special tweaks, you might as well write the repo config directly. Christoph