Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Fix Sources.list File on Kali Linux

Learn how to fix Sources.list File on Kali Linux with clear steps, practical examples, and troubleshooting tips for safer, more reliable results.

Table of Contents

How to Fix Sources.list File on Kali Linux is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.

The sources.list file issue often appears after updating Kali Linux. Today's article will show you how to edit sources.list file on Kali Linux.

Fix the default repository

First, after installing a new Kali Linux completely, sources.list counte only the repository is

 123 ## Regular repositories 
 deb http://http.kali.org/kali potassium main non-free contrib 
 deb http://security.kali.org/kali-security potassium / updates main contrib non-free 

If you try, it can update some applications, but if you try to install a new application, it will not be possible to 90% and a message like this will appear:

 E: Unable to locate package 

How to Fix Sources.list File on Kali Linux example image 1

The easiest way is to edit /etc/apt/sources.list

Remove or comment each line with # in front and add the following line in the terminal window:

 leafpad /etc/apt/sources.list 

After this command line, the screen will appear:

How to Fix Sources.list File on Kali Linux example image 2

Now, remove the old command line and add a new one.

Repo for Kali Linux versions

  • For Kali Linux 1.x users, use the repo below:

(Don't update Kali 1.0, upgrade to Kali 2016 instead).

 123456 ## Regular repositories 
 deb http://http.kali.org/kali potassium main non-free contrib 
 deb http://security.kali.org/kali-security potassium / updates main contrib non-free 
 ## Source repositories 
 deb-src http://http.kali.org/kali potassium main non-free contrib 
 deb-src http://security.kali.org/kali-security potassium / updates main contrib non-free 
  • For Kali Linux 2.0 - Kali Sana, use the repo below:

(You can still get updates for Kali Sana but not for long. So upgrade to Kali 2016.1)

 123456 # Regular repositories 
 deb http://http.kali.org/kali sana main non-free contrib 
 deb http://security.kali.org/kali-security sana / updates main contrib non-free 
 # Source repositories 
 deb-src http://http.kali.org/kali sana main non-free contrib 
 deb-src http://security.kali.org/kali-security sana / updates main contrib non-free 
  • For Kali Linux 2016 - Kali Rolling, use the repo below:
 123deb http://http.kali.org/kali potassium-rolling main contrib non-free 
 # For gói ngu?n truy c?p, uncomment theo sau dòng 
 # deb-src http://http.kali.org/kali potassium-main contrib non-free 
  • With Kali Linux 2017.1 sources.list use the following repo:
 1deb http://repo.kali.org/kali potassium-rolling main non-free contrib 

Finally, save and close the file.

Install new, update and upgrade your Kali installation

Use the following command:

 1apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y 

Kali Rolling Repository

In contrast to dev-potassium, potassium-rolling is expected to be of better quality because it is managed by a tool that ensures the installation capability of all packages contained therein. This tool will select packages that are updated from the dev-command and copy them into potassium-rolling only if they have been verified to be installable.

  • How to scan websites for potential security vulnerabilities with Vega on Kali Linux
  • How to install Kali Linux on Android using Linux Deploy
  • Kali Linux commands from AZ and commonly used commands

FAQ

What should you know about fix the default repository?

First, after installing a new Kali Linux completely, sources.list counte only the repository is.

What should you know about kali Rolling Repository?

In contrast to dev-potassium, potassium-rolling is expected to be of better quality because it is managed by a tool that ensures the installation capability of all packages contained therein. This tool will select packages that are updated from the.

What is How to Fix Sources.list File on Kali Linux?

The sources.list file issue often appears after updating Kali Linux.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.