最近我在运行时注意到一些问题,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 密钥?
我遇到了几个包含命令的安装说明deb。但似乎此命令在我的安装中不可用。
我在哪里可以得到这个命令?有解决办法吗?
我刚刚从 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) 在新的 ubuntu 20.10 虚拟机上为本地存储库设置密钥时,我收到一条消息,提示 apt-key add 已被弃用,我应该阅读apt-key(8) 手册页。在apt-key(8)手册页单词串成的集合,但如果它包含的信息,我不能挖角出来。谁能告诉我,我应该在终端上输入什么,而不是:
apt-key add name-of-file
Run Code Online (Sandbox Code Playgroud)
该命令在向我鸣喇叭后显然仍然有效,所以我能够继续,但想知道我将来需要做什么。