Ron Jones
April 24th, 2013, 03:15 PM
I'm running Ubuntu Server 12.04.2 LTS on three servers.
A couple months back, I upgraded the Kernels using "sudo apt-get dist-upgrade"
In each case, I went back and issued the following commands to clean out the old kernels:
sudo dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove
To make sure nothing crazy would happen.
Then, the real thing:
sudo dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
sudo update-grub
It removed the old kernels as I anticipated.
All is well with two of them. However, on the third server, I neglected to reboot before issuing the above commands. As a result, I've got two servers running Kernel 3.2.0-40-generic x86_64, while the third is running 3.2.0-37-generic x86_64.
Don't get me wrong, all three are running like the proverbial sewing machine. However, I must have inadvertently made a change to something that now prevents server #3 from upgrading to the latest LTS kernel.
Does anyone have any suggestions for troubleshooting this?
thanks,
Jones
A couple months back, I upgraded the Kernels using "sudo apt-get dist-upgrade"
In each case, I went back and issued the following commands to clean out the old kernels:
sudo dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove
To make sure nothing crazy would happen.
Then, the real thing:
sudo dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
sudo update-grub
It removed the old kernels as I anticipated.
All is well with two of them. However, on the third server, I neglected to reboot before issuing the above commands. As a result, I've got two servers running Kernel 3.2.0-40-generic x86_64, while the third is running 3.2.0-37-generic x86_64.
Don't get me wrong, all three are running like the proverbial sewing machine. However, I must have inadvertently made a change to something that now prevents server #3 from upgrading to the latest LTS kernel.
Does anyone have any suggestions for troubleshooting this?
thanks,
Jones