Hello
If you are new to Linux especially Kali Linux then you might have faced the situation where you wanted to install any package, used the apt-get command in a terminal with su and ended up with some error
" no package found "
I also ended up to this error when i was new.
So to help others out of this mess I'm writing this article with some screenshots.
so first of all look at the screenshot below
is this what you ended up
you can ignore the package name.pacakge name is "chrome"
in my case.
Yours can be anything
This is a similar situation as " No package found " so no need to worry and just follow my instructions. :)
If you don't have leafpad then try any other editor
you can manually open the file by navigating to /etc/apt/
or
Open a terminal
Type su
enter root password
then type the command
Command: leafpad /etc/apt.sources.list
any hit enter
Kali sources.list Repositories | Kali Linux
Mine is Rolling so i will copy the text written in the box under
The Kali Rolling Repository
and paste it to the sources.list file
overwrite everything
Remove the # from 2nd line
Then Finally save it by clicking file>save
then goto the terminal and type
apt-get update
this will update the source list
wait for it to complete
then try the command you were trying to install the package it will be fixed .
Thanks for visiting and comment below if you get stuck at something.
Share us to help us grow
Post a Comment