来自https://wiki.debian.org/VirtualBox#Debian_10_.22Buster.22.2C_Debian_11_.22Bullseye.22.2C_and_Debian_12_.22Bookworm.22-1的信息
我跑了:
sudo apt install lsb-release
echo "deb http://deb.debian.org/debian $(lsb_release -cs)-backports main contrib" |
sudo tee /etc/apt/sources.list.d/backports.list
echo "deb http://fasttrack.debian.net/debian-fasttrack/ $(lsb_release -cs)-fasttrack main contrib" |
sudo tee /etc/apt/sources.list.d/fasttrack.list
echo "deb http://fasttrack.debian.net/debian-fasttrack/ $(lsb_release -cs)-backports-staging main contrib" |
sudo tee -a /etc/apt/sources.list.d/fasttrack.list
然而,这给了我一个错误apt update
:
chris@debiandev:~/projects$ sudo apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Get:5 http://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease [12.9 kB]
Get:6 http://fasttrack.debian.net/debian-fasttrack bookworm-backports-staging InRelease [12.9 kB]
Err:5 http://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C47F8A8AAD743EF7
Err:6 http://fasttrack.debian.net/debian-fasttrack bookworm-backports-staging InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C47F8A8AAD743EF7
Reading package lists... Done
W: GPG error: http://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C47F8A8AAD743EF7
E: The repository 'http://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack 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://fasttrack.debian.net/debian-fasttrack bookworm-backports-staging InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C47F8A8AAD743EF7
E: The repository 'http://fasttrack.debian.net/debian-fasttrack bookworm-backports-staging 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.
我似乎无法找到具有此确切公钥值的谷歌搜索结果,因此我有点担心,只能盲目地添加此公钥sudo apt-key adv ...
。我是不是漏掉了一步
我正在使用 Debian 12 bookworm。
添加 backports 存储库后,您跳过了此部分说明:
该软件包在主存储库中可用,因此您可以在添加快速通道存储库之前安装它。