Difference between revisions of "Pacman-mirrors/zh-cn"

Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 29: Line 29:
应用程序究竟如何生成镜像列表,可以通过在命令行上提供参数来添加。
应用程序究竟如何生成镜像列表,可以通过在命令行上提供参数来添加。


<div class="mw-translate-fuzzy">
=== '''重要提示''' ===
=== '''重要提示''' ===
{{Tip|每当运行 pacman-mirrors 时,都需要你同步你的数据库,并更新你的系统。}}
{{Tip|每当运行 pacman-mirrors 时,都需要你同步你的数据库,并更新你的系统。}}
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
Only in the event that '''Last-Modifed''' on the mirror is newer - pacman requests the complete file.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
This can present an awkward scenario where the local metadata is newer than the mirror but it contains older content.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
This inconsistency may then generate '''HTTP 404 Not Found''' errors because the local metadata could contain references to package versions which no longer exist.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The doubled '''yy''' is to mitigate such possible issues - especially when you switch branch or mirror.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
It is bad practise to indiscrimately use '''-Syyu''' for update scenarios, but - pamac mirrorlist timer rewrites the mirrorlist on a weekly or bi-weekly basis - thus increasing the possibility of having inconsistent metadata - in which case the doubled '''yy''' makes sense - which is also why it is used in the pacman-mirrors man page.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
To further the inconsistency - pamac uses copies of the pacman database - which has caused confusion before - pamac and pacman being in disagreement over available updates.
</div>
 
<div class="mw-translate-fuzzy">
$ sudo pacman -Syyu
$ sudo pacman -Syyu
</div>
</div>
8,138

edits