View Single Post
Posts: 45 | Thanked: 136 times | Joined on Jan 2012 @ Hyderabad
#55
Originally Posted by jellyroll View Post
Many thanks.
I did mount the Kali file system on a Linux lC and installed metasploit successfully. I couldn't upgrade Kali in the chroot environment.I received the following error.

Preparing to replace libxrender1:armhf 1:0.9.7-1+deb7u1+b1 (using .../libxrender1_1%3a0.9.7-1+deb7u2_armhf.deb) ...
Unpacking replacement libxrender1:armhf ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.16.0-rc1+
/bin/df: Warning: cannot read table of mounted file systems: No such file or directory
warning: failed to read mtab



^Cdpkg: error processing initramfs-tools (--unpack):
subprocess installed post-installation script was interrupted
Processing triggers for man-db ...
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@JellyRoll:/home#
Try these commands before chroot,
(Replace <chrootdir> with your kali memory card rootfs mount point)

mount -t proc none <chrootdir>/proc
mount -t sysfs none <chrootdir>/sys
mount -o bind /dev <chrootdir>/dev
mount -o bind /dev/pts <chrootdir>/dev/pts
mount -o bind /tmp <chroodir>/tmp

Now chroot to your kali rootfs, then reinstall your application again.
After exiting chroot, unmount all the above mount points.

umount <chrootdir>/proc
umount <chrootdir>/sys
umount <chrootdir>/dev
umount <chrootdir>/dev/pts
umount <chroodir>/tmp
 

The Following User Says Thank You to rapol.goutham For This Useful Post: