Choose style:

Author Topic: Kernel Selection Tool in Updater Manager does not work. (SOLVED)  (Read 1714 times)

0 Members and 1 Guest are viewing this topic.

Offline Incandescent

  • nOOb
  • *
  • Posts: 13
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
Having just installed Peppermint a couple days ago, I'd been playing around with the system when I happened to notice that the Kernel selection tool in the Mint updater doesn't appear to be functional.

Is this intentional, or am I simply experiencing a bug?

If helpful, the hardware used is a Thinkpad X201 with an Intel i5 M540 CPU and Intel integrated graphics. I experienced this issue before and after a full update, and a reboot.

Here's a screenshot showing the issue.



« Last Edit: August 12, 2016, 12:42:25 am by Incandescent »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #1 on: August 11, 2016, 04:03:50 am »
Hi Incandescent, how's it going?  I'm not sure if it's a bug, or if it's deliberate.  I've only ever manually installed kernels.  Even then, only when it's absolutely necessary.  When it come to kernels, new, bright and shiny doesn't mean it's going to work any better.  If everything is working, use the default kernel is what I go by.  If it ain't broken, don't fix it :)).  For a better understanding of your system, please run the following command in a terminal window and post back the output:
Code: [Select]
inxi -F
Thanks  ;).
« Last Edit: August 11, 2016, 04:19:13 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26276
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #2 on: August 11, 2016, 04:34:15 am »
Both .. it's a (kind of) bug that I haven't bothered to fix because I kinda like that it's semi-broken from a support standpoint ;)

MintUpdate only contains the option to install kernel versions because Mint lock the kernel from automatic updates, we do not lock the kernel so I see no benefit to it, if you stay up to date it would only ever be offering previous kernels and if you need an earlier kernel for some reason such as a regression in an update, then MintUpdate is NOT the best method to apply it, that would be in GRUB where future updates won't break it again.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Incandescent

  • nOOb
  • *
  • Posts: 13
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #3 on: August 11, 2016, 04:37:51 am »
Hi Incandescent, how's it going?  I'm not sure if it's a bug, or if it's deliberate.  I've only ever manually installed kernels.  Even then, only when it's absolutely necessary.  When it come to kernels, new, bright and shiny doesn't mean it's going to work any better.  If everything is working, use the default kernel is what I go by.  If it ain't broken, don't fix it :)).  For a better understanding of your system, please run the following command in a terminal window and post back the output:
Code: [Select]
inxi -F
Thanks  ;).

I'm not doin' to bad, could always be worse.  :) Hows your week been?

Aye, changing kernels is risky business, I'll definitely be sticking with the stock one for this ol' thinkpad. Only reason I checked to see if it was working, is that I'll probably be using it on my gaming desktop for when I upgrade to a new AMD card. The newer kernels are absolutely crucial for those to able to access the new open-source AMDGPU drivers.

Here's the output of that command:

Code: [Select]
System:    Host: X201 Kernel: 4.4.0-31-generic x86_64 (64 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   System: LENOVO (portable) product: 32492EU v: ThinkPad X201
           Mobo: LENOVO model: 32492EU
           Bios: LENOVO v: 6QET47WW (1.17 ) date: 07/14/2010
CPU:       Dual core Intel Core i5 M 540 (-HT-MCP-) cache: 3072 KB
           clock speeds: max: 2534 MHz 1: 1199 MHz 2: 1199 MHz 3: 1733 MHz
           4: 1333 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1280x800@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile
           GLX Version: 2.1 Mesa 11.2.0
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-31-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection driver: e1000e
           IF: enp0s25 state: up speed: 100 Mbps duplex: full
           mac: f0:de:f1:11:95:32
           Card-2: Intel Centrino Advanced-N 6200 driver: iwlwifi
           IF: wlp2s0 state: down mac: 00:27:10:88:2a:84
Drives:    HDD Total Size: 320.1GB (5.3% used)
           ID-1: /dev/sda model: ST9320423AS size: 320.1GB
Partition: ID-1: / size: 290G used: 12G (5%) fs: ext4 dev: /dev/dm-0
           ID-2: /boot size: 472M used: 165M (37%) fs: ext2 dev: /dev/sda1
           ID-3: swap-1 size: 4.08GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 50.0C mobo: 0.0C
           Fan Speeds (in rpm): cpu: 3557
Info:      Processes: 201 Uptime: 20:34 Memory: 1329.9/3749.7MB
           Client: Shell (bash) inxi: 2.2.35
« Last Edit: August 11, 2016, 06:03:36 am by AndyInMokum, Reason: Encapsulating output with [code] »

Offline Incandescent

  • nOOb
  • *
  • Posts: 13
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #4 on: August 11, 2016, 05:18:12 am »
Both .. it's a (kind of) bug that I haven't bothered to fix because I kinda like that it's semi-broken from a support standpoint ;)

MintUpdate only contains the option to install kernel versions because Mint lock the kernel from automatic updates, we do not lock the kernel so I see no benefit to it, if you stay up to date it would only ever be offering previous kernels and if you need an earlier kernel for some reason such as a regression in an update, then MintUpdate is NOT the best method to apply it, that would be in GRUB where future updates won't break it again.

I can totally see why you'd want to keep it disabled  ;D It certainly isn't the most useful tool in most cases, however for people with AMD graphics cards I have found it to be invaluable. With the AMD Fglrx driver now fully deprecated, users will need to use the latest kernels to gain support for their cards under the new AMDGPU driver. For instance, the newly released RX480 requires at least Kernel 4.7 to function. As will the older cards as well.

I've recommend Mint over standard Ubuntu or its flavours to many gamers with AMD cards transitioning from Windows to Linux (for example), purely because of the ease in which you can install newer kernel versions through the GUI. In my experience, anything that requires you to use the terminal tends to scare off new users, so the less need there is for that in the beginning, the better in my opinion.

With such a feature missing from Peppermint, I would be hesitant to recommend it over Mint for AMD gamers, but if that's the way it needs to be, I understand.  :(

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #5 on: August 11, 2016, 06:30:14 am »
Quote
...In my experience, anything that requires you to use the terminal tends to scare off new users, so the less need there is for that in the beginning, the better in my opinion.

With such a feature missing from Peppermint, I would be hesitant to recommend it over Mint for AMD gamers, but if that's the way it needs to be, I understand.  :(
Right from the start, we try to gently ease new users into using the terminal.  As you already know, it's the most effective and efficient way of getting most things done.  We figure if someone has decided to use Linux.  It's best to get them used to the core tools for general administration as soon as possible.  We don't discourage the use of the GUI.  We also don't go out of our way to encourage it.  For help, they can always come here and ask.  They'll alway get an explanation and a possible solution.  It's something that separates the Peppermint Forum from other distros  ;).

It's wet and horrible here in Amsterdam.  At the moment it's a real Dutch summer :))!!
« Last Edit: August 11, 2016, 06:32:58 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26276
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #6 on: August 11, 2016, 07:31:44 am »
With the AMD Fglrx driver now fully deprecated, users will need to use the latest kernels to gain support for their cards under the new AMDGPU driver. For instance, the newly released RX480 requires at least Kernel 4.7 to function. As will the older cards as well.

MintUpdate wouldn't have offered the 4.7 kernel even if it was working because it's not in the default repos, nor will it likely be for 16.04 until the the lts-enablement stack is released, but even then it wouldn't be in MintUpdate as it'll require an updated Xorg stack.

The correct way to install 4.7 would be via the ubuntu mainline ppa .. but I'd be fairly certain the AMDGPU-Pro stuff will be backported to xenial anyway ;)

Quote
With such a feature missing from Peppermint, I would be hesitant to recommend it over Mint for AMD gamers, but if that's the way it needs to be, I understand.  :(

The 4.7 kernel won't be offered via MintUpdate in Mint 18 either .. so I don't get your point ???

It's simple .. our update policy follows Ubuntu's not Mints .. when AMDGPU/Pro becomes available in Ubuntu you will get it automatically .. the same can't be said for Mint who hold back kernel updates by default (the ONLY reason they have that manual kernel selection section in MintUpdate in the first place)
« Last Edit: August 11, 2016, 07:38:08 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5439
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #7 on: August 11, 2016, 01:20:27 pm »
Gotta say ...

I've always had a kernel fetish.  I don't have any reservations about installing RCs on my production machines, even if they break things, because ... I like breakage.

That said, I've had no luck with the 4.7 kernel - so, caveat emptor.

Supposedly, the 4.8-rc1 mainline build is promising, from the reports I've read, but I haven't installed it yet.  Maybe, today is the day ...   :)

EDIT

BTW, I should state this up front...

I'm NOT encouraging users to do this, unless you know what you're getting yourself into, and have the ability to save yourself using chroot and so forth. 

Be careful out there ...
« Last Edit: August 11, 2016, 01:36:35 pm by VinDSL, Reason: Addendum »

Offline Incandescent

  • nOOb
  • *
  • Posts: 13
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
Re: Kernel Selection Tool in Updater Manager does not work.
« Reply #8 on: August 13, 2016, 10:56:39 pm »
The 4.7 kernel won't be offered via MintUpdate in Mint 18 either .. so I don't get your point ???

It's simple .. our update policy follows Ubuntu's not Mints .. when AMDGPU/Pro becomes available in Ubuntu you will get it automatically .. the same can't be said for Mint who hold back kernel updates by default (the ONLY reason they have that manual kernel selection section in MintUpdate in the first place)

I finally tried installing Mint 18 on a spare laptop today, and you're absolutely right! The only kernel available is 4.4.

I must admit, I was assuming Mint 18 would've had newer kernels available to it based off my experience with older versions of Mint, where I had the option available of upgrading from 3.13 to newer versions like 4.1.

This means I've been recommending Mint to AMD users for no good reason...  :(

Offline armageddon51

  • Jr. Member
  • **
  • Posts: 82
  • Karma: 11
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #9 on: September 26, 2016, 09:35:10 am »
Looks like the tool hasn't been fix yet. I found it very useful to update the kernel but also to uninstall unused one. Will it be fixed ?

Btw how do you remove unused kernel safely with the command line ?

Tx

Pep7

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26276
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #10 on: September 26, 2016, 11:42:18 am »
I have a fix, but it's going to be a while before I can push it as an update (launchpad is currently down, and I also want to test it some more though it should be safe enough) .. if you want to try it, run:
Code: [Select]
sudo sed -i 's/linux-image-3/linux-image-4/g' /usr/lib/linuxmint/mintUpdate/checkKernels.py
mintupdate should now show the kernels and allow you to uninstall them.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3135
  • Karma: 567
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #11 on: September 26, 2016, 01:05:35 pm »
Hi
Confirmed working here

Regards Zeb...

ps this is what removing the oldest kernel did
Spoiler (click here to view / hide)
Code: [Select]
(Reading database ... 271937 files and directories currently installed.)
Removing linux-headers-4.4.0-24-generic (4.4.0-24.43) ...
Removing linux-headers-4.4.0-24 (4.4.0-24.43) ...
Removing linux-signed-image-4.4.0-24-generic (4.4.0-24.43) ...
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.4.0-38-generic
Found initrd image: /boot/initrd.img-4.4.0-38-generic
Found linux image: /boot/vmlinuz-4.4.0-36-generic
Found initrd image: /boot/initrd.img-4.4.0-36-generic
Found linux image: /boot/vmlinuz-4.4.0-24-generic
Found initrd image: /boot/initrd.img-4.4.0-24-generic
Found Solus (1.2.0.5) on /dev/sdb3
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.4.0-24-generic (4.4.0-24.43) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Error! echo
Your kernel headers for kernel 4.4.0-24-generic cannot be found at
/lib/modules/4.4.0-24-generic/build or /lib/modules/4.4.0-24-generic/source.
Error! echo
Your kernel headers for kernel 4.4.0-24-generic cannot be found at
/lib/modules/4.4.0-24-generic/build or /lib/modules/4.4.0-24-generic/source.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.4.0-38-generic
Found initrd image: /boot/initrd.img-4.4.0-38-generic
Found linux image: /boot/vmlinuz-4.4.0-36-generic
Found initrd image: /boot/initrd.img-4.4.0-36-generic
Found linux image: /boot/vmlinuz-4.4.0-24-generic
Found initrd image: /boot/initrd.img-4.4.0-24-generic
Found Solus (1.2.0.5) on /dev/sdb3
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-4.4.0-24-generic (4.4.0-24.43) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.4.0-38-generic
Found initrd image: /boot/initrd.img-4.4.0-38-generic
Found linux image: /boot/vmlinuz-4.4.0-36-generic
Found initrd image: /boot/initrd.img-4.4.0-36-generic
Found Solus (1.2.0.5) on /dev/sdb3
Adding boot menu entry for EFI firmware configuration
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
 you may need to re-run your boot loader[grub]
[close]
« Last Edit: September 26, 2016, 01:08:57 pm by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadrippe 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 1 x 43" 1 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P10 x64 Laptop - i7-7700HQ - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26276
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #12 on: September 26, 2016, 01:20:21 pm »
Cheers Zeb :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline armageddon51

  • Jr. Member
  • **
  • Posts: 82
  • Karma: 11
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #13 on: September 26, 2016, 03:51:28 pm »
I have a fix, but it's going to be a while before I can push it as an update (launchpad is currently down, and I also want to test it some more though it should be safe enough) .. if you want to try it, run:
Code: [Select]
sudo sed -i 's/linux-image-3/linux-image-4/g' /usr/lib/linuxmint/mintUpdate/checkKernels.py
mintupdate should now show the kernels and allow you to uninstall them.

Yep works like a charm here. Removing kernels too.  It also stays after a reboot. Definitely need to be push as an update asap.

Good job PcNetSpec (as usual)
Tx

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Kernel Selection Tool in Updater Manager does not work. (SOLVED)
« Reply #14 on: September 26, 2016, 04:52:10 pm »
Hi armageddon51, how's it going?  To remove kernels manually you must first find out how many you have installed.  It always a good idea to have two kernels.  The current one and the previous working one as a fallback.  To display all the kernels run the following command in a terminal window:
Code: [Select]
dpkg -l | grep linux-image
This should give an output similar to this:
Code: [Select]
andy@andy-Latitude-PM7 ~ $ dpkg -l | grep linux-image
rc  linux-image-4.4.0-34-generic                                4.4.0-34.53                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-36-generic                                4.4.0-36.55                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-38-generic                                4.4.0-38.57                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-34-generic                          4.4.0-34.53                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-36-generic                          4.4.0-36.55                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-38-generic                          4.4.0-38.57                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                                         4.4.0.38.40                                amd64        Generic Linux kernel image
andy@andy-Latitude-PM7 ~ $
Here there are three kernels and their associated extras.  To remove the oldest kernel from this list, run the following command in a terminal window:

Please note that this command is only an example.  Do not run it on your machine(s), as it may seriously damage it/them.
Code: [Select]
sudo apt remove --purge linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
To remove multiple kernels, add them to the command.  When this command has completed, reboot your machine and run:
Code: [Select]
dpkg -l | grep linux-image
to check the number of remaining kernels.  You may now clean things up by running:
Code: [Select]
sudo apt clean && sudo apt auto-clean && sudo apt autoremove
That's it, all nice and easy  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.