相关疑难解决方法(0)

更新系统时 apt-key 弃用警告:“密钥存储在旧版 trust.gpg 密钥环中”

最近我在运行时注意到一些问题,apt系统会警告我密钥环已弃用:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://packages.microsoft.com/repos/edge/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://download.sublimetext.com/apt/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Run Code Online (Sandbox Code Playgroud)

这并不会阻止我执行更新,但我宁愿在更新系统时看不到这一点。未来我们应该如何存储可信的 GPG 密钥?

apt keyrings 21.10

177
推荐指数
4
解决办法
29万
查看次数

为什么我会收到“找不到命令‘deb’”?

我遇到了几个包含命令的安装说明deb。但似乎此命令在我的安装中不可用。

我在哪里可以得到这个命令?有解决办法吗?

repository deb

149
推荐指数
5
解决办法
39万
查看次数

密钥存储在旧版 trusted.gpg 密钥环 (/etc/apt/trusted.gpg) 中

我刚刚从 Ubuntu 21.10 升级到 22.04。

sudo apt update以以下警告结束...

W: https://linux.teamviewer.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://apt.keepsolid.com/ubuntu/dists/groovy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://linux.dropbox.com/ubuntu/dists/disco/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://download.virtualbox.org/virtualbox/debian/dists/hirsute/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for …
Run Code Online (Sandbox Code Playgroud)

keyrings gnupg 22.04

114
推荐指数
5
解决办法
11万
查看次数

哪些命令(确切地说)应该替换已弃用的 apt-key?

在新的 ubuntu 20.10 虚拟机上为本地存储库设置密钥时,我收到一条消息,提示 apt-key add 已被弃用,我应该阅读apt-key(8) 手册页。在apt-key(8)手册页单词串成的集合,但如果它包含的信息,我不能挖角出来。谁能告诉我,我应该在终端上输入什么,而不是:

apt-key add name-of-file
Run Code Online (Sandbox Code Playgroud)

该命令在向我鸣喇叭后显然仍然有效,所以我能够继续,但想知道我将来需要做什么。

apt

26
推荐指数
6
解决办法
1万
查看次数

标签 统计

apt ×2

keyrings ×2

21.10 ×1

22.04 ×1

deb ×1

gnupg ×1

repository ×1