Results 1 to 13 of 13

Thread: Not able to uprade from kernel 4.12

  1. #1
    Join Date
    2018-Jan
    Posts
    8

    Not able to uprade from kernel 4.12 to newer version

    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.
    Last edited by mictadlo; 2018-01-10 at 23:48.

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    Not sure what full-upgrade does but try dist-upgrade instead.

  3. #3
    Join Date
    2018-Jan
    Posts
    8
    # 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?

  4. #4
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Interesting.
    Would you mind posting the result of "ls -l /boot" for us to have a look at?

  5. #5
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Incorrect repositories.

  6. #6
    Join Date
    2018-Jan
    Posts
    8
    $ 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

  7. #7
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Anything in the "/etc/apt/sources.list.d/" directory?

  8. #8
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Quote Originally Posted by mictadlo View Post
    # 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
    Last edited by bigbiz; 2018-01-13 at 04:07.

  9. #9
    Join Date
    2018-Jan
    Posts
    8
    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

  10. #10
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    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:

    Code:
    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
    Last edited by re4son; 2018-01-14 at 01:09.

  11. #11
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Quote Originally Posted by mictadlo View Post
    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.

  12. #12
    Join Date
    2018-Jan
    Posts
    8
    The only thing which helped was to do `apt install linux-image-amd64`

  13. #13
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by mictadlo View Post
    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.

Similar Threads

  1. Replies: 2
    Last Post: 2023-04-04, 22:55
  2. Cannot install kernel headers (kernel header mismatch)
    By sebos in forum Installing Archive
    Replies: 10
    Last Post: 2022-12-19, 08:11
  3. Replies: 11
    Last Post: 2019-01-15, 14:47
  4. Replies: 12
    Last Post: 2017-03-05, 03:28

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •