Non-interactive apt upgradeDebian: I want to install “libasound2” and “libasound2-plugins” from...

Convert an array of objects to array of the objects' values

Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?

An Undercover Army

Rationale to prefer local variables over instance variables?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

3.5% Interest Student Loan or use all of my savings on Tuition?

Using the imperfect indicative vs. subjunctive with si

“I had a flat in the centre of town, but I didn’t like living there, so …”

Is it a Cyclops number? "Nobody" knows!

When to use the term transposed instead of modulation?

Deal the cards to the players

Paper published similar to PhD thesis

Why is my explanation wrong?

Why is the electrolytic capacitor not polarity sensitive?

Why won't the strings command stop?

What does "rhumatis" mean?

Problems with rounding giving too many digits

School performs periodic password audits. Is my password compromised?

Why are special aircraft used for the carriers in the United States Navy?

Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?

Replacing tantalum capacitor with ceramic capacitor for Op Amps

Learning to quickly identify valid fingering for piano?

Did Amazon pay $0 in taxes last year?

Is every open circuit a capacitor?



Non-interactive apt upgrade


Debian: I want to install “libasound2” and “libasound2-plugins” from “wheezy” while being on “squeeze”Why do we have login, non-login, interactive, and non-interactive bash shells?apt pinning several packages in one sectionUpgrade from 10.04 to 12.04: apt/aptitude debug informationAutomated apt-get upgrade quits midwayVagrant Reports Different Installed GuestAdditions versionVagrant box update vs apt-get upgradeHow to prevent apt upgrade from installing manually installed libraryUbuntu 16.04 can't run “sudo apt upgrade”Interactive, non interactive shells and expansion













1















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?










share|improve this question



























    1















    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?










    share|improve this question

























      1












      1








      1








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 20 hours ago









      Radu StoenescuRadu Stoenescu

      1334




      1334






















          1 Answer
          1






          active

          oldest

          votes


















          0














          < 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?






          share|improve this answer

























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            < 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?






            share|improve this answer






























              0














              < 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?






              share|improve this answer




























                0












                0








                0







                < 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?






                share|improve this answer















                < 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?







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 18 hours ago

























                answered 18 hours ago









                kenorbkenorb

                11.3k1579116




                11.3k1579116






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...