Debian change sources list: Difference between revisions
Jump to navigation
Jump to search
Created page with "<syntaxhighlight lang="bash" line> # 把以下写入 /etc/apt/sources.list.d/debian.sources Types: deb URIs: http://mirrors.ustc.edu.cn/debian Suites: bookworm bookworm-updates Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://mirrors.ustc.edu.cn/debian-security Suites: bookworm-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-key..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
# 把以下写入 /etc/apt/sources.list.d/ | # 把以下写入 /etc/apt/sources.list.d/ustc.sources | ||
Types: deb | Types: deb | ||
URIs: http://mirrors.ustc.edu.cn/debian | URIs: http://mirrors.ustc.edu.cn/debian | ||
Line 17: | Line 17: | ||
sudo apt update | sudo apt update | ||
sudo apt install apt-transport-https ca-certificates | sudo apt install apt-transport-https ca-certificates | ||
# 把上段代码框内的所有 http 改为 https | # 把上段代码框内的所有 http: 改为 https: | ||
sudo apt update | sudo apt update | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 11:47, 7 May 2025
# 把以下写入 /etc/apt/sources.list.d/ustc.sources
Types: deb
URIs: http://mirrors.ustc.edu.cn/debian
Suites: bookworm bookworm-updates
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: http://mirrors.ustc.edu.cn/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
sudo apt update
sudo apt install apt-transport-https ca-certificates
# 把上段代码框内的所有 http: 改为 https:
sudo apt update