Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package 'pgadmin4' has no installation candidate, for Ubuntu 20.04 [closed]

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
like image 789
Shubham Soni Avatar asked May 02 '20 21:05

Shubham Soni


People also ask

How do I run pgAdmin 4 on Ubuntu?

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.

Can I install pgadmin4 on Ubuntu?

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.

Why is the pgadmin4-apache2 package not available?

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

Why can't I open pgadmin on my local machine?

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)

How to install pgadmin4-desktop on a remote server?

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


3 Answers

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/

like image 150
zFortes Avatar answered Oct 12 '22 11:10

zFortes


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

like image 40
Thirumal Avatar answered Oct 12 '22 13:10

Thirumal


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 :-)

like image 34
Tengam Avatar answered Oct 12 '22 11:10

Tengam