- 更新系统
1apt update && apt upgrade -y && apt dist-upgrade -y - 更新sources.list
1234567#备份旧文件cp -r /etc/apt/sources.list /etc/apt/sources.list.buster#替换Buster为Bullseyesed -i 's/buster/bullseye/g' /etc/apt/sources.list!!!Bullseye开始安全更新源从buster/updates变更为bullseye-security这种格式!!!sed -i 's#/updates#-security#g' /etc/apt/sources.list - 升级系统
1apt update && apt upgrade -y && apt dist-upgrade -y - 验证系统版本
12345678910#重启系统reboot#查看当前系统版本root@debian:~# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 11 (bullseye)Release: 11Codename: bullseye - 开启TCP BBR拥塞控制算法
1234567891011121314#写入配置文件cat >> /etc/sysctl.conf << EOFnet.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbrEOF#保存生效root@debian:~# sysctl -pnet.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbr#验证是否成功开启root@debian:~# lsmod | grep bbrtcp_bbr 20480 29
备注
- 建议备份好数据再执行升级
- 升级过程中自行选择是否保留旧的配置文件
- 软件版本/CA证书更新可以按 q 跳过查看