Not using latest kernel even after updating

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

That could explain the problem :?

Out of curiosity what does dpkg -S $(which update-grub) show :?:
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

WharfRat wrote: Tue Oct 23, 2018 10:39 pm That could explain the problem :?

Out of curiosity what does dpkg -S $(which update-grub) show :?:

Code: Select all

dpkg -S $(which update-grub)
grub2-common: /usr/sbin/update-grub
I've uninstalled that grub-customizer, updated grub and rebooted.
Still the same.

Code: Select all

uname -r
4.15.0-33-generic
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

What about ls -lh /{boot,lib/modules}
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

WharfRat wrote: Tue Oct 23, 2018 10:47 pm What about ls -lh /{boot,lib/modules}

Code: Select all

ls -lh /{boot,lib/modules}
/boot:
total 214M
-rw-r--r-- 1 root root 1.5M Apr 24  2018 abi-4.15.0-20-generic
-rw-r--r-- 1 root root 1.5M Aug 15 18:20 abi-4.15.0-33-generic
-rw-r--r-- 1 root root 1.5M Sep 24 19:38 abi-4.15.0-36-generic
-rw-r--r-- 1 root root 1.5M Oct 10 14:50 abi-4.15.0-38-generic
-rw-r--r-- 1 root root 212K Apr 24  2018 config-4.15.0-20-generic
-rw-r--r-- 1 root root 212K Aug 15 18:20 config-4.15.0-33-generic
-rw-r--r-- 1 root root 212K Sep 24 19:38 config-4.15.0-36-generic
-rw-r--r-- 1 root root 212K Oct 10 14:50 config-4.15.0-38-generic
drwx------ 3 root root 2.0K Jan  1  1970 efi
drwxr-xr-x 6 root root 4.0K Oct 24 08:08 grub
-rw-r--r-- 1 root root  56M Oct 10 16:05 initrd.img-4.15.0-33-generic
-rw-r--r-- 1 root root  56M Oct 10 11:21 initrd.img-4.15.0-36-generic
-rw-r--r-- 1 root root  56M Oct 23 06:23 initrd.img-4.15.0-38-generic
-rw-r--r-- 1 root root 179K Jan 28  2016 memtest86+.bin
-rw-r--r-- 1 root root 181K Jan 28  2016 memtest86+.elf
-rw-r--r-- 1 root root 181K Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root    0 Apr 24  2018 retpoline-4.15.0-20-generic
-rw-r--r-- 1 root root    0 Aug 15 18:20 retpoline-4.15.0-33-generic
-rw-r--r-- 1 root root    0 Sep 24 19:38 retpoline-4.15.0-36-generic
-rw-r--r-- 1 root root    0 Oct 10 14:50 retpoline-4.15.0-38-generic
-rw------- 1 root root 3.9M Apr 24  2018 System.map-4.15.0-20-generic
-rw------- 1 root root 3.9M Aug 15 18:20 System.map-4.15.0-33-generic
-rw------- 1 root root 3.9M Sep 24 19:38 System.map-4.15.0-36-generic
-rw------- 1 root root 3.9M Oct 10 14:50 System.map-4.15.0-38-generic
-rw------- 1 root root 7.9M Aug 15 18:27 vmlinuz-4.15.0-33-generic
-rw------- 1 root root 7.9M Sep 24 21:24 vmlinuz-4.15.0-36-generic
-rw------- 1 root root 7.9M Oct 10 16:13 vmlinuz-4.15.0-38-generic

/lib/modules:
total 16K
drwxr-xr-x 5 root root 4.0K Oct  2 14:48 4.15.0-20-generic
drwxr-xr-x 5 root root 4.0K Oct 10 16:05 4.15.0-33-generic
drwxr-xr-x 5 root root 4.0K Oct 10 11:20 4.15.0-36-generic
drwxr-xr-x 5 root root 4.0K Oct 23 06:22 4.15.0-38-generic
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

Open update manager, kernels and remove 4.15.0-20-generic.

There's no vmlinuz or initrd.img for it :?
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

WharfRat wrote: Tue Oct 23, 2018 10:55 pm Open update manager, kernels and remove 4.15.0-20-generic.

There's no vmlinuz or initrd.img for it :?
4.15.0-20 is not installed in my system.
User avatar
all41
Level 19
Level 19
Posts: 9523
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Not using latest kernel even after updating

Post by all41 »

You have some top notch help offered here.
I would just say that there is a dominant grub. And this dominate grub is the one last addressed as:
sudo install-grub.
Find where all grub instances are installed via this terminal inquiry:

Code: Select all

 sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n  2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case  \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
Be sure to copy/paste the entire inquiry.
When booted into Mint then enter:
sudo install grub /dev sdX
Where sdX is the actual location
Last edited by all41 on Wed Oct 24, 2018 11:47 am, edited 1 time in total.
Everything in life was difficult before it became easy.
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

all41 wrote: Tue Oct 23, 2018 11:06 pm You have some top notch help offered her.
I would just say that there is a dominant grub. And this dominate grub is the one last addressed as:
sudo install-grub.
Find where all grub instances are installed via this terminal inquiry:

Code: Select all

 sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n  2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case  \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
Be sure to copy/paste the entire inquiry.
When booted into Mint then enter:
sudo install grub /dev sdX
Where sdX is the actual location

Code: Select all

  sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n  2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case  \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
[sudo] password for loozer: 
/dev/sda: No GRUB 00
/dev/sda1: No GRUB 6f6f
/dev/sda2: No GRUB 55aa
/dev/sda3: No GRUB f6c1
/dev/sda4: No GRUB 55aa
/dev/sda5: No GRUB 8cd
/dev/sda6: No GRUB 00
/dev/sda7: No GRUB 00

My linux partition is /dev/sda7. So i should install it in sda7 right ?
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

UnwantedArun wrote: Tue Oct 23, 2018 11:05 pm
4.15.0-20 is not installed in my system.
You have remnant leftover files and a /lib/modules folder for 4.15.0-20

Does this return anything
dpkg -S /boot/{System.map-4.15.0-20-generic,retpoline-4.15.0-20-generic,config-4.15.0-20-generic,abi-4.15.0-20-generic}|awk '{print $1}'|uniq
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

WharfRat wrote: Tue Oct 23, 2018 11:29 pm
UnwantedArun wrote: Tue Oct 23, 2018 11:05 pm
4.15.0-20 is not installed in my system.
You have remnant leftover files and a /lib/modules folder for 4.15.0-20

Does this return anything
dpkg -S /boot/{System.map-4.15.0-20-generic,retpoline-4.15.0-20-generic,config-4.15.0-20-generic,abi-4.15.0-20-generic}|awk '{print $1}'|uniq

Code: Select all

dpkg -S /boot/{System.map-4.15.0-20-generic,retpoline-4.15.0-20-generic,config-4.15.0-20-generic,abi-4.15.0-20-generic}|awk '{print $1}'|uniq
dpkg-query: no path found matching pattern /boot/System.map-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/retpoline-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/config-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/abi-4.15.0-20-generic
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

Guys... Please find a solution !!!
DAMIEN1307

Re: Not using latest kernel even after updating

Post by DAMIEN1307 »

Code: Select all

sudo apt purge 4.15.0-20
Kernel and other Cleanups after Deletions

Code: Select all

sudo apt autoremove
do these one at a time, dont worry if the first "dpkg -l" says error etc...just means nothing is there is all...

Code: Select all

dpkg -l | grep '^rc' | awk '{print $2}' | sudo xargs dpkg --purge

Code: Select all

 dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge
then reboot and then see if you can finally get the latest kernel to take to your system.
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

What about dpkg -S /boot
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Not using latest kernel even after updating

Post by Flemur »

UnwantedArun wrote: Tue Oct 23, 2018 10:35 pmI'm sorry. It wasn't installed from software manager. I think.
it is from this ppa

Code: Select all

ppa:danielrichter2007/grub-customizer
I wonder if grub-customizer changed your default boot OS (or kernel) in the /etc/default/grub file - ?
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Not using latest kernel even after updating

Post by thx-1138 »

...assuming GC is the culprit, it does way more than modify the contents of /etc/default/grub...
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"

what is this line ?

and this code

Code: Select all

### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Linux Mint" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a632623b-d5fe-4a70-999b-1eb856fa3104' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  a632623b-d5fe-4a70-999b-1eb856fa3104
	else
	  search --no-floppy --fs-uuid --set=root a632623b-d5fe-4a70-999b-1eb856fa3104
	fi
	        linux	/boot/vmlinuz-4.15.0-33-generic root=UUID=a632623b-d5fe-4a70-999b-1eb856fa3104 ro  quiet splash pcie_aspm=off $vt_handoff
	initrd	/boot/initrd.img-4.15.0-33-generic
}
### END /etc/grub.d/40_custom_proxy ###
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

What is the content of cat /etc/grub.d/40_custom
UnwantedArun

Re: Not using latest kernel even after updating

Post by UnwantedArun »

WharfRat wrote: Wed Oct 24, 2018 2:50 pm What is the content of cat /etc/grub.d/40_custom
cat /etc/grub.d/40_custom
cat: /etc/grub.d/40_custom: No such file or directory
WharfRat

Re: Not using latest kernel even after updating

Post by WharfRat »

What's in that folder ls -lh /etc/grub.d
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Not using latest kernel even after updating

Post by Flemur »

thx-1138 wrote: Wed Oct 24, 2018 2:04 pm ...assuming GC is the culprit, it does way more than modify the contents of /etc/default/grub...
I never use that stuff (I have a hand-made grub.cfg file) so don't know much about it, but I wonder if the solution is to purge/reinstall these packages:

Code: Select all

grub-common
grub2-common
grub-pc
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Beginner Questions”