root@kali:~# sudo apt-get update
Err:1 http://deb.debian.org/debian stretch InRelease
Could not resolve '127.0.0.'
Err:2 http://deb.torproject.org/torproject.org jessie InRelease
Could not resolve '127.0.0.'
Err:3 http://deb.debian.org/debian-security stretch/updates InRelease
Could not resolve '127.0.0.'
Err:4 http://security.debian.org jessie/updates InRelease
Could not resolve '127.0.0.'
Err:5 http://deb.debian.org/debian stretch-updates InRelease
Could not resolve '127.0.0.'
Err:6 http://http.kali.org/kali kali-rolling InRelease
Could not resolve '127.0.0.'
Err:7 http://ftp.debian.org/debian jessie InRelease
Could not resolve '127.0.0.'
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://deb.debian.org/debian-security/dists/stretch/updates/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/jessie/InRelease Could not resolve '127.0.0.'
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease Could not resolve '127.0.0.'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@kali:~#
settings of /etc/apt/apt.conf is
Acquire::http::proxy "http://127.0.0.:9050";
Acquire::https::proxy "https://127.0.0.:9050";
Acquire::socks::proxy "socks5://127.0.0.:9150";
settings of /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main
deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main
deb http://ftp.debian.org/debian/ jessie main contrib
deb http://deb.torproject.org/torproject.org jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
Please help me fix this. thanks |