public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kashif Zeeshan <[email protected]>
To: Jyoti Saxena <[email protected]>
Cc: [email protected]
Subject: Re: Issue Installing PostgreSQL 17 on Ubuntu 22.04 (Jammy)
Date: Mon, 26 Aug 2024 12:05:38 +0500
Message-ID: <CAAPsdhd7GFfQjriAWg1X=4YvVaY3b5K61qdNmoZ-MwKPbF1J2w@mail.gmail.com> (raw)
In-Reply-To: <CAAyara0Lm_Kurp9f4WkOsX=geHzS8ULHRkVVxWVBJed_NXZxpg@mail.gmail.com>
References: <CAAyara0Lm_Kurp9f4WkOsX=geHzS8ULHRkVVxWVBJed_NXZxpg@mail.gmail.com>

Hi Jyoti

Make sure you have done the following repo setup

sudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc
--fail https://www.postgresql.org/media/keys/ACCC4CF8.asc

# Create the repository configuration file:
sudo sh -c 'echo "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'


Also once the above is done then execute following
apt-get update

then execute the following command and it shd install the latest version of
PG in this case PG17.
sudo apt -y install postgresql

Regards
Kashif Zeeshan

On Mon, Aug 26, 2024 at 11:52 AM Jyoti Saxena <[email protected]>
wrote:

> Hi,
>
> I’m encountering an issue while trying to install PostgreSQL 17 on my
> Ubuntu 22.04 (Jammy) system. I followed the installation instructions from
> the official PostgreSQL website
> https://www.postgresql.org/download/linux/ubuntu/.
>
> When I run the command sudo apt -y install postgresql-17, I receive the
> following message:
>
> Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage postgresql-17 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, or is only available from another source.
>
> Here’s what I’ve already tried:
>
>  1. Updated the package list with sudo apt update.
>
>  2. Verified that the PostgreSQL Apt Repository is added correctly with
>
> deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main.
>
> 3. Checked available packages using apt-cache search postgresql-17.
>
>  4. Despite these steps, I’m unable to install PostgreSQL 17. Could you
> please advise on how to resolve this issue or if there's something I might
> be missing?
>
> Thank you in advance for your help!
>
> Best regards,
>
> Jyoti
>


view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Issue Installing PostgreSQL 17 on Ubuntu 22.04 (Jammy)
  In-Reply-To: <CAAPsdhd7GFfQjriAWg1X=4YvVaY3b5K61qdNmoZ-MwKPbF1J2w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox