PDA

View Full Version : Not able to uprade from kernel 4.12



mictadlo
2018-01-10, 22:13
Hi,
I did `sudo apt update && apt full-upgrade` but after rebooting I still have only the kenel 4.12 to choose.

What did I miss?

Thank you in advance.

Mister_X
2018-01-11, 02:17
Not sure what full-upgrade does but try dist-upgrade instead.

mictadlo
2018-01-11, 03:19
# apt-get update && apt-get dist-upgrade
Hit:1 https://deb.nodesource.com/node_6.x jessie InRelease
Hit:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libarmadillo7 libbind9-141 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-program-options1.62.0 libboost-serialization1.62.0
libboost-test1.62.0 libboost-timer1.62.0 libcgal12 libdns-export190 libdns190 libevent-2.0-5 libgeos-3.5.1 libhttp-parser2.1 libical2
libisc-export189 libisc189 libisccc140 libisccfg144 libkexiv2-11 libkexiv2-data libkprintutils4 liblwres141 libnetcdf11 libntfs-3g872
libobjc-6-dev libokularcore7 libpoppler-qt4-4 libpoppler68 libqcustomplot1.3 libqgis-core2.14.20 libqgis-gui2.14.20
libqgis-networkanalysis2.14.20 libqgispython2.14.20 libqimageblitz4 libqmobipocket1 libqt5opengl5 libradare2-2.0 libsfcgal1 libsodium18
libsuitesparseconfig4 libx265-130 libxerces-c3.1 linux-headers-4.13.0-kali1-amd64 linux-headers-4.13.0-kali1-common linux-kbuild-4.13
python-brotli python-cssutils
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
apktool libc-ares2 libnss3 libsmali-java php php-common php-mysql python-idna python-requests python-urllib3 python3-idna python3-requests
python3-urllib3 xterm zsh zsh-common
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,175 kB of archives.
After this operation, 118 kB disk space will be freed.
Do you want to continue? [Y/n] y

# reboot

$ uname -a
Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

What did I miss?

re4son
2018-01-11, 09:34
Interesting.
Would you mind posting the result of "ls -l /boot" for us to have a look at?

_defalt
2018-01-11, 18:52
Incorrect repositories.

mictadlo
2018-01-11, 20:45
$ ls -l /boot
total 34408
-rw-r--r-- 1 root root 194375 Aug 30 17:49 config-4.12.0-kali1-amd64
drwxr-xr-x 5 root root 4096 Jan 10 14:58 grub
-rw-r--r-- 1 root root 27676761 Jan 10 14:22 initrd.img-4.12.0-kali1-amd64
-rw-r--r-- 1 root root 2947712 Aug 30 17:49 System.map-4.12.0-kali1-amd64
-rw-r--r-- 1 root root 4401424 Aug 30 17:49 vmlinuz-4.12.0-kali1-amd64



$ cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-06:32]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-06:32]/ kali-rolling contrib main non-free

deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

re4son
2018-01-12, 03:03
Anything in the "/etc/apt/sources.list.d/" directory?

bigbiz
2018-01-12, 05:09
# apt-get update && apt-get dist-upgrade
Hit:1 https://deb.nodesource.com/node_6.x jessie InRelease
Hit:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libarmadillo7 libbind9-141 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-program-options1.62.0 libboost-serialization1.62.0
libboost-test1.62.0 libboost-timer1.62.0 libcgal12 libdns-export190 libdns190 libevent-2.0-5 libgeos-3.5.1 libhttp-parser2.1 libical2
libisc-export189 libisc189 libisccc140 libisccfg144 libkexiv2-11 libkexiv2-data libkprintutils4 liblwres141 libnetcdf11 libntfs-3g872
libobjc-6-dev libokularcore7 libpoppler-qt4-4 libpoppler68 libqcustomplot1.3 libqgis-core2.14.20 libqgis-gui2.14.20
libqgis-networkanalysis2.14.20 libqgispython2.14.20 libqimageblitz4 libqmobipocket1 libqt5opengl5 libradare2-2.0 libsfcgal1 libsodium18
libsuitesparseconfig4 libx265-130 libxerces-c3.1 linux-headers-4.13.0-kali1-amd64 linux-headers-4.13.0-kali1-common linux-kbuild-4.13
python-brotli python-cssutils
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
apktool libc-ares2 libnss3 libsmali-java php php-common php-mysql python-idna python-requests python-urllib3 python3-idna python3-requests
python3-urllib3 xterm zsh zsh-common
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,175 kB of archives.
After this operation, 118 kB disk space will be freed.
Do you want to continue? [Y/n] y

# reboot

$ uname -a
Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux

What did I miss?

Kali would use the wheezy inrelease. Not jessy can u change it?
https://forums.kali.org/showthread.php?16-Recompiling-the-Kali-Linux-Kernel

mictadlo
2018-01-13, 22:54
I changed it to wheezy and I can still only choose 4.12. What did I miss?

# ls /lib/modules/
4.12.0-kali1-amd64 4.12.0-kali2-amd64 4.13.0-kali1-amd64 4.14.0-kali1-amd64 4.14.0-kali3-amd64 4.14.0-kali3-rt-amd64

# ls /boot/
config-4.12.0-kali1-amd64 grub initrd.img-4.12.0-kali1-amd64 System.map-4.12.0-kali1-amd64 vmlinuz-4.12.0-kali1-amd64

re4son
2018-01-14, 01:04
I'd get rid of the nodesource repos and do an upgrade with the standard kali-rolling only.

Your "sources.list" looks ok but you seem to have additional repositories defined somewhere else that cause some hiccups. Something must have caused your package manager to be out of whack, e.g it looks like you used to have a newer kernel installed but it got removed.

Have a look in "/etc/apt/sources.list.d/" for any additional sources files and remove all of them for now.
Do another "apt update" and make sure that you only get hits on the "kali-rolling" repo then run "apt full-upgrade".


For your reference, my output of "apt update" with an identical sources.list file looks like this:


root@kali:~# apt update
Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB]
Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Packages [15.7 MB]
Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Packages [15.7 MB]
Get:4 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free amd64 Packages [166 kB]
Get:5 http://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free i386 Packages [148 kB]
Fetched 31.8 MB in 26s (1,213 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.


Hope that helps

bigbiz
2018-01-14, 03:13
I changed it to wheezy and I can still only choose 4.12. What did I miss?

# ls /lib/modules/
4.12.0-kali1-amd64 4.12.0-kali2-amd64 4.13.0-kali1-amd64 4.14.0-kali1-amd64 4.14.0-kali3-amd64 4.14.0-kali3-rt-amd64

# ls /boot/
config-4.12.0-kali1-amd64 grub initrd.img-4.12.0-kali1-amd64 System.map-4.12.0-kali1-amd64 vmlinuz-4.12.0-kali1-amd64

Did you rerun a apt-get update && apt-get dust-upgrade? With the changes. Also with the extra repo sources like stated by re4son you could have broken you install.

mictadlo
2018-01-14, 20:41
The only thing which helped was to do `apt install linux-image-amd64`

_defalt
2018-01-15, 16:36
The only thing which helped was to do `apt install linux-image-amd64`
Atleast check what is there in /etc/apt/sources.list.d as told by re4son twice. Having extra and unofficial repositories will most likely break your filesystem in future.