相关疑难解决方法(0)

如何修复 GPG 错误“NO_PUBKEY”?

我使用 Software Sources 程序添加了一些额外的存储库。但是当我重新加载包数据库时,出现如下错误:

W:GPG 错误:http : //ppa.launchpad.net trusty InRelease:以下签名无法验证,因为公钥不可用:NO_PUBKEY 8BAF9A6F

apt-key根据官方的 Ubuntu 文档,我知道我可以在终端中修复它。但我希望以图形方式进行。有没有办法在不使用终端的情况下做到这一点?

apt gnupg

464
推荐指数
10
解决办法
79万
查看次数

更新系统时 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万
查看次数

密钥存储在旧版 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万
查看次数

Ubuntu 22.04 更新后,密钥存储在旧版 trust.gpg 密钥环中

在 Ubuntu 22.04 更新后,我在 Digital Ocean LAMP stack Droplet 上收到 3 条警告。

\n
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.\nW: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.\nW: http://pkg.cloudflare.com/dists/trusty/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.\n
Run Code Online (Sandbox Code Playgroud)\n

如何将钥匙移动到正确的位置并删除旧钥匙?

\n

编辑

\n
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), …
Run Code Online (Sandbox Code Playgroud)

apt keyrings 22.04

108
推荐指数
1
解决办法
18万
查看次数

如何将 GPG 密钥添加到 apt 源密钥环?

Ubuntu Doc页面是这样说的:

建议您添加 Opera GPG 密钥。

wget -qO - http://deb.opera.com/archive.key | sudo apt-key add -

我在哪里添加?

我想接受建议,但我不知道要将 gpg 密钥添加到软件中心的哪个部分。

apt gnupg

102
推荐指数
5
解决办法
46万
查看次数

如何删除我添加的 apt-key?

我添加了一个这样的键:

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
Run Code Online (Sandbox Code Playgroud)

现在我想删除这个键。我怎样才能做到这一点?我不知道它在哪里添加以及它看起来如何。

当我这样做时,sudo apt-key list它会在控制台上打印出一些东西。不确定哪一个与我上面所做的有关?

david@machine:~$ sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <master@ubuntu.com>
sub   2048g/79164387 2004-09-12

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <image@ubuntu.com>

pub   4096R/C0B21F32 2012-05-11
uid                  Ubuntu Archive Automatic Signing Key (2012) <master@ubuntu.com>

pub   4096R/EFE21092 2012-05-11
uid                  Ubuntu CD Image Automatic Signing Key (2012) <image@ubuntu.com>

pub …
Run Code Online (Sandbox Code Playgroud)

apt repository

46
推荐指数
3
解决办法
10万
查看次数

Trusted.gpg.d 中 APT 的附加密钥环

我正在创建一个包,它将自动将一些存储库安装到 LAN 中的所有主机。可以从中央存储库访问该包。

我发现 repo 列表可以放在“/etc/apt/sources.list.d/*.list”中。现在我需要导入他们的密钥,例如,这个。但是,当我将其放入“/etc/apt/trusted.gpg.d/Opera.gpg”时,apt-get update我拥有的所有存储库(包括 Opera)都会出现大量NO_PUBKEY错误!

怎么了?:)

apt repository

18
推荐指数
2
解决办法
2万
查看次数

无法在 Ubuntu 22.04 中安装 Mongodb

我无法在 Ubuntu 22.04 上安装 MongoDB。我按照官方文档进行安装

这是我按照安装说明进行操作后得到的输出:

这是我按照官方文档后得到的输出

https://repo.mongodb.org/apt/ubuntu/focal/mongodb-org/5.0/Release.gpg:  
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)

apt gnupg mongodb 22.04

16
推荐指数
1
解决办法
3万
查看次数

在终端中更新 Zoom

像世界各地的许多人一样,我的生活已经完全通过 Zoom 等视频通话平台转移到网上。

当我运行时,我的大部分软件都会通过终端自动更新

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

但是,Zoom 似乎没有以这种方式更新,它会定期要求手动安装更新。

有没有办法通过终端自动更新 Zoom,例如通过添加正确的存储库?甚至他们帮助中心的“终端”说明也要求为每次更新手动下载。

updates command-line repository 16.04 zoom-meeting

14
推荐指数
4
解决办法
1万
查看次数

deb 命令中的signed-by 选项是什么?

我尝试gcloud CLI在我的 Linux 中安装,并按照此处的文档进行操作。

从安装第 1 部分开始:

添加 gcloud CLI 分发 URI 作为包源。如果您的发行版支持签名选项,请运行以下命令:

 echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
Run Code Online (Sandbox Code Playgroud)

如果您的发行版不支持签名选项,请运行以下命令:

echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
Run Code Online (Sandbox Code Playgroud)

我不明白该signed-by选项在文档中的含义,并且在 中找不到任何相关信息Ubuntu Documentation

你能给我一些建议/提示吗?谢谢。

注意:我在 Ubuntu v20 中使用 WSL2

package-management apt software-sources

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

为什么 Chrome 开发者频道不再通过 apt-get Upgrade 升级 Chrome?

我使用 Chrome 开发频道有一段时间了,习惯于通过以下方式获取更新:

apt-get update && apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

最近我发现我的开发频道保持不变,我必须google-chrome-unstable_current_amd64.deb从谷歌重新下载,然后通过软件中心应用升级。

如何始终获得 Chrome 开发者频道的升级?

upgrade apt google-chrome

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

如何升级docker服务器版本?

我正在根据这个学习docker-compose 。

我跑后docker-compose up,它说

/tmp/_MEIepUvmP/docker/api/client.py:163: UserWarning: The minimum API version supported is 1.21, but you are using version 1.18. It is recommended you either upgrade Docker Engine or use an older version of Docker SDK for Python.
Traceback (most recent call last):
  File "bin/docker-compose", line 6, in <module>
  File "compose/cli/main.py", line 71, in main
  File "compose/cli/main.py", line 124, in perform_command
  File "compose/cli/main.py", line 1001, in up
  File "compose/cli/main.py", line 997, in up
  File "compose/project.py", line 451, …
Run Code Online (Sandbox Code Playgroud)

14.04 docker

5
推荐指数
1
解决办法
9357
查看次数

无法在 Ubuntu 22.04 WSL2 上安装 CUDA

我遵循此处提供的命令链: https: //developer.nvidia.com/cuda-downloads? target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=deb_local 在 wsl2 上安装 cuda (v11.6)。然而,最后三行失败了。这是终端中的内容:

(base) peter72@Peter72:~$ sudo apt-key add /var/cuda-repo-wsl-ubuntu-11-6-local/7fa2af80.pub
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

(base) peter72@Peter72:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-5-local  InRelease
Ign:1 file:/var/cuda-repo-wsl-ubuntu-11-5-local  InRelease
Get:2 file:/var/cuda-repo-wsl-ubuntu-11-6-local  InRelease
Ign:2 file:/var/cuda-repo-wsl-ubuntu-11-6-local  InRelease
Get:3 file:/var/cuda-repo-wsl-ubuntu-11-5-local  Release
Err:3 file:/var/cuda-repo-wsl-ubuntu-11-5-local  Release
  File not found - /var/cuda-repo-wsl-ubuntu-11-5-local/Release (2: No such file or directory)
Get:4 file:/var/cuda-repo-wsl-ubuntu-11-6-local  Release [564 B]
Get:4 file:/var/cuda-repo-wsl-ubuntu-11-6-local  Release [564 B]
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:7 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 …
Run Code Online (Sandbox Code Playgroud)

nvidia cuda windows-subsystem-for-linux

5
推荐指数
1
解决办法
3万
查看次数