apt-key 已弃用 20.10

apt-key 已弃用 20.10

我正在尝试在 20.10 上安装 pgAdmin4

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

当我执行第一步时:

curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

我收到此消息:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

进入第二步:

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'

我收到此消息:

E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/groovy 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.```

最近,我在另外两三个公共存储库中也遇到了这个问题。起初我以为这只是存储库的问题,但我开始认为并非如此。

相关内容