每当我从 security.debian.org 收到升级包时,我都会收到以下错误:
WARNING: The following packages cannot be authenticated!
apache2 apache2-mpm-prefork apache2.2-common ...
Install these packages without verification [y/N]?
E: Some packages could not be authenticated
我在 OpenVZ 容器中运行 Debian 6。我的 /etc/apt/sources.list 中有以下行:
deb http://security.debian.org squeeze updates/main updates/contrib
我已经安装了 debian-archive-keyring,并且是最新版本。
答案1
OpenVZ 附带的 sources.list 模板配置错误。运行以下命令来更正:
sed -i 's#security.debian.org squeeze updates/main updates/contrib#security.debian.org/ squeeze/updates main non-free contrib#' /etc/apt/sources.list
apt-get update