Thank you for the instructions. I followed the steps provided to set up the repository and install PostgreSQL. However, after completing the setup, the system installed PostgreSQL 16.4 instead of the expected PostgreSQL 17. The version installed is psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg22.04+1).
Here are the steps I followed:
Installed curl and ca-certificates.
Set up the repository key and configuration as instructed.
Ran apt-get update.
Executed sudo apt -y install postgresql.
The repository seems to have installed the latest available version as PostgreSQL 16.4. Could you please advise if there is a different repository I should use for PostgreSQL 17, or if additional steps are needed to specifically target version 17?
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
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?