错误 | sudo apt-get update : 404 未找到 [IP: 2604:1380:2000:7501::69 80]

RBK*_*RBK 0 postgresql ubuntu server

我执行时出现错误:

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

错误:

Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease
Ign:6 http://apt.postgresql.org/pub/repos/apt utopic-pgdg InRelease
Hit:7 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 InRelease
Err:8 http://apt.postgresql.org/pub/repos/apt utopic-pgdg Release
  404  Not Found [IP: 2604:1380:2000:7501::69 80]
Reading package lists... Done
E: The repository 'http://apt.postgresql.org/pub/repos/apt utopic-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)

我遇到过许多类似的问题,但没有一个解决方案可以帮助我解决这个问题。我什至更换了source.list并尝试遵循这些解决方案中提到的所有步骤。

作为ubuntu服务器系统的新用户,目前我不确定这是程序安装问题还是系统问题。

服务器:Ubuntu 18.04 LTS

有人可以帮我吗?

Adr*_*ver 6

问题是你有:

Ign:6 http://apt.postgresql.org/pub/repos/apt utopic-pgdg InRelease

Run Code Online (Sandbox Code Playgroud)

该版本没有发布。仅供参考,Postgres(PGDG) 存储库仅涵盖 LTS 版本。您需要删除 Ubuntu Utopic(14.10) 存储库。它可能位于:

/etc/apt/sources.list.d/pgdg.list

Run Code Online (Sandbox Code Playgroud)

更新。添加进一步的步骤来查找存储库。

如果该文件不存在,请尝试:

/etc/apt/grep -r -i utopic *

查找存储库的列出位置。