After you install Kali Linux, you cannot update it. Because it does not have any upgrade source, we have to add them manually. This article will tell you how to add repositories. If you want to know more information about Kali Linux, you can go to official website.
Configure Upgrade Source
- Firstly, you need to edit source list file. This file is an important file, it includes repositories. In another words, this file tell the system where it can find the upgrade package. You can use Vi/Vim, nano or whatever you want to edit these file. After edit this file, please make sure that you save it.
- Secondly, add 2 lines to the file. These 2 lines is offical repositories. If you are Chinese please use Chinese repositories, because the offical is too slow. I am in the Australia, these two sources also slow. And I do not find any fast resource.
deb http://http.kali.org/kali kali-rolling main contrib non-free deb-src http://http.kali.org/kali kali-rolling main contrib non-free
- Thirdly, Clean your apt-get. This command is used to free up the disk space by cleaning retrieved (downloaded) .deb files (packages) from the local repository.
- Then, Do an update. This command is used to resynchronise the package index files from the their sources specified in /etc/apt/sources.list file. The update command fetched the packages from their locations and update the packages to newer version.
- Then, Do upgrade. This command is used to upgrade all the currently installed software packages on the system. Under any circumstances currently installed packages are not removed or packages which are not already installed neither retrieved and installed to satisfy upgrade dependencies.
- Finally, Do a distribution upgrade. dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. So, dist-upgrade command may remove some packages.
That’s it, all done! If you have any question, please let me know.