dpkg --get-selections shows packages marked “deinstall”












37















Executing dpkg --get-selections shows packages with one of the markers install or deinstall.



Some packages I could remove completely with apt-get remove.




  1. What does deinstall mean?


  2. What can be done so that the packages marked deinstall are not listed by dpkg --get-selections anymore?











share|improve this question





























    37















    Executing dpkg --get-selections shows packages with one of the markers install or deinstall.



    Some packages I could remove completely with apt-get remove.




    1. What does deinstall mean?


    2. What can be done so that the packages marked deinstall are not listed by dpkg --get-selections anymore?











    share|improve this question



























      37












      37








      37


      11






      Executing dpkg --get-selections shows packages with one of the markers install or deinstall.



      Some packages I could remove completely with apt-get remove.




      1. What does deinstall mean?


      2. What can be done so that the packages marked deinstall are not listed by dpkg --get-selections anymore?











      share|improve this question
















      Executing dpkg --get-selections shows packages with one of the markers install or deinstall.



      Some packages I could remove completely with apt-get remove.




      1. What does deinstall mean?


      2. What can be done so that the packages marked deinstall are not listed by dpkg --get-selections anymore?








      apt software-installation dpkg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 9 '14 at 20:40









      Tim

      20.1k1586141




      20.1k1586141










      asked Jul 20 '12 at 13:42









      user78225user78225

      186123




      186123






















          3 Answers
          3






          active

          oldest

          votes


















          16















          What does "deinstall" mean?




          From the manpage of dpkg this means





          the package is selected for de-installation or removal (i.e. we want to remove all files, except configuration files).





          You also asked




          What can be done so that the packages marked "deinstall" are not listed by "dpkg --get-selections" anymore?




          There are two ways you can do for not to be listed in the dpkg --get-selections command.



          1. Unselect the packages for removal



          You can unselect the packages, which are selected for removal. In this way, dpkg --get-selection will not show "deinstall" entry.



          Look at this answer for the exact procedure to do this



          2. You can actually do the selected task, i.e deinstall them



          It is not recommended, If you have done a dpkg --clear-selections accidentally, which mark all packages as "deinstall" except the essentials one (Here, essentials doesn't mean You can have a system without any unnecessary software, essentials mean, You can only boot and have a very low-level linux system).



          The command to do the desired task selected is:



          sudo apt-get dselect-upgrade


          Hope this will answer your query.





          For more information you can check these links.




          • Ubuntu manual page for dpkg

          • What do the various dpkg flags like mean?






          share|improve this answer





















          • 2





            You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

            – Mads Skjern
            May 29 '15 at 12:42











          • You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

            – Mads Skjern
            May 29 '15 at 12:45











          • I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

            – Chan Kim
            Feb 27 at 7:27





















          14














          The "sudo apt-get dselect-upgrade" answer did not work for me. To remove a single deinstalled package I used:



          sudo apt-get --purge remove <package_name>





          share|improve this answer































            10














            If apt-get --purge fails to remove the package try the following:



            Check the de-installed packages to make sure you really want to remove them.



            dpkg --get-selections | grep deinstall | cut -f1


            If you are sure, execute dpkg --purge:



            sudo dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`





            share|improve this answer


























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


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f165951%2fdpkg-get-selections-shows-packages-marked-deinstall%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              16















              What does "deinstall" mean?




              From the manpage of dpkg this means





              the package is selected for de-installation or removal (i.e. we want to remove all files, except configuration files).





              You also asked




              What can be done so that the packages marked "deinstall" are not listed by "dpkg --get-selections" anymore?




              There are two ways you can do for not to be listed in the dpkg --get-selections command.



              1. Unselect the packages for removal



              You can unselect the packages, which are selected for removal. In this way, dpkg --get-selection will not show "deinstall" entry.



              Look at this answer for the exact procedure to do this



              2. You can actually do the selected task, i.e deinstall them



              It is not recommended, If you have done a dpkg --clear-selections accidentally, which mark all packages as "deinstall" except the essentials one (Here, essentials doesn't mean You can have a system without any unnecessary software, essentials mean, You can only boot and have a very low-level linux system).



              The command to do the desired task selected is:



              sudo apt-get dselect-upgrade


              Hope this will answer your query.





              For more information you can check these links.




              • Ubuntu manual page for dpkg

              • What do the various dpkg flags like mean?






              share|improve this answer





















              • 2





                You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

                – Mads Skjern
                May 29 '15 at 12:42











              • You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

                – Mads Skjern
                May 29 '15 at 12:45











              • I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

                – Chan Kim
                Feb 27 at 7:27


















              16















              What does "deinstall" mean?




              From the manpage of dpkg this means





              the package is selected for de-installation or removal (i.e. we want to remove all files, except configuration files).





              You also asked




              What can be done so that the packages marked "deinstall" are not listed by "dpkg --get-selections" anymore?




              There are two ways you can do for not to be listed in the dpkg --get-selections command.



              1. Unselect the packages for removal



              You can unselect the packages, which are selected for removal. In this way, dpkg --get-selection will not show "deinstall" entry.



              Look at this answer for the exact procedure to do this



              2. You can actually do the selected task, i.e deinstall them



              It is not recommended, If you have done a dpkg --clear-selections accidentally, which mark all packages as "deinstall" except the essentials one (Here, essentials doesn't mean You can have a system without any unnecessary software, essentials mean, You can only boot and have a very low-level linux system).



              The command to do the desired task selected is:



              sudo apt-get dselect-upgrade


              Hope this will answer your query.





              For more information you can check these links.




              • Ubuntu manual page for dpkg

              • What do the various dpkg flags like mean?






              share|improve this answer





















              • 2





                You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

                – Mads Skjern
                May 29 '15 at 12:42











              • You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

                – Mads Skjern
                May 29 '15 at 12:45











              • I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

                – Chan Kim
                Feb 27 at 7:27
















              16












              16








              16








              What does "deinstall" mean?




              From the manpage of dpkg this means





              the package is selected for de-installation or removal (i.e. we want to remove all files, except configuration files).





              You also asked




              What can be done so that the packages marked "deinstall" are not listed by "dpkg --get-selections" anymore?




              There are two ways you can do for not to be listed in the dpkg --get-selections command.



              1. Unselect the packages for removal



              You can unselect the packages, which are selected for removal. In this way, dpkg --get-selection will not show "deinstall" entry.



              Look at this answer for the exact procedure to do this



              2. You can actually do the selected task, i.e deinstall them



              It is not recommended, If you have done a dpkg --clear-selections accidentally, which mark all packages as "deinstall" except the essentials one (Here, essentials doesn't mean You can have a system without any unnecessary software, essentials mean, You can only boot and have a very low-level linux system).



              The command to do the desired task selected is:



              sudo apt-get dselect-upgrade


              Hope this will answer your query.





              For more information you can check these links.




              • Ubuntu manual page for dpkg

              • What do the various dpkg flags like mean?






              share|improve this answer
















              What does "deinstall" mean?




              From the manpage of dpkg this means





              the package is selected for de-installation or removal (i.e. we want to remove all files, except configuration files).





              You also asked




              What can be done so that the packages marked "deinstall" are not listed by "dpkg --get-selections" anymore?




              There are two ways you can do for not to be listed in the dpkg --get-selections command.



              1. Unselect the packages for removal



              You can unselect the packages, which are selected for removal. In this way, dpkg --get-selection will not show "deinstall" entry.



              Look at this answer for the exact procedure to do this



              2. You can actually do the selected task, i.e deinstall them



              It is not recommended, If you have done a dpkg --clear-selections accidentally, which mark all packages as "deinstall" except the essentials one (Here, essentials doesn't mean You can have a system without any unnecessary software, essentials mean, You can only boot and have a very low-level linux system).



              The command to do the desired task selected is:



              sudo apt-get dselect-upgrade


              Hope this will answer your query.





              For more information you can check these links.




              • Ubuntu manual page for dpkg

              • What do the various dpkg flags like mean?







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:23









              Community

              1




              1










              answered Jul 20 '12 at 14:13









              AnwarAnwar

              57.2k22149255




              57.2k22149255








              • 2





                You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

                – Mads Skjern
                May 29 '15 at 12:42











              • You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

                – Mads Skjern
                May 29 '15 at 12:45











              • I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

                – Chan Kim
                Feb 27 at 7:27
















              • 2





                You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

                – Mads Skjern
                May 29 '15 at 12:42











              • You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

                – Mads Skjern
                May 29 '15 at 12:45











              • I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

                – Chan Kim
                Feb 27 at 7:27










              2




              2





              You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

              – Mads Skjern
              May 29 '15 at 12:42





              You write "is selected for de-installation or removal (i.e. we want to remove all files, except configuration files)". Well, how did I ("we") select that? Is that what happens when I "apt-get remove ..."? And if so, why are they only "selected for de-installation", why are they not removed instantly when running "apt-get remove"?

              – Mads Skjern
              May 29 '15 at 12:42













              You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

              – Mads Skjern
              May 29 '15 at 12:45





              You write that it is not recommended to dselect-upgrade. Is that only because, in the case that one has accidentally run --clear-selections, it goes to bare-bone. Or is it for other reasons as well? It seems sort of like an obvious thing to do, to de-install things that are selected for deinstallation :/ ??

              – Mads Skjern
              May 29 '15 at 12:45













              I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

              – Chan Kim
              Feb 27 at 7:27







              I can't understand the answer either. I am reading the manual, but it's not clear either. For example, the package selection state "install" is described as "The package is selected for installation.". But I find the packages marked as 'install' have all already been installed in my system. What does it mean 'selected for installation'? (when it's already installed?)

              – Chan Kim
              Feb 27 at 7:27















              14














              The "sudo apt-get dselect-upgrade" answer did not work for me. To remove a single deinstalled package I used:



              sudo apt-get --purge remove <package_name>





              share|improve this answer




























                14














                The "sudo apt-get dselect-upgrade" answer did not work for me. To remove a single deinstalled package I used:



                sudo apt-get --purge remove <package_name>





                share|improve this answer


























                  14












                  14








                  14







                  The "sudo apt-get dselect-upgrade" answer did not work for me. To remove a single deinstalled package I used:



                  sudo apt-get --purge remove <package_name>





                  share|improve this answer













                  The "sudo apt-get dselect-upgrade" answer did not work for me. To remove a single deinstalled package I used:



                  sudo apt-get --purge remove <package_name>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 11 '13 at 16:29









                  JohnJohn

                  24122




                  24122























                      10














                      If apt-get --purge fails to remove the package try the following:



                      Check the de-installed packages to make sure you really want to remove them.



                      dpkg --get-selections | grep deinstall | cut -f1


                      If you are sure, execute dpkg --purge:



                      sudo dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`





                      share|improve this answer






























                        10














                        If apt-get --purge fails to remove the package try the following:



                        Check the de-installed packages to make sure you really want to remove them.



                        dpkg --get-selections | grep deinstall | cut -f1


                        If you are sure, execute dpkg --purge:



                        sudo dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`





                        share|improve this answer




























                          10












                          10








                          10







                          If apt-get --purge fails to remove the package try the following:



                          Check the de-installed packages to make sure you really want to remove them.



                          dpkg --get-selections | grep deinstall | cut -f1


                          If you are sure, execute dpkg --purge:



                          sudo dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`





                          share|improve this answer















                          If apt-get --purge fails to remove the package try the following:



                          Check the de-installed packages to make sure you really want to remove them.



                          dpkg --get-selections | grep deinstall | cut -f1


                          If you are sure, execute dpkg --purge:



                          sudo dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 1 at 9:05









                          Kevin Bowen

                          14.7k155970




                          14.7k155970










                          answered Jun 20 '14 at 16:07









                          Allyl IsocyanateAllyl Isocyanate

                          23638




                          23638






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f165951%2fdpkg-get-selections-shows-packages-marked-deinstall%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

                              flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                              Mangá

                              Eduardo VII do Reino Unido