postgresql - 从 19.10 升级到 20.04 - Err:2 http://apt.postgresql.org/pub/repos/apt eoan-pgdg
问题描述
我在 Ubuntu 19.10 上并尝试将其升级到 20.04.1 LTS。但是当我运行时出现以下错误sudo apt update
:
Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://apt.postgresql.org/pub/repos/apt eoan-pgdg InRelease
Err:2 http://apt.postgresql.org/pub/repos/apt eoan-pgdg InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
Ign:3 https://download.rethinkdb.com/apt eoan InRelease
Err:4 https://download.rethinkdb.com/apt eoan Release
404 Not Found [IP: 167.172.11.96 443]
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.postgresql.org/pub/repos/apt eoan-pgdg InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
E: The repository 'https://download.rethinkdb.com/apt eoan Release' no longer has 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.
有什么想法可以消除这些错误吗?
我之前没有安装 postresql,不知道为什么它会出现在错误中。
解决方案
似乎有人设置了 PGDG 存储库,但没有安装 PostgreSQL。所以解决方法很简单:删除存储库配置。
如果存储库是按照 PostgreSQL 站点的说明设置的,那么解决方法应该像删除一样简单/etc/apt/sources.list.d/pgdg.list
。
推荐阅读
- laravel - Bootstrap 的 JavaScript 在 vue js +laravel 中需要 jQuery
- python - 通过 paramiko 运行命令/删除文件夹
- python - 如果给定的键和值从字典列表中匹配,则获取所有字典
- python - 在 jupyter notebook 中并排显示图像
- reactjs - 向 AspNet Core 3.0-preview React 项目添加授权(带身份验证)
- sql-server - 仅当行与当前值不同时才更新/插入行
- html - 将本地副本上传到 bluehost 时,我的网页的相对文件路径需要更改
- sql - Mutating table error when trying to Insert into Table with select
- r - R Shiny 数据表组行以提高可读性
- elasticsearch - 弹性搜索:如何在文档中划分一个数字然后排序?