Err:5 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABA1F9B8875A6661 Reading package lists... Done W: GPG error: https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABA1F9B8875A6661 E: The repository 'https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version 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.
ls /usr/share/keyrings/caddy-stable-archive-keyring.gpg
修改 Caddy 的源文件:
1
vim /etc/apt/sources.list.d/caddy-stable.list
保持一致即可:
1 2 3 4 5 6 7 8 9
# Source: Caddy # Site: https://github.com/caddyserver/caddy # Repository: Caddy / stable # Description: Fast, multi-platform web server with automatic HTTPS
deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main
deb-src [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main
遇到Spotify的报错:
1 2 3 4 5 6
Get:7 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version/main amd64 Packages [3,947 B] Reading package lists... Done W: GPG error: https://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C85668DF69375001 E: The repository 'http://repository.spotify.com stable 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.
编辑文件 /etc/apt/sources.list.d/spotify.list,将原内容: deb [signed-by=/usr/share/keyrings/spotify.gpg] http://repository.spotify.com stable non-free 修改为: deb [trusted=yes] http://repository.spotify.com stable non-free 保存后执行: apt update
只是有个警告,其他正常:
1 2
1 package can be upgraded. Run 'apt list --upgradable' to see it. W: http://repository.spotify.com/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.