In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to configure the server apt domestic source, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Configure apt domestic sourc
Because the source that Kali comes with is foreign, it is often impossible to install the ring update package because of network problems. And the speed of foreign sources is very slow. So we directly use domestic sources, convenient and fast.
Click the terminal button, right-click the desktop and select open in terminal to open the terminal.
Root@xuegod53:~# vim / etc/apt/sources.list
Precede line 7 with a # and comment:
Insert the kali source of Ali Cloud:
Deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
Note: copy the above two lines, and then press the mouse wheel to paste into the document.
Use apt's new package source to get the latest package list
Root@xuegod53:~# apt update
It is found that Ali Cloud's kali source is already being used.
Extension: apt source for kali
Kali Rolling: it is an instant updated version of Kali. As long as there is an update in Kali, the update package will be placed in Kali Rolling for users.
Download and use. It provides users with a stable and updated version with the latest update installation package. This is our most commonly used source.
There are three types of software packages under Kali Rolling: main, non-free and contrib. Description of the package type for the Kali apt source:
Note: DFSG is the Debian Free Software guidelines (Debian Free Software Guidelines), which generally includes free redistribution, source code, prohibition of discrimination, etc.
Rolling; contrib contribution software; contribution; general release dists area
Let's take a look at the apt source and visit https://mirrors.aliyun.com/kali/ to view the software packages in the dists directory.
To avoid direct access to https://mirrors.aliyun.com/kali/dists/kali-rolling/, you can see three types of software packages.
The difference between apt update, apt upgrade and apt dist-upgrade
1 、 root@xuegod53:~# apt update
Note: the role of apt update is to get the latest list of packages from the source defined in the / etc/apt/sources.list file.
That is, running apt update does not update the software, but is equivalent to checking for updates under windows, obtaining the status of the software.
Root@xuegod53:~# apt update # executes this command to view the list of updates
The list of InRelease packages in https://mirrors.aliyun.com/kali/dists/kali-rolling/ will be downloaded
Download InRelease locally and open it with word to view a list of software packages, as shown below:
2 、 root@xuegod53:~# apt upgrade
Apt upgrade is the latest list of software packages obtained according to the update command to really update the software.
3 、 root@xuegod53:~# apt dist-upgrade
Apt dist-upgrade is the latest software package list obtained according to the update command to actually update the software.
4. The difference between apt upgrade and dist-upgrade:
Upgrade: the system upgrades the existing Package. If there is a dependency problem and this dependency needs to be installed with other new Package rings that affect the dependencies of other Package, this Package will not be upgraded and will be retained.
Dist-upgrade: you can solve the dependency problem wisely. If you have a dependency problem and need to install / remove a new Package, you will try to install / remove it. (so dist-upgrade is usually considered a risky upgrade.)
For example, package a used to rely on b c d, but may have been upgraded in the source, and now a depends on b c e. In this case, dist-upgrade removes d installation e and upgrades a package, while upgrade refuses to upgrade a package because of a change in dependencies. As shown in the figure:
For personal and server operations in general use: apt upgrade stable and reliable upgrade can meet our needs.
Finally, it is important to note that before each update, we need to run update before we can run upgrade and dist-upgrade, because the update command gets some information about the package, such as size and version number, and then runs upgrade to download the package. If we do not get the package information, then upgrade is invalid!
Finally, you must make a snapshot of the virtual machine.
Thank you for reading this article carefully. I hope the article "how to configure apt domestic sources on the server" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.