存储库“https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release”没有发布文件

a_s*_*ber 5 linux-mint pgadmin-4

Linux 薄荷 20.2

我想安装 PgAdmin4。

这里是官方教程

https://www.pgadmin.org/download/pgadmin-4-apt/

步骤: sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add % 接收百分比 % Xferd 平均速度 时间 时间 当前 Dload 上传总花费左速度 100 3935 100 3935 0 0 4517 0 --:--:-- --:--:-- --: --:-- 4512

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'
Run Code Online (Sandbox Code Playgroud)

结果:

Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease                                                                                                          
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                                      
Hit:4 http://archive.canonical.com/ubuntu focal InRelease                                                                                                                   
Hit:5 http://ppa.launchpad.net/kelleyk/emacs/ubuntu focal InRelease                                                                                                         
Hit:6 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease                                                                                                         
Hit:7 https://repo.skype.com/deb stable InRelease                                                                                                                           
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                              
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                      
Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                               
Ign:11 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 InRelease         
Ign:12 http://packages.linuxmint.com uma InRelease                  
Ign:13 https://apt.postgresql.org/pub/repos/apt trusty-pgdg InRelease
Err:14 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 Release
  404  Not Found [IP: 147.75.85.69 443]
Err:15 https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release
  404  Not Found [IP: 147.75.85.69 443]
Hit:16 http://packages.linuxmint.com uma Release
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma 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.
E: The repository 'https://apt.postgresql.org/pub/repos/apt trusty-pgdg 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.
Run Code Online (Sandbox Code Playgroud)

错误:

E:存储库“https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 Release”没有发布文件。

小智 6

请尝试将 /etc/apt/sources.list.d/pgadmin4.list 文件行更改为deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main