笔记本安装后Debian12.6系统后需要的操作

admin
2024-07-28 / 0 评论 / 160 阅读 / 正在检测是否收录...
看点别的 -->

此内容有AI[文心一言]根据文章内容自动生成,并已由人工审核。

记录一下今天安装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
0

评论 (0)

取消