【问题标题】:The repository 'https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release' does not have a Release file存储库“https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release”没有发布文件
【发布时间】:2021-10-18 20:28:51
【问题描述】:

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 平均速度 时间 时间 时间 当前 下载上传总花费剩余速度 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


【解决方案1】:

我同意所有其他答案,但在运行之前

sudo apt install pgadmin4

您必须更新 apt,这是由 执行以下命令 int terminal

sudo apt update 

【讨论】:

【解决方案2】:

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

  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. 执行:sudo apt install pgadmin4
    完毕。我希望它能澄清答案。

【讨论】:

  • 我收到错误:无法联系 pgAdmin 4 服务器:无法启动 pgAdmin4。错误:错误:spawn /usr/pgadmin4/venv/bin/python3 ENOENT
  • 该错误来自运行 pgAdmin 4。我仍在寻找解决方案。我已经在这里发布了问题:stackoverflow.com/questions/69552921/…
【解决方案3】:

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

【讨论】:

    猜你喜欢
    • 2022-11-14
    • 2020-01-09
    • 2021-03-05
    • 1970-01-01
    • 2018-04-18
    • 1970-01-01
    • 2023-02-19
    • 1970-01-01
    • 2019-07-12
    相关资源
    最近更新 更多