25 February 2020

fix slow apt-get update or upgrade on Kali Linux - 5 tips

All Kali Linux user has faced more delayed internet speed's difficulty in apt-get update or apt-get upgrade or apt-get install with the official repository. Using unofficial repository is not reliable for a user, we strongly suggested to use the official repository but it is very slow, it took several hours to archive a major update or download a bigger tool. So in this article, we are discussing how we can fix the slow apt-get update or upgrade in Kali Linux with few tricks.

1. Excellent internet speed

If we want a fast update then the first thing we need to check that we are using high-speed internet. If our internet is slow then we simply can't update Kali with excellent speed.

2. Pick a proper DNS server

Check for domain name server by using the following command:
$ sudo leafpad /etc/resolv.conf
Here we need to add Google's Domain Name Server
Then save and close the config file and clean by using the following command:
$ sudo apt-get clean

3. Check the right repository

We should check our repository by using the following command:
$ sudo leafpad /etc/apt/sources.list
This server is usually overloaded by users. But we should NOT try unofficial repositories that may break our Kali Linux system. offcial repo

4. Download via the Http secure protocol

First, we need to install a tool called apt-transport-https by using the following command:
apt-get install apt-transport-https -y
This is a very small tool with 149kb size. So it will install in some second. Then we open the sources.list file in leafpad located at /etc/apt/sources.list
Here we need to change the first Http to Https. Then save & close it, and run $ sudo apt update command to update the repository. Then we can check the internet speed of downloading big tools or upgrading systems we're sure that the speed will increase.

5. Changing the Http

We can use this method if the other methods are not working. In this method, we open the sources.list file from the /etc/apt/ using the following command:
$ sudo leafpad /etc/apt/sources.list
Finally, save and close it. I hope these modifications will boost speed and make you comfortable.
These tricks should help every user. So don't forget to comment and follow us to stay updated. Now we are also available on telegram, we publish our tutorials there also follow us to stay tuned.

Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search