# Debian常见问题
# 图形界面
# 关闭图形界面
- 打开grup配置文件
vi /etc/default/grub
- 修改GRUB_CMDLINE_LINUX="" 修改为:
GRUB_CMDLINE_LINUX="text"
- 更新grub
sudo update-grub
- 更新系统服务管理器配置
sudo systemctl set-default multi-user.target
- 重启:
sudo init 6
# 打开图形界面
启动图形界面修改Grub配置文件启用命令行界面
- 打开grup配置文件
vi /etc/default/grub
- 修改GRUB_CMDLINE_LINUX="text" 修改为:
GRUB_CMDLINE_LINUX=””
- 更新grub
update-grub
- 更新系统服务管理器配置
systemctl set-default multi-user.target
- 重启:
init 5
# 镜像源
# Debian11
cat > /etc/apt/sources.list << EOF
deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
EOF
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# Debian12
下面是Debian 12的国内镜像源:
cat > /etc/apt/sources.list << EOF
deb http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src http://mirrors.aliyun.com/debian-security/ bookworm-security main
deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10