合 Debian各版本代号简介及镜像源配置
代号简介
1 2 3 4 5 6 7 8 9 10 | 版本号 含义 Forky 适用于 debian 14 trixie 适用于 debian 13 bookworm 适用于 debian 12 bullseye 适用于 debian 11 buster 适用于 debian 10 stretch 适用于 debian 9 jessie 适用于 debian 8 wheezy 适用于 debian 7 |
Debian镜像源配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | cp /etc/apt/sources.list /etc/apt/sources.list_bk cat > /etc/apt/sources.list <<"EOF" deb http://mirrors.aliyun.com/debian/ buster main non-free contrib deb http://mirrors.aliyun.com/debian-security buster/updates main deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian-security buster/updates main deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib EOF cat > /etc/apt/sources.list <<"EOF" deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free EOF apt-get update -y && apt-get upgrade -y apt-get install -y curl ca-certificates gnupg sudo wget lsb-release apt-utils dialog apt-get install -y aptitude aptitude install -y curl wget iputils-ping procps net-tools lsb-release build-essential sysstat telnet aptitude install -y git make gcc apt-utils aptitude install -y vim bzip2 gnupg2 libtinfo5 apt-get update && apt-get upgrade apt --fix-broken install dpkg --configure -a apt-get install -f aptitude install -y openssh-clients openssh-server initscripts net-tools telnet which wget \ passwd e4fsprogs lrzsz sudo unzip lvm2 tree traceroute lsof file tar systemd \ bridge-utils mlocate mailx strace less mmv stress stress-ng iotop htop atop nmon \ dstat bcc-tools bcc ethtool aptitude install -y dos2unix rlwrap xdpyinfo xorg-x11-apps nmap numactl numactl-devel \ iproute rsyslog bash-completion screen tmux sysbench vim redhat-lsb smartmontools xinetd \ gcc make sysstat ksh binutils socat cmake automake autoconf bzr bison libtool deltarpm \ rsync libev pv subversion gnuplot jq oniguruma yum-fastestmirror net-snmp net-snmp-utils \ nfs-utils rpcbind dovecot bind-utils bind bind-chroot dnsmasq haproxy keepalived bzr \ fio bzip2 ntp flex lftp targetd targetcli iscsi-initiator-utils siege aria2 libzstd \ nethogs vnstat nload iptraf bmon bwm-ng trafshow collectl patch redhat-lsb-core |
常用安装源站点列表
官方全球镜像站列表地址:https://www.debian.org/mirror/list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | -- 阿里云镜像站 deb http://mirrors.aliyun.com/debian/ buster main non-free contrib deb http://mirrors.aliyun.com/debian-security buster/updates main deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian-security buster/updates main deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib -- 华为云镜像站 deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ buster main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free -- 腾讯云镜像站 deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib deb http://mirrors.cloud.tencent.com/debian-security buster/updates main deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib -- 163镜像站 deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib deb http://mirrors.163.com/debian/ buster-backports main non-free contrib deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster main non-free contrib deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib -- 中科大镜像站 deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free -- 清华大学镜像站 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free -- 兰州大学镜像站 deb http://mirror.lzu.edu.cn/debian stable main contrib non-free deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free deb http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free deb http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free deb-src http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free deb-src http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free -- 上海交大镜像站 deb https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free deb https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free |
如何检查当前版本codename
可以使用如下命令:
1 2 3 4 5 6 7 8 | root@lhrpg15:/# lsb_release No LSB modules are available. root@lhrpg15:/# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye |
codename的用途
如果你需要自己编辑更新列表文件, /etc/apt/sources.list ,你就会发现在 url 的后面紧跟着一个 codename