For Syncthing
/etc/apt/apt.conf.d/50-syncthing-unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
"Syncthing syncthing";
};
For Wireguard
/etc/apt/apt.conf.d/50-wireguard-unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
"LP-PPA-wireguard-wireguard:${distro_codename}";
};
如何写呢
获取可能的组合
apt update
apt-cache policy
输出结果类似
500 https://apt.syncthing.net syncthing/stable amd64 Packages
release o=Syncthing,a=syncthing,n=debian,l=Syncthing,c=stable,b=amd64
origin apt.syncthing.net
选取o=Syncthing, a=syncthing
生成
"Syncthing syncthing";
调试
unattended-upgrades -d
简单不,哈哈
Written with StackEdit.
Comments