dpkg --list 'linux-image-*' results in Unknown / Not installed











up vote
2
down vote

favorite












So I'm manually deleting old kernels and did a dpkg --list 'linux-image-*' and I get:




Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii linux-image-4. 4.10.0-42.46 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.13.0-31.34 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.15.0-38.41 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-39.42 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-42.45 amd64 Signed kernel image generic
ii linux-image-4. 4.4.0-128.15 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.4.0-140.16 amd64 Linux kernel image for version 4.
ii linux-image-ex 4.4.0-128.15 amd64 Linux kernel extra modules for ve
ii linux-image-ex 4.4.0-140.16 amd64 Linux kernel extra modules for ve
ii linux-image-ge 4.4.0.140.14 amd64 Generic Linux kernel image
ii linux-image-ge 4.15.0.42.63 amd64 Generic Linux kernel image
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)


so the last 3 packages are in a Desired=Unknown and Status=Not state.

So I dug a little deeper and found that dpkg-query --show 'linux-image-*' doesn't help me much:




linux-image-4.10.0-42-generic   4.10.0-42.46~16.04.1
linux-image-4.13.0-31-generic 4.13.0-31.34~16.04.1
linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1
linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1
linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1
linux-image-4.4.0-128-generic 4.4.0-128.154
linux-image-4.4.0-140-generic 4.4.0-140.166
linux-image-extra-4.4.0-128-generic 4.4.0-128.154
linux-image-extra-4.4.0-140-generic 4.4.0-140.166
linux-image-generic 4.4.0.140.146
linux-image-generic-hwe-16.04 4.15.0.42.63
linux-image-unsigned-4.15.0-38-generic
linux-image-unsigned-4.15.0-39-generic
linux-image-unsigned-4.15.0-42-generic


So where are those 3 coming from and how do I get rid of those 3??





Additional info:



dpkg --list 'linux-image-*' > /tmp/N0rbert.txt is here.



uname -r and ls /boot are here










share|improve this question
























  • Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
    – N0rbert
    Dec 8 at 9:30












  • Q edited as per your request. ;-)
    – Fabby
    Dec 8 at 9:34















up vote
2
down vote

favorite












So I'm manually deleting old kernels and did a dpkg --list 'linux-image-*' and I get:




Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii linux-image-4. 4.10.0-42.46 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.13.0-31.34 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.15.0-38.41 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-39.42 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-42.45 amd64 Signed kernel image generic
ii linux-image-4. 4.4.0-128.15 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.4.0-140.16 amd64 Linux kernel image for version 4.
ii linux-image-ex 4.4.0-128.15 amd64 Linux kernel extra modules for ve
ii linux-image-ex 4.4.0-140.16 amd64 Linux kernel extra modules for ve
ii linux-image-ge 4.4.0.140.14 amd64 Generic Linux kernel image
ii linux-image-ge 4.15.0.42.63 amd64 Generic Linux kernel image
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)


so the last 3 packages are in a Desired=Unknown and Status=Not state.

So I dug a little deeper and found that dpkg-query --show 'linux-image-*' doesn't help me much:




linux-image-4.10.0-42-generic   4.10.0-42.46~16.04.1
linux-image-4.13.0-31-generic 4.13.0-31.34~16.04.1
linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1
linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1
linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1
linux-image-4.4.0-128-generic 4.4.0-128.154
linux-image-4.4.0-140-generic 4.4.0-140.166
linux-image-extra-4.4.0-128-generic 4.4.0-128.154
linux-image-extra-4.4.0-140-generic 4.4.0-140.166
linux-image-generic 4.4.0.140.146
linux-image-generic-hwe-16.04 4.15.0.42.63
linux-image-unsigned-4.15.0-38-generic
linux-image-unsigned-4.15.0-39-generic
linux-image-unsigned-4.15.0-42-generic


So where are those 3 coming from and how do I get rid of those 3??





Additional info:



dpkg --list 'linux-image-*' > /tmp/N0rbert.txt is here.



uname -r and ls /boot are here










share|improve this question
























  • Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
    – N0rbert
    Dec 8 at 9:30












  • Q edited as per your request. ;-)
    – Fabby
    Dec 8 at 9:34













up vote
2
down vote

favorite









up vote
2
down vote

favorite











So I'm manually deleting old kernels and did a dpkg --list 'linux-image-*' and I get:




Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii linux-image-4. 4.10.0-42.46 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.13.0-31.34 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.15.0-38.41 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-39.42 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-42.45 amd64 Signed kernel image generic
ii linux-image-4. 4.4.0-128.15 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.4.0-140.16 amd64 Linux kernel image for version 4.
ii linux-image-ex 4.4.0-128.15 amd64 Linux kernel extra modules for ve
ii linux-image-ex 4.4.0-140.16 amd64 Linux kernel extra modules for ve
ii linux-image-ge 4.4.0.140.14 amd64 Generic Linux kernel image
ii linux-image-ge 4.15.0.42.63 amd64 Generic Linux kernel image
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)


so the last 3 packages are in a Desired=Unknown and Status=Not state.

So I dug a little deeper and found that dpkg-query --show 'linux-image-*' doesn't help me much:




linux-image-4.10.0-42-generic   4.10.0-42.46~16.04.1
linux-image-4.13.0-31-generic 4.13.0-31.34~16.04.1
linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1
linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1
linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1
linux-image-4.4.0-128-generic 4.4.0-128.154
linux-image-4.4.0-140-generic 4.4.0-140.166
linux-image-extra-4.4.0-128-generic 4.4.0-128.154
linux-image-extra-4.4.0-140-generic 4.4.0-140.166
linux-image-generic 4.4.0.140.146
linux-image-generic-hwe-16.04 4.15.0.42.63
linux-image-unsigned-4.15.0-38-generic
linux-image-unsigned-4.15.0-39-generic
linux-image-unsigned-4.15.0-42-generic


So where are those 3 coming from and how do I get rid of those 3??





Additional info:



dpkg --list 'linux-image-*' > /tmp/N0rbert.txt is here.



uname -r and ls /boot are here










share|improve this question















So I'm manually deleting old kernels and did a dpkg --list 'linux-image-*' and I get:




Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii linux-image-4. 4.10.0-42.46 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.13.0-31.34 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.15.0-38.41 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-39.42 amd64 Signed kernel image generic
ii linux-image-4. 4.15.0-42.45 amd64 Signed kernel image generic
ii linux-image-4. 4.4.0-128.15 amd64 Linux kernel image for version 4.
ii linux-image-4. 4.4.0-140.16 amd64 Linux kernel image for version 4.
ii linux-image-ex 4.4.0-128.15 amd64 Linux kernel extra modules for ve
ii linux-image-ex 4.4.0-140.16 amd64 Linux kernel extra modules for ve
ii linux-image-ge 4.4.0.140.14 amd64 Generic Linux kernel image
ii linux-image-ge 4.15.0.42.63 amd64 Generic Linux kernel image
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)
un linux-image-un <none> <none> (no description available)


so the last 3 packages are in a Desired=Unknown and Status=Not state.

So I dug a little deeper and found that dpkg-query --show 'linux-image-*' doesn't help me much:




linux-image-4.10.0-42-generic   4.10.0-42.46~16.04.1
linux-image-4.13.0-31-generic 4.13.0-31.34~16.04.1
linux-image-4.15.0-38-generic 4.15.0-38.41~16.04.1
linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1
linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1
linux-image-4.4.0-128-generic 4.4.0-128.154
linux-image-4.4.0-140-generic 4.4.0-140.166
linux-image-extra-4.4.0-128-generic 4.4.0-128.154
linux-image-extra-4.4.0-140-generic 4.4.0-140.166
linux-image-generic 4.4.0.140.146
linux-image-generic-hwe-16.04 4.15.0.42.63
linux-image-unsigned-4.15.0-38-generic
linux-image-unsigned-4.15.0-39-generic
linux-image-unsigned-4.15.0-42-generic


So where are those 3 coming from and how do I get rid of those 3??





Additional info:



dpkg --list 'linux-image-*' > /tmp/N0rbert.txt is here.



uname -r and ls /boot are here







package-management kernel dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 8 at 10:10

























asked Dec 8 at 9:19









Fabby

26.1k1360159




26.1k1360159












  • Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
    – N0rbert
    Dec 8 at 9:30












  • Q edited as per your request. ;-)
    – Fabby
    Dec 8 at 9:34


















  • Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
    – N0rbert
    Dec 8 at 9:30












  • Q edited as per your request. ;-)
    – Fabby
    Dec 8 at 9:34
















Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
– N0rbert
Dec 8 at 9:30






Output of dpkg -l looks truncated. Please redirect its output to text file with dpkg --list 'linux-image-*' > d.txt and add contents of d.txt to the question.
– N0rbert
Dec 8 at 9:30














Q edited as per your request. ;-)
– Fabby
Dec 8 at 9:34




Q edited as per your request. ;-)
– Fabby
Dec 8 at 9:34










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










Before proceeding, compare the output of uname -r (your current running kernel version) with these versions. If you see the same number, then those are not old kernels, but unsigned new kernels so don't delete them!





Otherwise you can delete them using simply:



sudo apt-get purge linux-image-unsigned-4.15.0-38-generic 
linux-image-unsigned-4.15.0-39-generic linux-image-unsigned-4.15.0-42-generic


These kernels came from the official repositories:





  • linux-image-unsigned-4.15.0-38-generic,


  • linux-image-unsigned-4.15.0-39-generic,


  • linux-image-unsigned-4.15.0-42-generic.




My personal methods of removing kernels is one of the following:





  • use apt-get autoremove



    sudo apt-get autoremove



  • use purge-old-kernels from byobu package:



    sudo purge-old-kernels



  • remove non-installed kernels manually (if previous methods fail):



    sudo apt-get purge $(dpkg -l | grep 'linux-image-' | grep -v "^ii" | awk '{print $2}')



Note: dpkg --list may truncate its output when the terminal is narrow, so consider to use a redirect to file with dpkg --list 'linux-image-*' > d.txt and then less d.txt






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',
    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%2f1099351%2fdpkg-list-linux-image-results-in-unknown-not-installed%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








    up vote
    4
    down vote



    accepted










    Before proceeding, compare the output of uname -r (your current running kernel version) with these versions. If you see the same number, then those are not old kernels, but unsigned new kernels so don't delete them!





    Otherwise you can delete them using simply:



    sudo apt-get purge linux-image-unsigned-4.15.0-38-generic 
    linux-image-unsigned-4.15.0-39-generic linux-image-unsigned-4.15.0-42-generic


    These kernels came from the official repositories:





    • linux-image-unsigned-4.15.0-38-generic,


    • linux-image-unsigned-4.15.0-39-generic,


    • linux-image-unsigned-4.15.0-42-generic.




    My personal methods of removing kernels is one of the following:





    • use apt-get autoremove



      sudo apt-get autoremove



    • use purge-old-kernels from byobu package:



      sudo purge-old-kernels



    • remove non-installed kernels manually (if previous methods fail):



      sudo apt-get purge $(dpkg -l | grep 'linux-image-' | grep -v "^ii" | awk '{print $2}')



    Note: dpkg --list may truncate its output when the terminal is narrow, so consider to use a redirect to file with dpkg --list 'linux-image-*' > d.txt and then less d.txt






    share|improve this answer



























      up vote
      4
      down vote



      accepted










      Before proceeding, compare the output of uname -r (your current running kernel version) with these versions. If you see the same number, then those are not old kernels, but unsigned new kernels so don't delete them!





      Otherwise you can delete them using simply:



      sudo apt-get purge linux-image-unsigned-4.15.0-38-generic 
      linux-image-unsigned-4.15.0-39-generic linux-image-unsigned-4.15.0-42-generic


      These kernels came from the official repositories:





      • linux-image-unsigned-4.15.0-38-generic,


      • linux-image-unsigned-4.15.0-39-generic,


      • linux-image-unsigned-4.15.0-42-generic.




      My personal methods of removing kernels is one of the following:





      • use apt-get autoremove



        sudo apt-get autoremove



      • use purge-old-kernels from byobu package:



        sudo purge-old-kernels



      • remove non-installed kernels manually (if previous methods fail):



        sudo apt-get purge $(dpkg -l | grep 'linux-image-' | grep -v "^ii" | awk '{print $2}')



      Note: dpkg --list may truncate its output when the terminal is narrow, so consider to use a redirect to file with dpkg --list 'linux-image-*' > d.txt and then less d.txt






      share|improve this answer

























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        Before proceeding, compare the output of uname -r (your current running kernel version) with these versions. If you see the same number, then those are not old kernels, but unsigned new kernels so don't delete them!





        Otherwise you can delete them using simply:



        sudo apt-get purge linux-image-unsigned-4.15.0-38-generic 
        linux-image-unsigned-4.15.0-39-generic linux-image-unsigned-4.15.0-42-generic


        These kernels came from the official repositories:





        • linux-image-unsigned-4.15.0-38-generic,


        • linux-image-unsigned-4.15.0-39-generic,


        • linux-image-unsigned-4.15.0-42-generic.




        My personal methods of removing kernels is one of the following:





        • use apt-get autoremove



          sudo apt-get autoremove



        • use purge-old-kernels from byobu package:



          sudo purge-old-kernels



        • remove non-installed kernels manually (if previous methods fail):



          sudo apt-get purge $(dpkg -l | grep 'linux-image-' | grep -v "^ii" | awk '{print $2}')



        Note: dpkg --list may truncate its output when the terminal is narrow, so consider to use a redirect to file with dpkg --list 'linux-image-*' > d.txt and then less d.txt






        share|improve this answer














        Before proceeding, compare the output of uname -r (your current running kernel version) with these versions. If you see the same number, then those are not old kernels, but unsigned new kernels so don't delete them!





        Otherwise you can delete them using simply:



        sudo apt-get purge linux-image-unsigned-4.15.0-38-generic 
        linux-image-unsigned-4.15.0-39-generic linux-image-unsigned-4.15.0-42-generic


        These kernels came from the official repositories:





        • linux-image-unsigned-4.15.0-38-generic,


        • linux-image-unsigned-4.15.0-39-generic,


        • linux-image-unsigned-4.15.0-42-generic.




        My personal methods of removing kernels is one of the following:





        • use apt-get autoremove



          sudo apt-get autoremove



        • use purge-old-kernels from byobu package:



          sudo purge-old-kernels



        • remove non-installed kernels manually (if previous methods fail):



          sudo apt-get purge $(dpkg -l | grep 'linux-image-' | grep -v "^ii" | awk '{print $2}')



        Note: dpkg --list may truncate its output when the terminal is narrow, so consider to use a redirect to file with dpkg --list 'linux-image-*' > d.txt and then less d.txt







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 8 at 19:59









        Fabby

        26.1k1360159




        26.1k1360159










        answered Dec 8 at 9:34









        N0rbert

        20.3k54494




        20.3k54494






























            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.





            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099351%2fdpkg-list-linux-image-results-in-unknown-not-installed%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

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            Origin of the phrase “under your belt”?