After Upgrading to Ubuntu-20.04 I am unable to install pgadmin4. Also, any other version of pgadmin is not working.
It is showing below error:
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
E: Unable to locate package pgadmin4-apache2
In my "pgdg.list" file which can be accessed from below command
sudo nano /etc/apt/sources.list.d/pgdg.list
I have:
deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
Installing pgAdmin4 in Ubuntu pgAdmin4 is not available in the Ubuntu repositories. We need to install it from the pgAdmin4 APT repository. Start by setting up the repository. Add the public key for the repository and create the repository configuration file.
If you’re running an Ubuntu system, or Linux Mint, this guide will work for you. The one requirement for installation of pgAdmin4 on Ubuntu 20.04/18.04 is PostgreSQL server.
It is showing below error: 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 E: Unable to locate package pgadmin4-apache2
The issue arises because the repository for pgadmin has not been added to your local machine. To solve the issue, do the following below; Note: This should work in Ubuntu 16.04 (Xenial), Ubuntu 18.04 (Bionic), Ubuntu 19.10 (Eoan), Ubuntu 20.04 (Focal), Debian 9 (Stretch) and Debian 10 (Buster)
pgadmin4-desktop – Provides desktop application for Ubuntu system, which required Ubuntu Desktop system. To install on a remote server (or no desktop available) use “pgadmin4-web” package only. For local system with Desktop installed, can use both versions. Step 2 – Configure pgAdmin4-Web
You must create the /etc/apt/sources.list.d/pgdg.list
file and add the line:
deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
Then run:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
Finally, run:
sudo apt-get update && sudo apt-get install pgadmin4
For more details: https://www.postgresql.org/download/linux/ubuntu/
As of 21/05/2020 there is no pgAdmin-4 package in Ubuntu 20.04.
Another way to run pgAdmin-4 is by using Docker
docker pull dpage/pgadmin4
docker run -p 5050:80 -e "[email protected]" -e "PGADMIN_DEFAULT_PASSWORD=thirumal" -d dpage/pgadmin4
Then access the pgadmin4 using URL http://localhost:5050 with user name and password.
Docker image URL: https://hub.docker.com/r/dpage/pgadmin4/
Documentation URL: https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
Full set up guide https://github.com/M-Thirumal/installation_guide/blob/master/pgadmin4/install_pgadmin4_using_docker.md
I'm having the same issue... apt.postgresql.org is in the "sources.d", I can see it is "Hit" by "apt update", but still no pgadmin4 installation candidate found.
It looks like focal (20.04) is simply not currently supported (although multiple articles indicate it was at one point). Earlier versions are all there. Alas, trying to install them leads to the requirement of python3-psyco2 < 2.8, but 2.8 is the focal version. Perhaps a build fail caused it to drop from repos, or an upstream version change is causing a problem... it's beyond me at this point...
Anyway, I'm not up to working that hard for it... so it's our good old friend "psql" for me right now :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With