# 重启sshd服务 service sshd restart # 或者 /etc/init.d/ssh restart
修改apt源不从cdrom中读取
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
vi /etc/apt/sources.list
# 注释掉cdrom和默认的源 #deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bullseye contrib main
#deb http://security.debian.org/debian-security bullseye-security main contrib #deb-src http://security.debian.org/debian-security bullseye-security main contrib
# 添加源 deb http://mirrors.ustc.edu.cn/debian bullseye main deb-src http://mirrors.ustc.edu.cn/debian bullseye main
deb http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
deb http://mirrors.ustc.edu.cn/debian bullseye-updates main deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main