Why is unattended-upgrades activated by default?
I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?
Thanks
server apt upgrade lts
add a comment |
I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?
Thanks
server apt upgrade lts
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08
add a comment |
I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?
Thanks
server apt upgrade lts
I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?
Thanks
server apt upgrade lts
server apt upgrade lts
asked Jun 10 '16 at 15:39
Cucumber
2813
2813
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08
add a comment |
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08
add a comment |
2 Answers
2
active
oldest
votes
I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.
Edit /etc/apt/apt.conf.d/50unattended-upgrades
and comment out the -security
line.
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
add a comment |
Another way to disable unattended upgrades is to
Edit /etc/apt/apt.conf.d/20auto-updates
and set "Unattended-Upgrade" to "0".
APT::Periodic::Unattended-Upgrade "0";
1
Isn't that file called20auto-upgrades
, not20auto-updates
?
– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f785339%2fwhy-is-unattended-upgrades-activated-by-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.
Edit /etc/apt/apt.conf.d/50unattended-upgrades
and comment out the -security
line.
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
add a comment |
I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.
Edit /etc/apt/apt.conf.d/50unattended-upgrades
and comment out the -security
line.
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
add a comment |
I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.
Edit /etc/apt/apt.conf.d/50unattended-upgrades
and comment out the -security
line.
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.
Edit /etc/apt/apt.conf.d/50unattended-upgrades
and comment out the -security
line.
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
answered Jun 10 '16 at 15:56
bc2946088
3,18021129
3,18021129
add a comment |
add a comment |
Another way to disable unattended upgrades is to
Edit /etc/apt/apt.conf.d/20auto-updates
and set "Unattended-Upgrade" to "0".
APT::Periodic::Unattended-Upgrade "0";
1
Isn't that file called20auto-upgrades
, not20auto-updates
?
– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
add a comment |
Another way to disable unattended upgrades is to
Edit /etc/apt/apt.conf.d/20auto-updates
and set "Unattended-Upgrade" to "0".
APT::Periodic::Unattended-Upgrade "0";
1
Isn't that file called20auto-upgrades
, not20auto-updates
?
– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
add a comment |
Another way to disable unattended upgrades is to
Edit /etc/apt/apt.conf.d/20auto-updates
and set "Unattended-Upgrade" to "0".
APT::Periodic::Unattended-Upgrade "0";
Another way to disable unattended upgrades is to
Edit /etc/apt/apt.conf.d/20auto-updates
and set "Unattended-Upgrade" to "0".
APT::Periodic::Unattended-Upgrade "0";
edited Nov 11 '16 at 20:45
Jorge Castro
35.9k105422617
35.9k105422617
answered Nov 11 '16 at 20:43
Malissa Sullivan
7111
7111
1
Isn't that file called20auto-upgrades
, not20auto-updates
?
– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
add a comment |
1
Isn't that file called20auto-upgrades
, not20auto-updates
?
– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
1
1
Isn't that file called
20auto-upgrades
, not 20auto-updates
?– hheimbuerger
May 18 '18 at 20:31
Isn't that file called
20auto-upgrades
, not 20auto-updates
?– hheimbuerger
May 18 '18 at 20:31
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
– wedi
Jul 29 '18 at 20:19
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f785339%2fwhy-is-unattended-upgrades-activated-by-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05
I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08