Mount the ISO to /mnt directory
sudo mount -t iso9660 -o loop /path/to/iso /mnt/
Modify the /etc/apt/sources.list
Add:
deb file:///mnt kali main contrib non-free
Comment:
Comment out all other repository locations from the file except the about one.
Update the system
sudo apt-get update
sudo apt-get dist-upgrade
Un-comment
We have now updated the system from the ISO, now we need to un-comment back the official repository locations and comment our newly added ISO repository.
Un-mount the ISO
sudo umount /mnt
sudo mount -t iso9660 -o loop /path/to/iso /mnt/
Modify the /etc/apt/sources.list
Add:
deb file:///mnt kali main contrib non-free
Comment:
Comment out all other repository locations from the file except the about one.
Update the system
sudo apt-get update
sudo apt-get dist-upgrade
Un-comment
We have now updated the system from the ISO, now we need to un-comment back the official repository locations and comment our newly added ISO repository.
Un-mount the ISO
sudo umount /mnt
Eventually, it works after removing /mnt/dists/kali/Release
ReplyDelete