在哪里可以找到失败apt-get update
命令返回的错误代码?您能否向我指出调用返回的错误消息的代码或规范apt-get update failure
?谢谢。
如果您能回答第一个问题,请继续忽略此问题的其余部分。如果您可以添加其他信息,即可获得奖励积分。
解决这些问题的建议解决方案是什么?
目前,我有三个我经常遇到的错误代码,我想知道是否还有更多我应该注意的。
以下是我所知道的错误的解决方法:
解决方案:通过运行以下命令将新的 gpg 公钥添加到我的可信链中:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <insert pub_key_here>
解决办法:重新添加密钥
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <insert key here>
解决方案: ?
解决方案:站点不可用。要么等到站点返回,要么从sources.list 中删除存储库。
解决方案: ?
还有多少其他错误代码会apt-get update
阻止用户更新其软件?是否有文档可以识别类似的问题?
我了解当我将第三方的密钥添加到我的可信链时隐式信任第三方时所涉及的风险。我正在寻找由失败生成的已知错误apt-get update
以及允许我继续更新我的软件包的解决方案。
大家好,我正在安装 Jenkins 服务器,但我面临以下问题。
W:GPG 错误:http ://pkg.jenkins-ci.org binary/ 发布:以下签名无法验证,因为公钥不可用:NO_PUBKEY 9B7D32F2D50582E6
请帮忙
我运行这个命令 gpg --import KEYS 但它返回
gpg:无法打开“KEYS”:没有那个文件或目录 gpg:处理的总数:0
我正在使用代理打开互联网。
从昨天下午开始,我从官方存储库中收到了一些 GPG 密钥过期错误(我检查了我的 sources.list,唯一的来源是官方的)。
我从以下网址收到错误消息:http : //apt.insynchq.com/ubuntu/dists/xenial/InRelease
和 KEYEXPIRED 错误:
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
KEYEXPIRED 1473479811
Run Code Online (Sandbox Code Playgroud)
我不知道如何正式报告此错误。你能帮我举报吗?
我安装了 pgAdmin 但当我打开它时出现此错误:
Failed to launch pgAdmin4. Error:
Error: spawn /usr/pgadmin4/venv/bin/python3 ENOENT
Run Code Online (Sandbox Code Playgroud)
当我点击这个命令时:
sudo python3 /usr/share/pgadmin4/web/pgAdmin4.py
Run Code Online (Sandbox Code Playgroud)
我明白了
python3: can't open file '/usr/share/pgadmin4/web/pgAdmin4.py': [Errno 2] No such file or directory
Run Code Online (Sandbox Code Playgroud)
然后我将丢失的文件路径创建为,
sudo mkdir -p /var/cache/pgadmin/sessions
Run Code Online (Sandbox Code Playgroud)
并再次运行此命令
sudo python3 /usr/share/pgadmin4/web/pgAdmin4.py
Run Code Online (Sandbox Code Playgroud)
但我得到同样的错误
我正在尝试在 Docker 中使用 Ubuntu 20.04 或 Ubuntu 22.04。我的Dockerfile
是:
from ubuntu:22.04
run DEBIAN_FRONTEND=noninteractive apt update
Run Code Online (Sandbox Code Playgroud)
我用 构建这个docker build .
。结果是:
Sending build context to Docker daemon 2.048kB
Step 1/2 : from ubuntu:22.04
---> 2dc39ba059dc
Step 2/2 : run DEBIAN_FRONTEND=noninteractive apt update
---> Running in b15002ae9dd5
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security
InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:4 …
Run Code Online (Sandbox Code Playgroud) 尝试更新 cuda 时出现此错误
Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
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.
Run Code Online (Sandbox Code Playgroud) 我在尝试更新 ubuntu 时遇到错误。我尝试使用以下方法手动将错误中提到的密钥添加到我的系统中:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 871920D1991BC93C
Run Code Online (Sandbox Code Playgroud)
但它没有做任何改变,我仍然得到同样的错误。我也有点担心我的存储库。我觉得我在这里遗漏了一些东西。
sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:3 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Hit:4 https://repositories.intel.com/graphics/ubuntu focal InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Err:1 http://archive.canonical.com/ubuntu jammy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:4 https://repositories.intel.com/graphics/ubuntu focal InRelease
The following signatures couldn't be verified because …
Run Code Online (Sandbox Code Playgroud) 我对 Linux/命令行的东西非常陌生,所以请原谅我的无知。
每次我尝试使用安装任何东西时sudo apt-get install ...
都会出现依赖错误。我正在尝试在我的机器上安装 OpenSSH Server 和 GitLab,每当我输入命令时,我似乎都会收到这样的依赖错误:
sudo apt-get install openssh-server
reading package lists... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openssh-server : Depends: libwrap0 (>= 7.6-4~) …
Run Code Online (Sandbox Code Playgroud) 今天,在我运行sudo apt-get update
命令后,我得到了一个NO_PUBKEY
错误。我试图解决方案,从这里,这里和这里(创建文件伎俩)。尽管如此,它们都没有工作,我仍然收到以下错误:
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5
W: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)
所以,特别是我在打字时得到的
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5
Run Code Online (Sandbox Code Playgroud)
是
Executing: /tmp/apt-key-gpghome.FQVhh2ndBW/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5
gpg: key 40976EAF437D05B5: "Ubuntu …
Run Code Online (Sandbox Code Playgroud) 我不太明白如何从其他帖子中修复这些内容。有人能帮我吗?
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
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.
Run Code Online (Sandbox Code Playgroud)