# Virmach Debian 9 -> 10

Virmach 机器实在不能使用萌卡脚本更换系统，只能手动升级...

1.更新：
```
apt-get update && apt-get upgrade
``` 
2.备份一份：
```
cp /etc/apt/sources.list /etc/apt/sources.list.bak
``` 
3.将/etc/apt/sources.list里所有“stretch”替换为“buster”：
```
sed -i 's/stretch/buster/g' /etc/apt/sources.list
``` 
4.再更新一下
```
apt-get update && apt-get upgrade
``` 
5.执行升级命令
```
apt-get dist-upgrade
```
6.提示完成后重启
```
reboot
```
7.查看下当前debian版本
```
lsb_release -a
```
8.清理老版本软件
```
apt-get autoremove
```
9.查看内核
```
uname -r  //内核版本高于 4.9 就行。
```
10.开启BBR
```
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
```
11.生效更改
```
sysctl -p
```
12.执行下面命令，如果结果中带有bbr，则证明你的内核已开启bbr。
```
sysctl net.ipv4.tcp_available_congestion_control
```
```
lsmod | grep bbr
```








