linuxaptpgadmin-4

Can't install pgadmin4 repository does not have file


I was use command

sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

But I was got this

Err:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/n/a pgadmin4 Release                               
  404  Not Found [IP: 87.238.57.227 443]
Hit:3 https://community-packages.deepin.com/printer eagle InRelease                                          
Hit:4 https://home-store-img.uniontech.com/appstore deepin InRelease                                         
Reading package lists... Done
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/n/a pgadmin4 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

So I can't install pgadmin

Use Deepin linux 20.2.3


Solution

  • # apt-get install curl ca-certificates gnupg
    # curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
    #vim /etc/apt/sources.list.d/pgdg.list
     ####### ADD
    #deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
    
    # apt-get update
    # apt-get install pgadmin4  pgadmin4-apache2
    
    

    It should now be successfully installed.