[clug] [anne.a.gunn at gmail.com: Ubuntu problem] -> removing older kernels

Bryan Kilgallin bryan at netspeed.com.au
Sat Aug 15 16:48:04 UTC 2015


I wasn't able to make that script go, Scott:

> should have been:-
> sudo apt-get -s remove `dpkg --get-selections|grep
> 'linux-image\|linux-headers'|grep -v 3.13.0-61-generic` | cut -f1

So in a terminal window under bash, I entered as follows.

sudo apt-get -s remove `dpkg --get-selections|grep 
'linux-image\|linux-headers'|grep -v 3.13.0-61-generic` | cut -f1

Which output thus.

{Reading package lists...
Building dependency tree...
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
E: Unable to locate package install
Reading state information...}

> tl:dr?

Bash couldn't comprehend that!

> If you only have a couple of packages to remove do them manually

I don't know how to do that.

-- 
www.netspeed.com.au/bryan/
==========================




More information about the linux mailing list