Non-interactive apt upgrade
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I'm trying to provision a machine using Vagrant and plain bash scripts.
The two lines are:
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
However, it doesn't work as expected:
default: Configuration file '/etc/update-manager/release-upgrades'
default: ==> Modified (by you or by a script) since installation.
default: ==> Package distributor has shipped an updated version.
default: What would you like to do about it ? Your options are:
default: Y or I : install the package maintainer's version
default: N or O : keep your currently-installed version
default: D : show the differences between the versions
default: Z : start a shell to examine the situation
default: The default action is to keep your current version.
default:
default: *** release-upgrades (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package ubuntu-release-upgrader-core (--configure):
default:
default: end of file on stdin at conffile prompt
Is there any other option I could use to provide a Y
answer to that?
bash vagrant apt
add a comment |
I'm trying to provision a machine using Vagrant and plain bash scripts.
The two lines are:
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
However, it doesn't work as expected:
default: Configuration file '/etc/update-manager/release-upgrades'
default: ==> Modified (by you or by a script) since installation.
default: ==> Package distributor has shipped an updated version.
default: What would you like to do about it ? Your options are:
default: Y or I : install the package maintainer's version
default: N or O : keep your currently-installed version
default: D : show the differences between the versions
default: Z : start a shell to examine the situation
default: The default action is to keep your current version.
default:
default: *** release-upgrades (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package ubuntu-release-upgrader-core (--configure):
default:
default: end of file on stdin at conffile prompt
Is there any other option I could use to provide a Y
answer to that?
bash vagrant apt
add a comment |
I'm trying to provision a machine using Vagrant and plain bash scripts.
The two lines are:
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
However, it doesn't work as expected:
default: Configuration file '/etc/update-manager/release-upgrades'
default: ==> Modified (by you or by a script) since installation.
default: ==> Package distributor has shipped an updated version.
default: What would you like to do about it ? Your options are:
default: Y or I : install the package maintainer's version
default: N or O : keep your currently-installed version
default: D : show the differences between the versions
default: Z : start a shell to examine the situation
default: The default action is to keep your current version.
default:
default: *** release-upgrades (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package ubuntu-release-upgrader-core (--configure):
default:
default: end of file on stdin at conffile prompt
Is there any other option I could use to provide a Y
answer to that?
bash vagrant apt
I'm trying to provision a machine using Vagrant and plain bash scripts.
The two lines are:
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
However, it doesn't work as expected:
default: Configuration file '/etc/update-manager/release-upgrades'
default: ==> Modified (by you or by a script) since installation.
default: ==> Package distributor has shipped an updated version.
default: What would you like to do about it ? Your options are:
default: Y or I : install the package maintainer's version
default: N or O : keep your currently-installed version
default: D : show the differences between the versions
default: Z : start a shell to examine the situation
default: The default action is to keep your current version.
default:
default: *** release-upgrades (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package ubuntu-release-upgrader-core (--configure):
default:
default: end of file on stdin at conffile prompt
Is there any other option I could use to provide a Y
answer to that?
bash vagrant apt
bash vagrant apt
asked Mar 7 at 9:52
Radu StoenescuRadu Stoenescu
1334
1334
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
< Apt 1.1
Try the following command to force upgrade for non-interactive sessions:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::="--force-confnew"
--force-yes
-fuy
dist-upgrade
Note: Use --force-confold
to keep old, and --force-confnew
to keep new configs.
Source: apt-get -y upgrade for non-interactive sessions - and replacing conf files in /etc.
>= Apt 1.1
If you're using Apt 1.1 or above, --force-yes
has been deprecated, so you've to use the options starting with --allow
instead, e.g. --allow-downgrades
, --allow-remove-essential
, --allow-change-held-packages
.
So the command is:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::=--force-confold
-o Dpkg::Options::=--force-confdef
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Source: CFE-2360: Make apt_get package module version aware.
Related:
- 100% non-interactive Debian dist-upgrade
- apt-get update non interactive
- How do I ask apt-get to skip any interactive post-install configuration steps?
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1412054%2fnon-interactive-apt-upgrade%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
< Apt 1.1
Try the following command to force upgrade for non-interactive sessions:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::="--force-confnew"
--force-yes
-fuy
dist-upgrade
Note: Use --force-confold
to keep old, and --force-confnew
to keep new configs.
Source: apt-get -y upgrade for non-interactive sessions - and replacing conf files in /etc.
>= Apt 1.1
If you're using Apt 1.1 or above, --force-yes
has been deprecated, so you've to use the options starting with --allow
instead, e.g. --allow-downgrades
, --allow-remove-essential
, --allow-change-held-packages
.
So the command is:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::=--force-confold
-o Dpkg::Options::=--force-confdef
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Source: CFE-2360: Make apt_get package module version aware.
Related:
- 100% non-interactive Debian dist-upgrade
- apt-get update non interactive
- How do I ask apt-get to skip any interactive post-install configuration steps?
add a comment |
< Apt 1.1
Try the following command to force upgrade for non-interactive sessions:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::="--force-confnew"
--force-yes
-fuy
dist-upgrade
Note: Use --force-confold
to keep old, and --force-confnew
to keep new configs.
Source: apt-get -y upgrade for non-interactive sessions - and replacing conf files in /etc.
>= Apt 1.1
If you're using Apt 1.1 or above, --force-yes
has been deprecated, so you've to use the options starting with --allow
instead, e.g. --allow-downgrades
, --allow-remove-essential
, --allow-change-held-packages
.
So the command is:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::=--force-confold
-o Dpkg::Options::=--force-confdef
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Source: CFE-2360: Make apt_get package module version aware.
Related:
- 100% non-interactive Debian dist-upgrade
- apt-get update non interactive
- How do I ask apt-get to skip any interactive post-install configuration steps?
add a comment |
< Apt 1.1
Try the following command to force upgrade for non-interactive sessions:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::="--force-confnew"
--force-yes
-fuy
dist-upgrade
Note: Use --force-confold
to keep old, and --force-confnew
to keep new configs.
Source: apt-get -y upgrade for non-interactive sessions - and replacing conf files in /etc.
>= Apt 1.1
If you're using Apt 1.1 or above, --force-yes
has been deprecated, so you've to use the options starting with --allow
instead, e.g. --allow-downgrades
, --allow-remove-essential
, --allow-change-held-packages
.
So the command is:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::=--force-confold
-o Dpkg::Options::=--force-confdef
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Source: CFE-2360: Make apt_get package module version aware.
Related:
- 100% non-interactive Debian dist-upgrade
- apt-get update non interactive
- How do I ask apt-get to skip any interactive post-install configuration steps?
< Apt 1.1
Try the following command to force upgrade for non-interactive sessions:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::="--force-confnew"
--force-yes
-fuy
dist-upgrade
Note: Use --force-confold
to keep old, and --force-confnew
to keep new configs.
Source: apt-get -y upgrade for non-interactive sessions - and replacing conf files in /etc.
>= Apt 1.1
If you're using Apt 1.1 or above, --force-yes
has been deprecated, so you've to use the options starting with --allow
instead, e.g. --allow-downgrades
, --allow-remove-essential
, --allow-change-held-packages
.
So the command is:
DEBIAN_FRONTEND=noninteractive
apt-get
-o Dpkg::Options::=--force-confold
-o Dpkg::Options::=--force-confdef
-y --allow-downgrades --allow-remove-essential --allow-change-held-packages
Source: CFE-2360: Make apt_get package module version aware.
Related:
- 100% non-interactive Debian dist-upgrade
- apt-get update non interactive
- How do I ask apt-get to skip any interactive post-install configuration steps?
edited Mar 7 at 12:10
answered Mar 7 at 11:53
kenorbkenorb
11.7k1580118
11.7k1580118
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1412054%2fnon-interactive-apt-upgrade%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