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

问题描述 投票:0回答:6

Linux Mint 20.2

我想安装PgAdmin4。

这里是官方教程

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

步骤: 须藤卷曲 https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key 添加 % 总计 % 已接收 % 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'

结果:

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.

错误:

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

linux-mint pgadmin-4
6个回答
2
投票

请尝试将 /etc/apt/sources.list.d/pgadmin4.list 文件行更改为

deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main


1
投票

糟糕的辅导男孩
Widuranga Dilruksha 已经解决了 op 问题。但我只是想扩展它。 必须在终端上执行以下步骤

  1. 执行:
    sudo nano /etc/apt/sources.list.d/pgadmin4.list
  2. 删除您在其中看到的所有内容并粘贴以下文本:
    deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main
  3. Ctrl
    +
    x
    ,然后按
    Y
    ,最后按
    enter
  4. 保存更改
  5. 执行:
    sudo apt install pgadmin4

    完毕。我希望它能澄清答案。

1
投票

在我的例子中,repo 文件是

/etc/apt/sources.list.d/pgdg.list
(Elementary OS 6)。

其他答案不涵盖

sudo apt update
引发的情况:

W: GPG error: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8881B2A8210976F2

解决此错误的方法是获取 PUBKEY

8881B2A8210976F2
并执行:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8881B2A8210976F2

之后我能够

sudo apt update
然后安装postgres。


1
投票

0
投票

我同意所有其他答案,但在跑步之前

sudo apt install pgadmin4

你必须更新apt,这是由 在终端执行以下命令

sudo apt update 

0
投票

任何人在 2023 年或以后看到此内容,如果按照上面的答案不起作用,请尝试将

bionic
替换为您的发行版所基于的 ubuntu 版本的代号。

我正在运行 linux mint 21.2,显然代号为

vanessa
,基于 ubuntu 22.04
jammy
,命名后它对我有用

© www.soinside.com 2019 - 2024. All rights reserved.