"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
As stated in pgadmin4 github project (here), Ubuntu 24.04 should be supported in June.
They suggest a temporarily workaround:
mantic
instead ofnoble
python3.11
is installed.Then pgAdmin4 should start normally.
I was solve it by following below instructions :