我按照官方指南在我的 ubuntu 20.4.2 机器上安装 WineHQ。
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
哪次返回
2021-03-27 23:49:12 (6.30 MB/s) - ‘winehq.key’ saved [3220/3220]
现在,当我尝试添加此键时,
sudo apt-key add winehq.key
我收到此错误:
gpg: invalid key resource URL '/tmp/apt-key-gpghome.pz8gFybm20/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 7721F63BD38B4796: 2 signatures not checked due to missing keys
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: Total number processed: 10
gpg: skipped new keys: 10
即使通过管道传输命令也会产生相同的错误。如何解决?
更新
我尝试更新软件包(猜测它会修复)但发现了这一点,
falamiw@falamiw ~ sudo apt-get update
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Get:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [6,257 B]
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease
Err:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Ign:4 http://ppa.launchpad.net/audacity-team/daily/ubuntu focal InRelease
Get:5 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [81.6 kB]
Hit:6 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04 InRelease
Err:5 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
Hit:7 http://bd.archive.ubuntu.com/ubuntu focal InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:9 http://ppa.launchpad.net/gerardpuig/ppa/ubuntu focal InRelease
Hit:10 http://archive.canonical.com/ubuntu focal InRelease
Get:11 http://bd.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Err:12 http://ppa.launchpad.net/audacity-team/daily/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Get:13 http://bd.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu focal 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.
W: GPG error: http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
E: The repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg 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.
E: The repository 'http://ppa.launchpad.net/audacity-team/daily/ubuntu focal 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.
然后尝试解决以下问题这
✘ falamiw@falamiw ~ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 76F1A20FF987672F
Executing: /tmp/apt-key-gpghome.D1LG9HG0HV/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 76F1A20FF987672F
gpg: key 76F1A20FF987672F: public key "WineHQ packages <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: invalid key resource URL '/tmp/apt-key-gpghome.D1LG9HG0HV/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 7721F63BD38B4796: 2 signatures not checked due to missing keys
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 10
gpg: skipped new keys: 10