How to SWITCH to a new version of Kali Linux?

0

When I boot in to the Kali Linux (from Live USB mode with encrypted persistence) it automatically goes in the 4.12.0-kali1-amd64 (current uname -r). Even thought I made apt-get update and apt-get install linux-image-$(uname -r|sed 's,[^-]-[^-]-,,') linux-headers-$(uname -r|sed 's,[^-]-[^-]-,,')

After running the second command it downloads and installs the image and header file of the 4.12.0-kali2-amd64 kernel version. (I can see them installed in the "Synaptic Package Manager" too).

Any other possibilities to "switch" to the newly installed kernel, because as I already mentionted rebooting wont help at all.

Thanks for any help :)

Eric Varga

Posted 2017-09-28T13:23:55.293

Reputation: 1

uname -r|sed 's,[^-]-[^-]-,,' returns the name of the currently running kernel so your apt-get install command shouldn't be installing anything. – xenoid – 2017-09-28T16:36:45.550

I am trying to do what is on the given like – Eric Varga – 2017-09-28T17:54:55.017

I do not understand either why after the "apt-get install linux-image-$(uname -r|sed 's,[^-]-[^-]-,,')" command it downloads the image of the 4.12.0-kali2-amd64 – Eric Varga – 2017-09-28T18:01:36.890

Is there any others linux distros installed on your hdd (multiboot)? – GAD3R – 2017-09-30T19:24:20.693

Answers

0

Normally you don't install a specific version, you install/update a meta-package(*). It pulls the latest kernel image (and associated packages....), add them to the set of bootable images, possibly uninstalls old ones, and sets up grub. To update all your stuff:

sudo apt update  # gets the latests package lists from the repos
sudo apt upgrade # upgrades everything

If you want to handle things manually at your own peril, at least run update-grub after installing the new image (requires sudo of course):

sudo update-grub

(*) On Ubuntu and derivatives, it's either linux-generic or linux-hwe-generic. The first is stable, the second (hwe: HardWare Enablement) is updated more often to keep your kernel up to date with recent hardware.

xenoid

Posted 2017-09-28T13:23:55.293

Reputation: 7 552