root@kali:~# apt-get update
Get:1
http://security.kali.org kali/updates Release.gpg [836 B]
Get:2
http://http.kali.org kali Release.gpg [836 B]
Get:3
http://security.kali.org kali/updates Release [11.0 kB]
Get:4
http://http.kali.org kali Release [21.1 kB]
Get:5
http://security.kali.org kali/updates/main Sources [144 kB]
Get:6
http://http.kali.org kali/main Sources [7568 kB]
Ign
http://security.kali.org kali/updates/contrib Translation-en
Ign
http://http.kali.org kali/contrib Translation-en
Ign
http://security.kali.org kali/updates/main Translation-en
Ign
http://http.kali.org kali/main Translation-en
Ign
http://security.kali.org kali/updates/non-free Translation-en
Ign
http://http.kali.org kali/non-free Translation-en
Hit
http://security.kali.org kali/updates/contrib Sources
Hit
http://http.kali.org kali/contrib Sources
Hit
http://security.kali.org kali/updates/non-free Sources
Get:7
http://http.kali.org kali/non-free Sources [118 kB]
Get:8
http://security.kali.org kali/updates/main amd64 Packages [283 kB]
Get:9
http://http.kali.org kali/main amd64 Packages [8470 kB]
Hit
http://security.kali.org kali/updates/contrib amd64 Packages
Hit
http://http.kali.org kali/contrib amd64 Packages
Hit
http://security.kali.org kali/updates/non-free amd64 Packages
Get:10
http://http.kali.org kali/non-free amd64 Packages [138 kB]
Fetched 16.8 MB in 49s (338 kB/s)
Reading package lists... Done
root@kali:~# chroot
chroot: missing operand
Try `chroot --help' for more information.
root@kali:~# sudo mount /dev/sda5 /mnt
root@kali:~# sudo mount --bind /dev /mnt/dev
root@kali:~# sudo mount --bind /dev/pts /mnt/dev/pts
root@kali:~# sudo mount --bind /sys /mnt/sys
root@kali:~# sudo mount -t proc /proc /mnt/proc
root@kali:~# sudo chroot /mnt /bin/bash
root@kali:/# mount -a
root@kali:/# leafpad /etc/apt/source.list
root@kali:/# apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub-pc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'grub-pc' has no installation candidate
root@kali:/# apt-get update
Err
http://security.kali.org kali/updates Release.gpg
Could not resolve 'security.kali.org'
Reading package lists... Done
W: Failed to fetch
http://security.kali.org/kali-securi...es/Release.gpg Could not resolve 'security.kali.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@kali:/# apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub-pc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'grub-pc' has no installation candidate