[solved!] Re: clean out old kernel versions?

Robert Heller heller at deepsoft.com
Mon Mar 8 00:10:13 UTC 2021


At Sun, 7 Mar 2021 15:51:42 -0800 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> On Sun, 7 Mar 2021 22:14:48 +0000
> Colin Law <clanlaw at gmail.com> wrote:
> 
> > On Sun, 7 Mar 2021 at 20:35, Dave Stevens <geek at uniserve.com> wrote:
> > >
> > > On Sun, 7 Mar 2021 20:49:52 +0100
> > > Tom H <tomh0665 at gmail.com> wrote:
> > >  
> > > > On Sun, Mar 7, 2021 at 6:05 PM Dave Stevens <geek at uniserve.com>
> > > > wrote:  
> > > > > On Sun,  7 Mar 2021 09:13:52 -0500 (EST) Robert Heller
> > > > > <heller at deepsoft.com> wrote:  
> > > > >>
> > > > >> Have you *ever* run 'sudo apt autoremove'?  
> > > > >
> > > > > yes like this:
> > > > >
> > > > > $ sudo apt autoremove
> > > > > [sudo] password for user:
> > > > > Reading package lists... Done
> > > > > Building dependency tree
> > > > > Reading state information... Done
> > > > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> > > > > user at user-Satellite-A100 /boot $
> > > > >
> > > > >  /boot $ ls -l | wc
> > > > >     440    3953   31232
> > > > > user at user-Satellite-A100 /boot $  
> > > >
> > > > What the output of "ls /boot/vmlinuz-*"  
> > >
> > > /boot $ ls /boot/vmlinuz-*
> > > /boot/vmlinuz-4.4.0-130-generic  /boot/vmlinuz-4.4.0-164-generic  /boot/vmlinuz-4.4.0-197-generic  /boot/vmlinuz-4.4.0-66-generic
> > > /boot/vmlinuz-4.4.0-131-generic  /boot/vmlinuz-4.4.0-165-generic  /boot/vmlinuz-4.4.0-200-generic  /boot/vmlinuz-4.4.0-70-generic
> > > /boot/vmlinuz-4.4.0-133-generic  /boot/vmlinuz-4.4.0-166-generic  /boot/vmlinuz-4.4.0-201-generic  /boot/vmlinuz-4.4.0-71-generic
> > > /boot/vmlinuz-4.4.0-134-generic  /boot/vmlinuz-4.4.0-169-generic  /boot/vmlinuz-4.4.0-203-generic  /boot/vmlinuz-4.4.0-72-generic
> > > /boot/vmlinuz-4.4.0-135-generic  /boot/vmlinuz-4.4.0-170-generic  /boot/vmlinuz-4.4.0-21-generic   /boot/vmlinuz-4.4.0-75-generic
> > > /boot/vmlinuz-4.4.0-137-generic  /boot/vmlinuz-4.4.0-171-generic  /boot/vmlinuz-4.4.0-28-generic   /boot/vmlinuz-4.4.0-77-generic
> > > /boot/vmlinuz-4.4.0-138-generic  /boot/vmlinuz-4.4.0-173-generic  /boot/vmlinuz-4.4.0-31-generic   /boot/vmlinuz-4.4.0-78-generic
> > > /boot/vmlinuz-4.4.0-139-generic  /boot/vmlinuz-4.4.0-174-generic  /boot/vmlinuz-4.4.0-34-generic   /boot/vmlinuz-4.4.0-79-generic
> > > /boot/vmlinuz-4.4.0-140-generic  /boot/vmlinuz-4.4.0-176-generic  /boot/vmlinuz-4.4.0-36-generic   /boot/vmlinuz-4.4.0-81-generic
> > > /boot/vmlinuz-4.4.0-141-generic  /boot/vmlinuz-4.4.0-177-generic  /boot/vmlinuz-4.4.0-38-generic   /boot/vmlinuz-4.4.0-83-generic
> > > /boot/vmlinuz-4.4.0-142-generic  /boot/vmlinuz-4.4.0-178-generic  /boot/vmlinuz-4.4.0-43-generic   /boot/vmlinuz-4.4.0-87-generic
> > > /boot/vmlinuz-4.4.0-143-generic  /boot/vmlinuz-4.4.0-179-generic  /boot/vmlinuz-4.4.0-45-generic   /boot/vmlinuz-4.4.0-89-generic
> > > /boot/vmlinuz-4.4.0-145-generic  /boot/vmlinuz-4.4.0-184-generic  /boot/vmlinuz-4.4.0-47-generic   /boot/vmlinuz-4.4.0-92-generic
> > > /boot/vmlinuz-4.4.0-146-generic  /boot/vmlinuz-4.4.0-185-generic  /boot/vmlinuz-4.4.0-51-generic   /boot/vmlinuz-4.4.0-93-generic
> > > /boot/vmlinuz-4.4.0-148-generic  /boot/vmlinuz-4.4.0-186-generic  /boot/vmlinuz-4.4.0-53-generic   /boot/vmlinuz-4.4.0-96-generic
> > > /boot/vmlinuz-4.4.0-150-generic  /boot/vmlinuz-4.4.0-187-generic  /boot/vmlinuz-4.4.0-57-generic   /boot/vmlinuz-4.4.0-97-generic
> > > /boot/vmlinuz-4.4.0-151-generic  /boot/vmlinuz-4.4.0-189-generic  /boot/vmlinuz-4.4.0-59-generic   /boot/vmlinuz-4.4.0-98-generic
> > > /boot/vmlinuz-4.4.0-154-generic  /boot/vmlinuz-4.4.0-190-generic  /boot/vmlinuz-4.4.0-62-generic
> > > /boot/vmlinuz-4.4.0-157-generic  /boot/vmlinuz-4.4.0-193-generic  /boot/vmlinuz-4.4.0-63-generic
> > > /boot/vmlinuz-4.4.0-161-generic  /boot/vmlinuz-4.4.0-194-generic  /boot/vmlinuz-4.4.0-64-generic
> > > user at user-Satellite-A100 /boot $
> > >
> > > like that  
> > 
> > That is going to take a long time to clear up on a slow machine.  Each
> > time it removes one it has to rebuild the boot stuff.  I would leave
> > it and go to bed (or whatever is appropriate for your timezone at the
> > moment.
> > 
> > Colin
> > 
> it went a lot faster at the end so I waited for it. ran updates, none;
> rebooted, worked fine. Much faster boot too. Thanks to all.


You probably should install linux-image-generic -- this should intall the 
scripts that will implement removing old kernels as you install updated 
kernels.



> 
> Dave
> 
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                  




More information about the ubuntu-users mailing list