密钥环 /etc/apt/trusted.gpg 中的密钥将被忽略,因为该文件的文件类型不受支持

Pan*_*dya 4 debian gnome-keyring

我正在运行 Debian 10。很长一段时间以来,我在更新存储库时遇到以下错误:

$ sudo apt update
Hit:1 http://security.debian.org buster/updates InRelease                        
Hit:2 http://deb.debian.org/debian buster InRelease                              
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: http://security.debian.org/dists/buster/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file has an unsupported filetype.
W: http://deb.debian.org/debian/dists/buster/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file has an unsupported filetype.
W: http://deb.debian.org/debian/dists/buster-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file has an unsupported filetype.
Run Code Online (Sandbox Code Playgroud)

我如何阅读有关密钥的警告?

是内容/etc/apt/sources.list

如果需要更多信息,请在评论中询问。

小智 6

如果您在 中收到此错误docker,问题是较新的操作系统使用了 docker 未正确传递的系统调用,这会导致像上面这样的令人困惑的错误消息。

在这种情况下,迄今为止最简单的解决方案就是更新docker.