E: unable to locate package error fixed also kali linux slow updating issue fixed
This is error because of improper configuration of Kali Linux mirrors repositories.
And this error now mainly shows in new Kali Linux 2020 update so let's fix this issue in few easy steps.
Open Terminal and Follow below steps:
kali@kali:~$ sudo su
(enter your password)
kali@kali:~$ sudo mousepad /etc/apt/sources.list
After entering above command you will get output like this (Kali Linux 2020) and also might be possible output is differ if you have different version (Kali Linux 2019) but don't worry.
and Now open new terminal again and run below command.
Kali Mirrors List:
How to use it follow below steps:
# deb cdrom:[Kali GNU/Linux 2020.1a _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200213-14:56]/ kali-rolling main non-free
#deb cdrom:[Kali GNU/Linux 2020.1a _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200213-14:56]/ kali-rolling main non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
kali@kali:~$
kali@kali:~$ sudo apt-cdrom add
Using CD-ROM mount point /media/cdrom/
Identifying... [ea19ff4bedaa6c8f4662c0e8c58ed44c-2]
Scanning disc for index files...
Found 2 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
This disc is called:
'Kali GNU/Linux 2020.1a _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200213-14:56'
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[Kali GNU/Linux 2020.1a _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200213-14:56]/ kali-rolling main non-free
Repeat this process for the rest of the CDs in your set.
kali@kali:~$
This above file is open in mousepad (I choose this because this is easy to use for you).
Here you have to add some lines (repositories) which given below copy and paste it at the starting of file.
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
Add this two lines and save the file (Ctrl + s).and Now open new terminal again and run below command.
kali@kali:~$ sudo apt-get update
If this is taking very much time and you're getting slow updating issue then follow below guide also.
This issue also many user might faced when using/updating Kali Linux.
This problem is because of Kali Linux mirrors server have slow speed but here I will give some of Kali Linux alternatives mirrors which gives you faster speed.
http://mirror.kku.ac.th/kali/
http://mirrors.ustc.edu.cn/kali/
https://mirrors.sjtug.sjtu.edu.cn/kali/
http://mirror.ueb.edu.ec/kali/
http://mirror.cedia.org.ec/kali/
http://http.kali.org/kali
http://mirrors.ocf.berkeley.edu/kali/
http://mirror.kku.ac.th/kali/
https://mirrors.takeshi.nz/kali/
http://mirror.0x.sg/kali/
http://mirror.truenetwork.ru/kali/
http://mirrors.dotsrc.org/kali/
http://ftp.halifax.rwth-aachen.de/kali/
I personally use [http://mirrors.ocf.berkeley.edu/kali/] this mirror link.kali@kali:~$ sudo su
(enter your password)code-box
kali@kali:~$ sudo mousepad /etc/apt/sources.list
At this step you add two lines of repositories in above earlier guide.
But now here you have to replace links in this lines for solving updating speed.
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
replace only links with [http://mirrors.ocf.berkeley.edu/kali/]
so you get like this,
so you get like this,
deb http://mirrors.ocf.berkeley.edu/kali/ kali-rolling main non-free contrib
deb-src http://mirrors.ocf.berkeley.edu/kali/ kali-rolling main non-free contrib
Now save the file and open new terminal and run.
kali@kali:~$ sudo apt-get update
Now you're your Kali Linux problems like E: unable to locate package and slow updating are fixed successfully.After reading this article if you have any issues then feel free to comment below I will reply you as soon as possible.
Thank you.
Post a Comment
If You Have Any Problems Regarding To This Information Then Feel Free To Ask Here.