How to Fix Dpkg: Error Processing Package Linux-Image-4.7.0-kali1-amd64 (--Configure)?

I have currently installed kali linux rolling on my machine, while upgrading i got error:-

root@kali:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? Y/n y
Setting up linux-image-4.7.0-kali1-amd64 (4.7.6-1kali1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.7.0-kali1-amd64

WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will be removed in a future release! Use /etc/cryptsetup-initramfs/conf-hook instead.

/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 33: /etc/default/grub: 3: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-4.7.0-kali1-amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-4.7.0-kali1-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thank you in advance

3 Responses

As I too am on Kali64-amd ( finally got it to dual boot :) ), I understand the struggle. However, throughout my endeavor to solve the problem, I was all alone thus resulting in me learning a lot about Linux. Consider trying to Google your way through this one. Here're a few starter links:

1
2
3

Good sir, thank you for your answer - I appreciate an answer that starts with a journey. I'm sure there will be some who disagree. It dawned on me today, that to sit online and seek out ways to hack, is counter productive. Instead, sit and search to learn online about all things (in this case Linux). Then hacking, is but an easy afterthought.... your answer makes me smile.

dpkg: error processing package python3-scipy (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-icalendar
python3-numpy
python3-graphql-core
python3-graphene
king-phisher
python3-graphene-sqlalchemy
python3-matplotlib
python3-mpltoolkits.basemap
python3-scipy
E: Sub-process /usr/bin/dpkg returned an error code (1)

Share Your Thoughts

  • Hot
  • Active