[sf-lug] NEED INFO ABOUT BOOT SECTOR, SPACE LIMITS

Daniel Gimpelevich daniel at gimpelevich.san-francisco.ca.us
Mon Jul 31 17:12:11 PDT 2017


On Mon, 2017-07-31 at 16:50 -0700, Rick Moen wrote:
> Less drastic cure follows.

Personally, I use a much more abbreviated sequence:

1) uname -r
This tells you the version you are booted into.

2) ls /lib/modules
This tells you versions that have some semblance of installation from
Ubuntu packages.

3) dpkg -l "*3.13.0-108*" | cat
Repeat for all the versions listed in step 2, omitting the "-generic"
suffix, and piping through cat to defeat line length detection, like
seen here. Skip the version listed in step 1, and also whichever version
in step 2 was the most recent, if different. This tells you the packages
that should be purged.

4) sudo dpkg -P linux-headers-3.13.0-108 linux-headers-3.13.0-108-generic linux-image-3.13.0-108-generic linux-image-extra-3.13.0-108-generic
This purges the above packages. You may usually include all the ones
listed in step 3. Note that this is the only step that needs sudo.

That's all, folks!
(Do NOT purge packages with the version in step 1 until you boot with a
different kernel.)




More information about the sf-lug mailing list