Is that a safe thing to do? i would assume anything over lv 3 was to be avoided unless there is a specific reason to enable them?TheOne wrote:The new easy way is:
Menu --> Update Manager ---> Edit ---> Preferences ---> Mark everything, including Level 4 and 5
Reload updates and update kernel.
How To: Upgrade your kernel, painlessly.
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Re: How To: Upgrade your kernel, painlessly.
- tdockery97
- Level 14
- Posts: 5058
- Joined: Sun Jan 10, 2010 8:54 am
- Location: Mt. Angel, Oregon
Re: How To: Upgrade your kernel, painlessly.
The update levels are there to make it easy for less experienced individuals to keep applications updated while basically leaving the underlying system the same, thus less chance of suffering breakage.soldier1st wrote:Is that a safe thing to do? i would assume anything over lv 3 was to be avoided unless there is a specific reason to enable them?
Doing all available updates won't make your pc explode. Everyone (millions) running regular Ubuntu do complete updates all the time. Granted, once in a great while you may have to seek help here if something breaks. Another thing to keep in mind is that when a kernel is updated, the old kernel is still kept in the system, and at the Grub Boot Screen you can "drop back" to the previous kernel if the new one causes problems.
Mint Cinnamon 20.1
Re: How To: Upgrade your kernel, painlessly.
Code: Select all
#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
import collections
import datetime
import lxml.html
import re
import os
import argparse
import subprocess
from pkg_resources import parse_version
arch='amd64'
use_rc_versions=False
kernelurl="http://kernel.ubuntu.com/~kernel-ppa/mainline/"
kinfo=collections.namedtuple('KernelInfo', ['datetime', 'version', 'link'])
def dl_file(url):
f = urllib2.urlopen(url)
with open(os.path.basename(url), "wb") as dlf:
dlf.write(f.read())
def fetch_latest(kernelurl, use_rc_versions):
r = urllib2.urlopen(kernelurl)
doc=lxml.html.document_fromstring(r.read())
content=doc.text_content()
reg_ex=re.compile(r'v([\d.]+)(-rc[\d]+)?-([^/]+)/(.+?)\s\s')
d=[]
for m in (m for m in (reg_ex.match(x) for x in content.split('\n') if x) if m):
version, isrc, code, date = m.groups()
if (not use_rc_versions) and isrc: continue
version = '%s%s' %(version, (isrc or ''))
date = datetime.datetime.strptime(date, '%d-%b-%Y %H:%M')
d.append(kinfo(date, parse_version(version), 'v%s-%s/' %(version, code)))
return max(d, key=lambda x:x.version)
def dl_debs(url, arch, no_download):
r2 = urllib2.urlopen(url)
doc2=lxml.html.document_fromstring(r2.read())
content=doc2.text_content()
reg_ex2=re.compile('linux-(headers|image)-(.+?)_(amd64|i386|all)\.deb')
for line in content.split('\n'):
m=reg_ex2.match(line)
if m:
if m.group(1)=='headers':
if m.group(3)=='all':
headers_all=m.group(0)
elif m.group(3)==arch:
headers_arch=m.group(0)
elif m.group(1)=='image' and m.group(3)==arch:
image_arch=m.group(0)
for f in [headers_all, headers_arch, image_arch]:
print 'downloading: %s' %f
if not no_download:
dl_file(url+f)
return [headers_all, headers_arch, image_arch]
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-m', '--machine',
help="use this kernel machine, default: %s" %arch,
action="store",
default=arch)
parser.add_argument('--kernel-ppa-url',
help="where to fetch ubuntu kernels, default: %s" %kernelurl,
action="store",
default=kernelurl)
parser.add_argument('--use-rc',
help="allow updating to rc versions",
action="store_true")
parser.add_argument('--no-download',
help="do not download(list only) files",
action="store_true")
parser.add_argument('--install',
help="install the downloaded kernels. note: run with root privileges",
action="store_true")
args=parser.parse_args()
os.chdir('/tmp')
latest = fetch_latest(args.kernel_ppa_url, args.use_rc)
print 'the latest linux kernel version is : \n\t%s\n' %latest.link.strip('/')
debs=dl_debs(args.kernel_ppa_url + latest.link, args.machine, args.no_download)
if args.install:
subprocess.call(['dpkg', '-E', '--install'] + debs)
it just search http://kernel.ubuntu.com/~kernel-ppa/mainline/ for the latest version and downloads it.
you need to specify your cpu machine architecture to run(default is amd64), with -m amd64 or -m i386
with --use-rc flag, you can update to rc versions(release candidates).
you need --install flag, to install the kernels downloaded.
with --no-download flag, it does not download anything.
requires lxml and distribute to run.
save above as 'update-kernel.py'.
then do
Code: Select all
chmod +x update-kernel.py
sudo ./update-kernel.py -m amd64 --use-rc --install
Re: How To: Upgrade your kernel, painlessly.
I upgrade Mint 15 Cinnamon to 3.10 doing the following:
After I reboot and login, it takes a long time for the desktop to come up and when it finally does the icon theme is different and the GNOME theme looks like some kind of default (very square and blocky) and I cannot use tools such as Display, it just runs then disappears. I cannot change the desktop them so something is broken. I'm upgrading the kernel so I can use my Displaylink USB Video adapter and 3.9+ kernels have support for it. Any ideas?
Code: Select all
wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-saucy/linux-headers-3.10.0-031000_3.10.0-031000.201306301935_all.deb
wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-saucy/linux-headers-3.10.0-031000-generic_3.10.0-031000.201306301935_amd64.deb
wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-saucy/linux-image-3.10.0-031000-generic_3.10.0-031000.201306301935_amd64.deb
Code: Select all
sudo dpkg -i *.deb
Re: How To: Upgrade your kernel, painlessly.
Just used the method described in the first post and it worked perfectly to update the kernel to 3.12.9 in Mint 16 Cinnamon.
Re: How To: Upgrade your kernel, painlessly.
I used this method again this morning to update to 3.12.10, no problems again.
Re: How To: Upgrade your kernel, painlessly.
Be warned; with the 3.16 kernel there are issues for laptop users and backlight adjustment. I have to keep rebooting to the 3.13 official mint kernel in order to get my brightness back.
More information: https://bugs.launchpad.net/ubuntu/+sour ... ug/1341108
More information: https://bugs.launchpad.net/ubuntu/+sour ... ug/1341108
Re: How To: Upgrade your kernel, painlessly.
With LM 17, updating the kernel to official Ubuntu 14.04/LM 17 kernels is very easy through Mint Update(Update Manager). Click on 'View' and then 'Linux Kernels' and it will display the kernels that are available and installed and all you have to do is click on the install button below the kernel number. If you updated to a 3.15, it will let you uninstall those also
Re: How To: Upgrade your kernel, painlessly.
Looking after a bunch of Intel systems of last few generations I've for some time downloaded a single copy of latest Liquorix' amd64 kernel release and installed it locally.
The Liquorix guys openly said they don't support Ubuntu (which the non-LMDE ''mainstream' Mint is based on) but only just recently the config changes in their 3.16.5 release broke compatibility with Mint 17 LTS.
It was great as long as it lasted!
Still, the combined Mint 17 + buntu 14.04 LTS userbase is not insignificant and many might benefit from running something newer than 3.13 from early 2014.
I'm now testing waters with manually downloaded kernel (3.17.1) from the Ubuntu kernel-ppa mainline branch (no probs so far) but is there anything that is built specifically for the LTS base?
The Liquorix guys openly said they don't support Ubuntu (which the non-LMDE ''mainstream' Mint is based on) but only just recently the config changes in their 3.16.5 release broke compatibility with Mint 17 LTS.
It was great as long as it lasted!
Still, the combined Mint 17 + buntu 14.04 LTS userbase is not insignificant and many might benefit from running something newer than 3.13 from early 2014.
I'm now testing waters with manually downloaded kernel (3.17.1) from the Ubuntu kernel-ppa mainline branch (no probs so far) but is there anything that is built specifically for the LTS base?
Re: How To: Upgrade your kernel, painlessly.
Thanks for the Tutorial it worked like a charm
Re: How To: Upgrade your kernel, painlessly.
I'm not sure what kernel I would need or if I should even upgrade or not. I have a 64 bit machine with a duo and 1G of RAM, but running a Mint 17.3 32 bit.
Re: How To: Upgrade your kernel, painlessly.
The short answer is, if nothing is amiss, you really do not need to change kernels. OTOH, if you're feeling adventuresome, people seem to learn best by trying something new.lint wrote:I'm not sure what kernel I would need or if I should even upgrade or not. I have a 64 bit machine with a duo and 1G of RAM, but running a Mint 17.3 32 bit.
IMHO, a far more useful step than changing kernels would be to increase your RAM.
Re: How To: Upgrade your kernel, painlessly.
I'm doing that as well; for about 15 $ with shipping too. So, the 64 bit won't make my machine "powerful" as a friend of mine has claimed?Dr G wrote:
IMHO, a far more useful step than changing kernels would be to increase your RAM.
Re: How To: Upgrade your kernel, painlessly.
Powerful? Not really, but that assessment depends upon what you are doing with it. The extra memory should yield a noticeable improvement in the system's responsiveness. If you're adding a *lot* of memory, 64 bit could be a wise additional step. But, I'm guessing you won't be adding that much.lint wrote:I'm doing that as well; for about 15 $ with shipping too. So, the 64 bit won't make my machine "powerful" as a friend of mine has claimed?Dr G wrote:
IMHO, a far more useful step than changing kernels would be to increase your RAM.
Re: How To: Upgrade your kernel, painlessly.
You are correct; the 2G RAM stick is the maximum for what I have. I thank you for confirming that the 32 bit is the better option at present.Dr G wrote:Powerful? Not really, but that assessment depends upon what you are doing with it. The extra memory should yield a noticeable improvement in the system's responsiveness. If you're adding a *lot* of memory, 64 bit could be a wise additional step. But, I'm guessing you won't be adding that much.lint wrote:I'm doing that as well; for about 15 $ with shipping too. So, the 64 bit won't make my machine "powerful" as a friend of mine has claimed?Dr G wrote:
IMHO, a far more useful step than changing kernels would be to increase your RAM.
Re: How To: Upgrade your kernel, painlessly.
Hello Gentlemen,
I have a pretty short question and before I embark on the risky adventure full of cliffs and traps knowns as kernel installation. I use LM 17.3 x64, when I go to the update Manager and click on View then Linux Kernels, the one I am seeing as being loaded is 3.19.0-32. I see there's a lot of guides for installing kernel 3.19.1, 3.19.2, 3.19.3, I've seen this because in the Update Manager, they do not appear after kernel 3.19.0-61, it jumps to kernel 4.2.0-18 and has a dozen more 4.x.x kernels.
So what is one to do (a higher kernel means being able to install higher versions of certain software is my understanding, tell me if I'm wrong). I don't feel safe at jumping from Kernel 3.x.x to version 4 just now, certainly when the system does not seem to want me to particularly do so (not appearing in the updates ever, and I have all 5 levels of updates allowed to appear.
Should I install 3.1, 3.2, 3.3 or these are useless if I can install a version 4 kernel ? Please help this seasoned but not yet professional Linux user
I have a pretty short question and before I embark on the risky adventure full of cliffs and traps knowns as kernel installation. I use LM 17.3 x64, when I go to the update Manager and click on View then Linux Kernels, the one I am seeing as being loaded is 3.19.0-32. I see there's a lot of guides for installing kernel 3.19.1, 3.19.2, 3.19.3, I've seen this because in the Update Manager, they do not appear after kernel 3.19.0-61, it jumps to kernel 4.2.0-18 and has a dozen more 4.x.x kernels.
So what is one to do (a higher kernel means being able to install higher versions of certain software is my understanding, tell me if I'm wrong). I don't feel safe at jumping from Kernel 3.x.x to version 4 just now, certainly when the system does not seem to want me to particularly do so (not appearing in the updates ever, and I have all 5 levels of updates allowed to appear.
Should I install 3.1, 3.2, 3.3 or these are useless if I can install a version 4 kernel ? Please help this seasoned but not yet professional Linux user
Re: How To: Upgrade your kernel, painlessly.
Good day, madam,
Mostly a newer kernel means better hardware support. If all is going well with your machine right now, you do not experience crashes or freezes, and all your hardware is supported, a newer kernel will not bring you any noticeable advantages. If there are no problems to solve, you don't need to upgrade your kernel.
So before you ask: How to upgrade my kernel, the question to ask is: Why to upgrade my kernel.
By the way, it's better to start your own thread for a new question. This one is pretty old and part of it is very outdated.
You're wrong.fruitkiller wrote:So what is one to do (a higher kernel means being able to install higher versions of certain software is my understanding, tell me if I'm wrong).
Mostly a newer kernel means better hardware support. If all is going well with your machine right now, you do not experience crashes or freezes, and all your hardware is supported, a newer kernel will not bring you any noticeable advantages. If there are no problems to solve, you don't need to upgrade your kernel.
So before you ask: How to upgrade my kernel, the question to ask is: Why to upgrade my kernel.
From my understanding, and I too may be wrong, in Mint 17.X newer kernels are not shown as an update, no matter which levels you have made visible.fruitkiller wrote: the system does not seem to want me to particularly do so (not appearing in the updates ever, and I have all 5 levels of updates allowed to appear.)
By the way, it's better to start your own thread for a new question. This one is pretty old and part of it is very outdated.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: How To: Upgrade your kernel, painlessly.
Here is an old article, that still applies today:
http://www.makeuseof.com/tag/5-reasons- ... nel-linux/
http://www.makeuseof.com/tag/5-reasons- ... nel-linux/