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
package-management kernel dpkg
add a comment |
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
package-management kernel dpkg
Output ofdpkg -l
looks truncated. Please redirect its output to text file withdpkg --list 'linux-image-*' > d.txt
and add contents ofd.txt
to the question.
– N0rbert
Dec 8 at 9:30
Q edited as per your request. ;-)
– Fabby
Dec 8 at 9:34
add a comment |
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
package-management kernel dpkg
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
package-management kernel dpkg
edited Dec 8 at 10:10
asked Dec 8 at 9:19
Fabby
26.1k1360159
26.1k1360159
Output ofdpkg -l
looks truncated. Please redirect its output to text file withdpkg --list 'linux-image-*' > d.txt
and add contents ofd.txt
to the question.
– N0rbert
Dec 8 at 9:30
Q edited as per your request. ;-)
– Fabby
Dec 8 at 9:34
add a comment |
Output ofdpkg -l
looks truncated. Please redirect its output to text file withdpkg --list 'linux-image-*' > d.txt
and add contents ofd.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
add a comment |
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
frombyobu
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
add a comment |
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
frombyobu
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
add a comment |
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
frombyobu
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
add a comment |
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
frombyobu
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
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
frombyobu
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
edited Dec 8 at 19:59
Fabby
26.1k1360159
26.1k1360159
answered Dec 8 at 9:34
N0rbert
20.3k54494
20.3k54494
add a comment |
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%2f1099351%2fdpkg-list-linux-image-results-in-unknown-not-installed%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
Output of
dpkg -l
looks truncated. Please redirect its output to text file withdpkg --list 'linux-image-*' > d.txt
and add contents ofd.txt
to the question.– N0rbert
Dec 8 at 9:30
Q edited as per your request. ;-)
– Fabby
Dec 8 at 9:34