While performing an apt-get update with Kali Linux, packages cannot be retrieved, but a ping works. sources.list file needs to be setup.
To fix it in a terminal:
- Type sudo -i
- Type touch /etc/apt/sources.list
- Type chmod 644 /etc/apt/sources.list
- Type echo “deb http://http.kali.org/kali kali-rolling main contrib non-free” > /etc/apt/sources.list
- Type apt-key adv –keyserver hkp://keys.gnupg.net –recv-keys 7D8D0BF6
- Type apt-get update
- Good to go.