Results 1 to 4 of 4

Thread: Problems updating Kali OS after installation

  1. #1

    Problems updating Kali OS after installation

    Hello, I've used Kali Linux for a long time as a virtual machine, so a few days ago I decided to install it on one of my PCs. These are the system information: Linux DESKTOP-TN71MNM 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux.

    After the installation, I've tried to update all the packages using the following command:
    sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y
    Here is the output:

    Found:1 http://kali.download/kali kali-rolling InRelease
    Reading package list ... Done
    Dependency tree generation ... Done
    Read status information ... Done
    All packages are up to date.
    Reading package list ... Done
    Dependency tree generation ... Done
    Read status information ... Done
    Calculating the update ... Done
    The following packages were installed automatically and are no longer required:
    florence libarmadillo10 libavfilter7 libavformat-extra58 libcharls2 libdav1d5 libflorence-1.0-1 libgdal30 libgdk-pixbuf-xlib-2.0-0
    libgdk-pixbuf2.0-0 libgeos3.10.2 libjim0.79 liblttng-ust-ctl4 liblttng-ust0 libpostproc55 libsrt1.4-gnutls libswscale5 python3-iptools
    python3-toml
    Use "sudo apt autoremove" to remove them.
    0 updated, 0 installed, 0 to be removed, and 0 not updated.
    3 not fully installed or removed.
    After this operation, 0 B of disk space will be occupied.
    Configuration of initramfs-tools (0.142)...
    update-initramfs: deferring update (trigger activated)
    Configuration of linux-image-5.18.0-kali5-amd64 (5.18.5-1kali6)...
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.18.0-kali5-amd64
    W: Possible missing firmware /lib/firmware/i915/skl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/bxt_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/glk_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/cml_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/icl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/dg1_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/adlp_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/adlp_dmc_ver2_14.bin for module i915
    zstd: error 25 : Write error : No space left on device (cannot write compressed block)
    E: mkinitramfs failure zstd -q -9 -T0 25
    update-initramfs: failed for /boot/initrd.img-5.18.0-kali5-amd64 with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.18.0-kali5-amd64 (--configure):
    thread installed package linux-image-5.18.0-kali5-amd64 script post-installation returned error status 1
    dpkg: dependency problems prevent configuration of linux-image-amd64:
    linux-image-amd64 depends on linux-image-5.18.0-kali5-amd64 (= 5.18.5-1kali6); however:
    The linux-image-5.18.0-kali5-amd64 package is not configured yet.
    dpkg: error processing package linux-image-amd64 (--configure):
    problems with dependencies - left unconfigured
    Trigger processing for initramfs-tools (0.142) ...
    update-initramfs: Generating /boot/initrd.img-5.18.0-kali5-amd64
    W: Possible missing firmware /lib/firmware/i915/skl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/bxt_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/glk_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/cml_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/icl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/dg1_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/adlp_guc_69.0.3.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/adlp_dmc_ver2_14.bin for module i915
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1

    dpkg: Error processing initramfs-tools package (--configure):
    thread installed package initramfs-tools post-installation script returned error status 1
    There were errors in processing:
    linux-image-5.18.0-kali5-amd64
    linux-image-amd64
    initramfs-tools
    needrestart is being skipped since dpkg has failed
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Here is the /etc/apt/sources.list file:
    # deb cdrom:[Debian GNU/Linux 2022.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20220505-06:47]/ kali-last-snapshot contrib main non-free

    #deb cdrom:[Debian GNU/Linux 2022.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20220505-06:47]/ kali-last-snapshot 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

    # This system was installed using small removable media
    # (e.g. netinst, live or single CD). The matching "deb cdrom"
    # entries were disabled at the end of the installation process.
    # For information about how to configure apt package sources,
    # see the sources.list(5) manual.

    This error occurs every time I try to install any package. The error states also that there isn't enough space on disk, but the disk isn't full... Maybe this is due to the "type" of installation that I've done? When I installed Kali, I used the option
    Guided-use entire disk and set up encrypted LVM
    .
    I've tried to find the solution to the problem on the Internet ( https://askubuntu.com/questions/1420...md64-configure https://www.reddit.com/r/kali4noobs/...nitramfstools/ ) but I didn't find anything useful. Any suggestions? Thanks a lot.

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    you need the bare metal ISO not the Live image

  3. #3
    Join Date
    2022-Aug
    Posts
    1
    Hi real_name_hidden,

    I encountered the same issue from a Kali install from the Live Image. (I installed from the Live Image because the bare metal image wouldn't install on my machine).

    I considered the trade-off between resolving this issue, potentially affecting initramfs in a negative manner and breaking the boot process against leaving the issue and failing to complete configuration after package installation. I opted to resolve it, but it is an integral part of the system so be aware of the risks involved. In the end I figured it would be alright to resolve it since it involves removing two unnecessary hook scripts and adding some new firmware binaries from the linux kernel git repo. So it appeared to be worthwhile if done correctly.

    In the output you provided, there is another issue about missing raspi-firmware. I needed to resolve this issue too before the upgrade command would complete successfully.

    Here are the steps I took to resolve the issue. I did this yesterday and my system has operated successfully since then.

    Raspi was removed from Kali rolling as seen on this link.

    However, initramfs postupdate and postinstall shell scripts were not removed.

    To resolve this move those scripts to another location so that they will not be called by those post update and post install hooks. (Keep them around in case we need to rollback).

    Use the commands:

    sudo mv /etc/kernel/postinst.d/z50-raspi-firmware ~/postinst.d.z50-raspi-firmware

    sudo mv /etc/initramfs/post-update.d/z50-raspi-firmware ~/postupdate.d.z50-raspi-firmware

    Next let's resolve the i915 firmware messages.

    I found a helpful link which discusses the problem on an older Ubuntu version.

    Make a copy of existing firmware in /etc/firmware/i915/ directory as a precaution in case we need to rollback.

    Download missing firmware from the linux kernel git repo. The missing firmware is reported in the error message of the relevant command. I found it best to do this manually and carefully chose the correct file name and version number that are reported in the error message.

    Copy missing firmware into /etc/firmware/i915/ directory.

    Rerun the command which reported the error, it should now run successfully.

  4. #4
    Join Date
    2013-Oct
    Posts
    6
    resolved through the following links:
    https://unix.stackexchange.com/quest...e-is-installed
    https://wiki.debian.org/Firmware#Fir...ng_from_Debian

    ┌──(userx㉿mrBlue)-[~]
    └─$ mkdir firmware

    ┌──(userx㉿mrBlue)-[~]
    └─$ cd firmware

    ┌──(userx㉿mrBlue)-[~/firmware]
    └─$ wget -r -nd -e robots=no -A '*.bin' --accept-regex '/plain/' https://git.kernel.org/pub/scm/linux...git/tree/i915/
    --2022-09-03 18:27:25-- https://git.kernel.org/pub/scm/linux...git/tree/i915/
    Resolving git.kernel.org (git.kernel.org)... 139.178.84.217, 2604:1380:4641:c500::1
    Connecting to git.kernel.org (git.kernel.org)|139.178.84.217|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ?index.html.tmp?

    ===============

    FINISHED --2022-09-03 18:27:42--
    Total wall clock time: 17s
    Downloaded: 108 files, 22M in 9.9s (2.18 MB/s)

    ┌──(userx㉿mrBlue)-[~/firmware]
    └─$ sudo mv *.bin /lib/firmware/i915/

    ┌──(userx㉿mrBlue)-[~/firmware]
    └─$ sudo update-initramfs -c -k all
    update-initramfs: Generating /boot/initrd.img-5.16.0-kali7-amd64
    update-initramfs: Generating /boot/initrd.img-5.18.0-kali5-amd64

    and the p50 is skippy

Similar Threads

  1. Problems on updating to Kali Linux 2021.1
    By pmlopes in forum Installing Archive
    Replies: 0
    Last Post: 2021-03-01, 11:40
  2. Problems Updating Kali Linux//Editing Sources.List root rights
    By Psyk0l0ge in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-03-05, 23:19
  3. Updating a Kali Live (USB) installation
    By groston in forum Installing Archive
    Replies: 0
    Last Post: 2018-03-11, 21:12
  4. Replies: 1
    Last Post: 2016-02-26, 05:43

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
  •