How to fix Kali Linux apt-get slow and speed up kali linux update - solved

If you're the person installed kali linux and trying to update or install applications using apt package manager, now the first issue bumps up! Oh thats a slooooooowww download speed shit! [50 -250kbps] dont worry this post will help you to overcome!Lets see ,how the solution works!

Step 1: 

Login to root account and Locate the APT package manager repository file(/etc/apt/sources.list), open it with leafpad or vi text editor.

             if youre new to linux environment , you can use leafpad to edit this file (/etc/apt/sources.list)
             use terminal - type the below command to open in vi text editor
                                    vi /etc/apt/sources.list

Open this file in leafpad or vi

Step 2: 
Open this link to find the fastest servers near to your geo location , fastest to your location will be listed on first.

Below image is the screenshot of the fastest repo mirror for my location, it will differ for you,
Make sure you select the fastest link and replace that link in the sources.list file

Copy the first link which is shown for you from https to kali - neglect the readme

Step 3:

  • Comment out default repo links by simply adding a # at the beginning of the line starting deb 
  • Now, Replace the fastest link as shown below - Make sure you avoid README on link end 

Add the copied link as shown and save!

Its Done!

Open Terminal, Type the following commands 

  • apt clean
  • apt update && apt upgrade -y && apt dist-upgrade -y     [Note: If you want to update kali ,you can use this command else not necessary]

Now you can try to install any application using apt, it will be fast!!!

No comments: