2022-09-03 09:51:59 +00:00
|
|
|
---
|
|
|
|
title: 软件镜像源
|
|
|
|
categories:
|
|
|
|
- Linux
|
|
|
|
keywords:
|
|
|
|
- 软件
|
|
|
|
- 镜像源
|
|
|
|
- mirror
|
|
|
|
- Arch Linux
|
|
|
|
- Arch Linux ARM
|
|
|
|
- pacman
|
|
|
|
- Raspberry Pi OS
|
|
|
|
- raspbian
|
|
|
|
- debian
|
|
|
|
- apt
|
|
|
|
- Python
|
|
|
|
- pypi
|
|
|
|
- pip
|
|
|
|
- Node
|
|
|
|
- nodejs
|
|
|
|
- npm
|
|
|
|
tags:
|
|
|
|
- Arch Linux
|
|
|
|
- Arch Linux ARM
|
|
|
|
- Raspberry Pi OS
|
|
|
|
- Raspbian
|
|
|
|
- Debian
|
|
|
|
- Python
|
|
|
|
- Node.js
|
|
|
|
date: 2022-09-03 15:30:47
|
|
|
|
---
|
|
|
|
|
|
|
|
# 国内软件镜像源
|
|
|
|
|
|
|
|
- [中国科学技术大学软件源](https://mirrors.ustc.edu.cn)
|
|
|
|
- [清华大学开源软件镜像站](https://mirrors.tuna.tsinghua.edu.cn)
|
|
|
|
- [上海交通大学软件源](https://mirrors.sjtug.sjtu.edu.cn)
|
|
|
|
- [西安交通大学软件源](https://mirrors.xjtu.edu.cn)
|
|
|
|
- [腾讯软件源](https://mirrors.cloud.tencent.com)
|
|
|
|
- [阿里云软件源](https://mirrors.aliyun.com)
|
|
|
|
|
|
|
|
<!-- more -->
|
|
|
|
|
|
|
|
# Arch Linux
|
|
|
|
|
|
|
|
``` conf /etc/pacman.d/mirrorlist
|
|
|
|
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
|
|
|
|
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
|
|
|
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
|
|
|
|
Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch
|
|
|
|
Server = https://mirrors.xjtu.edu.cn/archlinux/$repo/os/$arch
|
|
|
|
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
|
|
|
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
|
|
|
```
|
|
|
|
|
|
|
|
``` conf /etc/pacman.conf
|
|
|
|
[options]
|
|
|
|
HoldPkg = pacman glibc
|
|
|
|
Architecture = auto
|
|
|
|
IgnorePkg =
|
|
|
|
Color
|
|
|
|
CheckSpace
|
|
|
|
ParallelDownloads = 5
|
|
|
|
SigLevel = Required DatabaseOptional
|
|
|
|
LocalFileSigLevel = Optional
|
|
|
|
[core]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[extra]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[community]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[multilib]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[archlinuxcn]
|
|
|
|
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
|
|
|
|
#Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch
|
|
|
|
#Server = https://repo.archlinuxcn.org/$arch
|
|
|
|
```
|
|
|
|
|
|
|
|
# Arch Linux ARM
|
|
|
|
|
|
|
|
以下是 Arch Linux for Raspberry Pi 3,4,400 的配置,注意架构是 aarch64
|
|
|
|
|
|
|
|
``` conf /etc/pacman.d/mirrorlist
|
|
|
|
Server = https://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo
|
|
|
|
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxarm/$arch/$repo
|
|
|
|
```
|
|
|
|
|
|
|
|
``` conf /etc/pacman.conf
|
|
|
|
[options]
|
|
|
|
HoldPkg = pacman glibc
|
|
|
|
Architecture = aarch64
|
|
|
|
Color
|
|
|
|
CheckSpace
|
|
|
|
ParallelDownloads = 5
|
|
|
|
SigLevel = Required DatabaseOptional
|
|
|
|
LocalFileSigLevel = Optional
|
|
|
|
[core]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[extra]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[community]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[alarm]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[aur]
|
|
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
```
|
|
|
|
|
|
|
|
# Raspberry Pi OS
|
|
|
|
|
|
|
|
以下是 debian 衍生版 Raspberry Pi OS 64-Bit 的配置文件
|
|
|
|
|
|
|
|
``` conf /etc/apt/sources.list
|
|
|
|
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
|
|
|
|
# deb-src http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
|
|
|
|
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
|
|
|
|
# deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
|
|
|
|
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
|
|
|
|
# deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main non-free contrib
|
|
|
|
```
|
2022-09-03 10:34:29 +00:00
|
|
|
|
|
|
|
# Python
|
|
|
|
|
|
|
|
见 {% post_link Python/Python环境搭建 %}
|
|
|
|
|
|
|
|
# Node.js
|
|
|
|
|
|
|
|
见 {% post_link 'Node.js/Node.js环境搭建' %}
|