skip to Main Content

"I’m encountering an issue with installing pgAdmin4 on Ubuntu 24.04. When attempting to install the package ‘pgadmin4’, I’m receiving an error stating that there is no installation candidate available. I’ve tried searching for solutions online but haven’t found a clear resolution. Any guidance or advice on how to successfully install pgAdmin4 on Ubuntu 24.04 would be greatly appreciated.

I try below commands:

#
# Setup the repository
#

# Install the public key for the repository (if not done previously):
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg

# Create the repository configuration file:
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

#
# Install pgAdmin
#

# Install for both desktop and web modes:
sudo apt install pgadmin4

# Install for desktop mode only:
sudo apt install pgadmin4-desktop

# Install for web mode only: 
sudo apt install pgadmin4-web 

# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/setup-web.sh

when I run the command sudo apt install pgadmin4. It give below error message.

sudo apt install pgadmin4  

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package pgadmin4 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

E: Package 'pgadmin4' has no installation candidate

How to resolve this problem?

2

Answers


  1. As stated in pgadmin4 github project (here), Ubuntu 24.04 should be supported in June.

    They suggest a temporarily workaround:

    1. Use mantic instead of noble
    2. Make sure python3.11 is installed.
    sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/mantic pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
    sudo apt install pgadmin4
    
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update
    sudo apt install python3.11
    

    Then pgAdmin4 should start normally.

    Login or Signup to reply.
  2. I was solve it by following below instructions :

    1. Visit : https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2024-05-15/apt/
    2. Follow instructions given in Readme.md file
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search