Kali 2020 "sudo apt-get update" update repositories on older images

Kali 2020 "sudo apt-get update" update repositories on older images

Maciej Skurytrzybyllnskiskamon

54 года назад

27 Просмотров

Here is the paste bin I used
https://pastebin.com/pRgyanbS

This video is for people who try to update their Kali Linux but receive errors about reaching the update server. If you are using an older image chances are that your repository list is either out-dated or blank. The image I am using is a Hyper-V image from 2019 when Offensive Security had Hyper-V images for download. The reason I made this video is because I spent way too long trying to figure out how to fix this issue, and I want you to have the most simple solution possible.

Here are the commands should the pastebin link stop working

WEBSITE FOR REPOSITORIES
https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

TERMINAL COMMANDS

NOTE: Instead of mousepad you can use any text editor such as vim, nano, gedit, etc... for example the command can be sudo gedit /etc/apt/sources.list

sudo mousepad /etc/apt/sources.list
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



Here is a useful commandlet that will allow you to find most files on your machine if you do not know what directory (folder) they are stored in.


LOCATE COMMAND WEBSITE
https://www.howtoforge.com/tutorial/linux-search-files-from-the-terminal/

TERMINAL COMMANDS
sudo apt-get install locate
yum install locate
sudo updatedb
locate sources.list

Тэги:

#kali #sudo #apt-get #update #repositories #fix
Ссылки и html тэги не поддерживаются


Комментарии: