This is the output:
update-initramfs: Generating /boot/initrd.img-5.3.0-40-generic
/usr/sbin/mkinitramfs: 1: /etc/initramfs-tools/conf.d/resume.save: W:: not found
/usr/sbin/mkinitramfs: 2: /etc/initramfs-tools/conf.d/resume.save: W:: not found
/usr/sbin/mkinitramfs: 3...
Thank you for answering, the problema with the swap is solved, but when I try to reinstall de kernel with: sudo apt-get install --reinstall linux-image-5.3.0-40-generic.
It throws an error:
Errors were encountered while processing:
linux-image-5.3.0-40-generic
E: Sub-process /usr/bin/dpkg...
I already had Linux Mint and I installed Kali Linux, everything seemed normal but when i restarted the pc, I realised that both of them were taking 3 minutes to boot while before It were 5 seconds.
Using systemd-analyze time i saw that the userspace was taking 3 minutes, and I "solved"...