Debian

unattended-upgrades 不會從 backport 升級軟體包

  • December 21, 2016

unattended-upgrades工作正常,我每天都會收到更新,但偶爾,當我打開時aptitude,我意識到反向移植包不會自動升級。

這發生在兩台不同的機器(台式機和伺服器)上,都是 Debian Jessie。

我的配置有什麼問題嗎?

/etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Origins-Pattern {
     "o=Debian,n=jessie";
     "o=Debian,n=jessie-updates";
     "o=Debian,n=jessie-backports";
     "o=Debian,n=jessie-proposed-updates";
     "o=Debian,n=jessie,l=Debian-Security";
};

/etc/apt/sources.list

deb http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb http://ftp.fr.debian.org/debian/ jessie-updates main
deb http://ftp.fr.debian.org/debian/ jessie-backports main

將 backports 條目更改為

"o=Debian Backports,n=jessie-backports,l=Debian Backports";

順便說一句,與

unattended-upgrades -v -d

您可以查看無人值守升級“允許”哪些來源。

引用自:https://unix.stackexchange.com/questions/329326