记录一下今天安装Debian12.6的一些问题和解决办法
1. 笔记本盒盖断网休眠
修改/etc/systemd/logind.conf
文件
vim /etc/systemd/logind.conf
# 在文件中添加下面的
HandleLidSwitch=ignore
# 重启服务
systemctl restart systemd-logind
2. 设置固定IP地址
修改/etc/network/interfaces
文件
vim /etc/network/interfaces
# 将dhcp改成static
iface ens18 inet static
# 在文件最后添加
address 192.168.88.103
netmask 255.255.255.0
gateway 192.168.88.1
dns1 192.168.88.1
# 重启网络服务
systemctl restart networking
3. 无法执行更新apt update
这个有可能是没有将DVD源禁用,在/etc/apt/sources.list
第一行前面加个#(一般都在第一行)
#deb cdrom:[Debian GNU/Linux 12.6.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20240629-10:19]/ bookworm contrib main non-free-firmware
deb http://mirrors.163.com/debian/ bookworm main non-free-firmware
deb-src http://mirrors.163.com/debian/ bookworm main non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware
# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://mirrors.163.com/debian/ bookworm-updates main non-free-firmware
deb-src http://mirrors.163.com/debian/ bookworm-updates main non-free-firmware
博主真是太厉害了!!!
叼茂SEO.bfbikes.com
怎么收藏这篇文章?
不错不错,我喜欢看 https://www.237fa.com/
不错不错,我喜欢看 www.jiwenlaw.com
文章的确不错啊https://www.cscnn.com/
你的文章让我学到了很多知识,非常感谢。 http://www.55baobei.com/bcZXaeee6h.html
你的才华让人惊叹,你是我的榜样。 https://www.yonboz.com/video/37279.html
你的文章让我心情愉悦,真是太棒了! https://www.yonboz.com/video/11030.html