2

In addition to /etc/apt/sources.list I have a couple of origins defined in /etc/apt/sources.list.d/ How can I adjust /etc/apt/apt.conf.d/50unattended-upgrades so that all origins are allowed?

I tried setting an empty string as follows:

Unattended-Upgrade::Origins-Pattern {
  "";
}

but this results in an error message:

$ sudo unattended-upgrades -d
Initial blacklisted packages: 
Initial whitelisted packages: 
Starting unattended upgrades script
Allowed origins are: ['']
empty match string matches nothing
empty match string matches nothing
empty match string matches nothing
...
3

See the README:

If you already configure what to install via apt pinning, you can simply use "origin=*", e.g.:

Unattended-Upgrade::Origins-Pattern {
    "origin=*";
};
  • Does this use the same sources as a manual update, i.e. does it ignore disabled sources? – Silicomancer Oct 17 at 21:33
  • 1
    @Silicomancer yes, it uses the same repositories as a manual update. – Stephen Kitt Oct 18 at 4:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.