Переход на другой сервер загрузки
Views
Actions
Namespaces
Variants
Tools
Обзор
Официальные репозитории Manjaro размещаются на "серверах программного обеспечения" (также известных как "зеркала"). Физически расположенные по всему миру, эти зеркала отвечают за получение запросов на пакеты программного обеспечения и их доставку в Вашу систему. Поэтому есть три основных фактора, определяющие скорость загрузки:
- Ваше интернет-соединение
- скорость самого зеркала, и
- близость зеркала к Вам, то есть насколько близко или далеко оно находится с точки зрения сети.
Поэтому, кроме обновления интернет-пакета или смены провайдера, потенциально возможно улучшить скорость загрузки из репозиториев Manjaro выбрав другое зеркало для использования.
Чтобы получить список стран, которые в настоящее время обслуживают зеркала, используйте команду
Обновление списка зеркал простым способом
The easiest method is to use pacman-mirrors which automates the process of determining the fastest mirrors and updating the mirrrorlist accordingly.
A full description of how to use pacman-mirrors can be found one the Pacman-mirrors page.
Обновление списка зеркал вручную
This is undertaken by amending the mirrorlist file, which is read by Manjaro's package managers, for the internet addresses of the Manjaro servers to download updates and software applications from.
Редактирование списка зеркал
You have a multitude of options for editing text file. Every system and every user has a preferred GUI text editor. However due to security concerns, it is difficult to launch a GUI editor to correctly edit a protected system configuration file.
Therefore you need to be familiar with basic terminal usage. nano is a terminal based text editor available with all Manjaro editions that we will use as an example.
Терминал
You will need to first open your terminal in order to edit the mirrorlist file. The syntax of the command to edit the mirrorlist is:
For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:
Редактирование списка зеркал
Lines beginning with a hash '#' will be ignored by pacman. Hence to disable a mirror, a comment can be put in the beginning of a line starting with Server.
The mirrorlist can be long generally and only a part of it is displayed below:
~ >>> cat /etc/pacman.d/mirrorlist ## ## Manjaro Linux default mirrorlist ## Generated on 2018-02-17 13:32 ## ## Please use 'pacman-mirrors -f [NUMBER]' to modify mirrorlist ## ## Country : Germany Server = https://mirror.philpot.de/manjaro/unstable/$repo/$arch ## Country : Denmark Server = https://www.uex.dk/public/manjaro/unstable/$repo/$arch ## Country : United_Kingdom Server = http://manjaro.mirrors.uk2.net/unstable/$repo/$arch ## Country : Poland Server = https://mirror.tuchola-dc.pl/manjaro/unstable/$repo/$arch ## Country : Germany Server = http://mirror.ragenetwork.de/manjaro/unstable/$repo/$arch ## Country : Netherlands Server = https://mirror.koddos.net/manjaro/unstable/$repo/$arch ## Country : Netherlands Server = https://manjaro.mirror.wearetriple.com/unstable/$repo/$arch ## Country : Germany Server = https://mirror.alpix.eu/manjaro/unstable/$repo/$arch ## Country : Netherlands Server = https://mirror.neostrada.nl/manjaro/unstable/$repo/$arch ## Country : United_Kingdom Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable/$repo/$arch #----->snipped
Once you have disabled and/or enabled the desired server(s), save the changes and close the mirrorlist.
Шаг 2: Синхронизация с новым включенным сервером(ами)
Your Manjaro system has a database of all the software packages that are available from the official repositories. These are used by pacman to locate and download them for installation. Synchronising your database after changing servers will therefore ensure that it is up to date, and avoid any potential problems when subsequently downloading software packages.
To synchronise your database with the Manjaro repositories, enter the following command in the terminal:
Once the Mirrorlist has been amended and the database synchronised, the change will be immediate. There will be no need to reboot your system for the change to take effect.