Speed up apt-get on Kali Linux

Clean apt-get cache

apt-get clean

Choose a proper DNS server:

leafpad /etc/resolv.conf

Enter Google DNS nameservers

Following two are Google DNS, let’s face it, if Google is broken, we all think Internet is broken. Hence the reason of using Google DNS. You can choose other DNS Server if you want that are fast and reliable.
nameserver 8.8.8.8
nameserver 8.8.4.4
apt-get update

Another solution, changing from HTTP to REPO in sources.list file

changing the repositories from HTTP to REPO, Use the following repositories (update your sources.list file)

## Kali Regular repositories
deb http://repo.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://repo.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Instead of
## Kali Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
 This change seems to boost speed as it uses slightly different repo than the usual HTTP servers which are overloaded
SHARE

About Ramaz Apkhadze

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment