debian12 快速指南
- 2025-05-15 21:45:00
- 丁国栋
- 原创 32
官网:https://www.debian.org/
下载地址:https://www.debian.org/distrib/
注:netinst.iso 需要联网安装。
安装注意事项:
- 使用英文作为安装语言(缺点:时区需要在安装后重新设置);
- 选择安装组件时,仅选择OpenSSH即可,目的是最小化安装;
网络配置文件
/etc/network/interfaces /etc/network/interfaces.d/*
重启网络:
systemctl restart networking.service
软件源配置
参考链接:
配置 /etc/apt/sources.list (传统格式、旧写法)
腾讯云外网
deb http://mirrors.tencent.com/debian bookworm main contrib non-free non-free-firmware deb http://mirrors.tencent.com/debian bookworm-updates main contrib non-free non-free-firmware deb http://mirrors.tencent.com/debian-security/ bookworm-security main contrib non-free-firmware
腾讯云内网
deb http://mirrors.tencentyun.com/debian bookworm main contrib non-free non-free-firmware deb http://mirrors.tencentyun.com/debian bookworm-updates main contrib non-free non-free-firmware deb http://mirrors.tencentyun.com/debian-security/ bookworm-security main contrib non-free-firmware
apt source 新的写法(DEB822 格式)
腾讯云外网
sed -i 's/deb.debian.org/mirrors.tencent.com/g' /etc/apt/sources.list.d/debian.sources
腾讯云内网
sed -i 's/deb.debian.org/mirrors.tencentyun.com/g' /etc/apt/sources.list.d/debian.sources
# cat /etc/apt/sources.list.d/debian.sources Types: deb # http://snapshot.debian.org/archive/debian/20240722T000000Z URIs: http://mirrors.tencent.com/debian Suites: bookworm bookworm-updates Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb # http://snapshot.debian.org/archive/debian-security/20240722T000000Z URIs: http://mirrors.tencent.com/debian-security Suites: bookworm-security Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
更新apt缓存
apt clean all apt update
--
发表评论