Hit enter after type your search item

How to Fix Kali Linux Repositories File | (/etc/apt/sources.list)


In this article, we are going to learn about the Kali Linux repository file. How to fix Kali Linux repositories file after installing the Kali Linux. If you are getting the error Command not fount you have to update your repository file in Kali.

Default Network Repository Value

When you install your fresh or clean Kali Linux then your repository file /etc/apt/sources.list looks like this:

sudo nano /etc/apt/sources.list
Default Kali Linux Repo File

This is a default repo file and here you have to get all updates and software but some time network issue or miss configuration repo gives you the error you have to update your /etc/apt/sources.list file using the official repository. It is not the same repo files according to the new update it might be changed or not.

Default Off-line Install Values:

If you have no internet and you are installing Kali Linux 2020.1 offline mode so you have got this error. In the offline installation, we have no repo link in /etc/apt/sources.list file so we have to update manually following default repo file while we install in offline mode:

Kali Linux repo error

Now here we can not get any update and new package so we have to update the repo file in Kali Linux.

Fix Kali Linux sources list:

So, first of all, you have to your repo link you can get from the official website as well as copy from the following:

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Now after updating your repo (/etc/apt/sources.list) file you can update or upgrade your Kali Linux using the following command.

Kali Linux Update & Upgrade Command:

sudo apt update && sudo apt -y full-upgrade -y && sudo reboot

Now your Kali Linux updates will start and it’s depended on your internet speed how much time it takes.

Kali Linux Update Command


How To Fix No Installation Candidate in Kali Linux

Important Things To Remember:

The author of this article does not promote any illegal activities It is just for education purpose All the activities provided in this article, YouTube channel, and on the website techdhee.in are only for educational purposes.

If you are using and follow this tutorial for any illegal purpose, techdhee.in can not be responsible for your action.

My purpose is to educate or share the information who have not, how to secure your self from the Internet, and the world of digital.

Also, read the Disclaimer


Thank you for reading this post and keep connected to TECH DHEE to continue enjoying excellent posts. Share your views about this post in the comment section below. If you still have any queries, throw it in the comment section. If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment, and also it is quite easy and useful for others.

Related Topics


  1. Always getting the same error: E: Unable to locate package pyrit
    Seems that I will never be able to use this kali linux, very frustrating experience

  2. still getting that
    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Something wicked happened resolving ‘http.kali.org:http’ (-5 – No address associated with hostname)
    i`ts related with vpn i guess but i cant do anything else then
    any idea?

Leave a Comment

Your email address will not be published.

This div height required for enabling the sticky sidebar