LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2017, 06:48 PM   #1
Techuser
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Rep: Reputation: Disabled
Kernel does not upgrade.


Hi, my current kernel version is 3.19.0-32 and I am trying to upgrade it to 4.4.0-72 with Linux Mint 17.3

These are the issues:

-I have installed the new Kernel with Update Manager, but when I reboot it runs the old kernel.
-The output of "apt-get -y dist-upgrade" is:
Code:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
In this post ( https://superuser.com/questions/7605...rade-my-kernel ), a user says that this output means that I have the latest available Kernel version, but I obviously don't. Plus, I have already upgraded to the 4.4.0-72 kernel before (and then downgraded it back).
-I thought of selecting the new kernel version via the grub menu, but Grub menu does not show up after booting, though I changed the parameter GRUB_HIDDEN_TIMEOUT from 0 to 10 in /etc/default/grub. Holding shift key when the computer is booting does not help.

Can You help me solve this?
Thank You in advance!
 
Old 04-17-2017, 06:57 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,941
Blog Entries: 1

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
If using LiLo, re-install LiLo. Which is one of the most annoying things about lilo is needing to reinstall it every time the kernel changes.

For grub, make sure the grub.cfg is correct. If it's using a generic name like vmlinuz, then make sure that /vmlinuz and/or /boot/vmlinuz is a link to the kernel you want/expect to use. As well as the system map and initrd links. Or change it to be the actual file names in grub.cfg (gets overwritten by update-grub). Normally update-grub runs when a new kernel installs, but run it again to see if changes happen. You can use "e" while in grub to look at the entries before you boot them and F10 to boot it from "e". You can make changes while "e" is in effect and those will be used when you boot, but wont save to the grub.cfg. The down and dirty way to try things without bricking things (much).
 
Old 04-17-2017, 07:00 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862
I'm not sure whether the feature existed or has been backported to Mint 17.3, but do you have a View->Linux kernels option in the Update Manager?
 
Old 04-17-2017, 07:09 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,217

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Are the files for 4.x in /boot??
 
Old 04-17-2017, 07:36 PM   #5
Techuser
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I'm not sure whether the feature existed or has been backported to Mint 17.3, but do you have a View->Linux kernels option in the Update Manager?
Yes, I have that option.
 
Old 04-17-2017, 07:36 PM   #6
Techuser
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Are the files for 4.x in /boot??
Yes, they are.
 
Old 04-17-2017, 07:39 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862
Quote:
Originally Posted by Techuser View Post
Yes, I have that option.
Which of the kernels is listed as "active", and is 4.4.0-72 listed as "installed"?
 
Old 04-17-2017, 07:42 PM   #8
Techuser
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
If using LiLo, re-install LiLo. Which is one of the most annoying things about lilo is needing to reinstall it every time the kernel changes.
Not using LiLo.

Quote:
For grub, make sure the grub.cfg is correct. If it's using a generic name like vmlinuz, then make sure that /vmlinuz and/or /boot/vmlinuz is a link to the kernel you want/expect to use. As well as the system map and initrd links. Or change it to be the actual file names in grub.cfg (gets overwritten by update-grub).
Quote:
You can use "e" while in grub to look at the entries before you boot them and F10 to boot it from "e". You can make changes while "e" is in effect and those will be used when you boot, but wont save to the grub.cfg. The down and dirty way to try things without bricking things (much).
Sorry, my knowledge on Linux is very basic. How do I do all of this?


Quote:
Normally update-grub runs when a new kernel installs, but run it again to see if changes happen.
I ran it, rebooted the system and nothing happened.
 
Old 04-17-2017, 07:44 PM   #9
Techuser
LQ Newbie
 
Registered: Mar 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Which of the kernels is listed as "active", and is 4.4.0-72 listed as "installed"?
3.19.0-32 is listed as "active". And yes, 4.4.0-72 is "installed".
 
Old 04-17-2017, 08:03 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,941
Blog Entries: 1

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
$ ls -l /initrd.img
$ ls -l /vmlinuz
$ ls -l /boot/

When you get to the grub boot menu, move the selection to the one you want. Instead of pushing enter, press "e". Then either ESC to get back to the menu or F10 to boot this option.

$ sudo nano /boot/grub/grub.cfg

Code:
  echo    'Loading Linux 3.16.0-4-amd64 ...'
  linux   /boot/vmlinuz-3.16.0-4-amd64 root=UUID=11111111-1111-1111-1111-111111111111 ro  quiet
  echo    'Loading initial ramdisk ...'
  initrd  /boot/initrd.img-3.16.0-4-amd64
The above links to an actual file, the below links to a symlink.

Code:
  echo    'Loading Linux 3.16.0-4-amd64 ...'
  linux   vmlinuz root=UUID=11111111-1111-1111-1111-111111111111 ro  quiet
  echo    'Loading initial ramdisk ...'
  initrd  initrd.img
If you never see the grub menu, you might want to add a delay (timeout) other than 0 or -1.

FILE: /boot/grub/grub.cfg
Code:
set timeout=25
It's probably already in the grub.cfg, but set to a different value.
 
Old 04-17-2017, 08:28 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862Reputation: 2862
To see the grub menu at boot, try adding/setting the following lines in /etc/default/grub:

Code:
GRUB_TIMEOUT_STYLE="menu"

GRUB_TIMEOUT=10
After saving the file, run sudo update-grub
 
Old 04-18-2017, 03:53 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,217

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Seems some folks have other ways to access menu at boot time also. I was wondering about why shift didn't work. https://askubuntu.com/questions/1604...u-at-boot-time
Can try those or use the edits listed above.

This is what I might do but may not be right for you.
Might just download 4.10 or 4.11 kernel deb's and sudo dpkg -i *.deb and let dpkg fix it??? Three files are needed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulseaudio/Pavucontrol/Sound die after Upgrade/Kernel Upgrade mzsade Linux - Software 0 09-03-2015 02:44 PM
LXer: Linux Kernel 3.19 Has Reached To End With Last Release Kernel 3.19.8, Install/Upgrade Kernel 3 LXer Syndicated Linux News 0 05-15-2015 12:03 AM
[SOLVED] Upgrade to Kernel 3.2.45 - upgrade initrd and reinstall LILO? qlands Slackware 1 07-03-2013 02:15 AM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 05:07 PM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration