大型做网站wordpress音乐站
2026/2/5 1:28:06 网站建设 项目流程
大型做网站,wordpress音乐站,网站建设课程的感受,推广途径有哪些Ubuntu24.04日常使用过程的问题记录 2025/12/17 无操作卡死#xff0c;无法唤醒 问题描述#xff1a; 在使用Ubuntu24.04 内核版本 6.14.0-37 时#xff0c;笔记本电脑无操作一段时间后卡死在停留界面无反应#xff0c;或者黑屏但是没有关机#xff0c;远程连接ssh中断无法唤醒问题描述在使用Ubuntu24.04 内核版本 6.14.0-37 时笔记本电脑无操作一段时间后卡死在停留界面无反应或者黑屏但是没有关机远程连接ssh中断无法唤醒只能强制关机重启。在网上查了一下有说内核AMD显卡等驱动的问题导致也有说ACPI电源管理睡眠无法唤醒问题依法设置后依旧没有得到解决。决定降低内核版本试试。切换内核版本查看当前使用的内核版本uname -r使用如下命令可以查看系统可用的内核sudo dpkg --get-selections | grep linux-检查是否有你需要的内核版本注意同版本号的四个模块内核镜像 linux-image-版本号-generic内核头文件 linux-headers-版本号-generic内核模块 linux-modules-版本号-generic内核额外模块 linux-modules-extra-版本号-generic 少了这个模块切换之后就会没有网卡驱动等查询可更换的内核版本sudo apt search linux-image安装合适版本内核# 内核镜像 sudo apt install linux-image-6.11.0-26-generic # 内核头文件 sudo apt install linux-headers-6.11.0-26-generic # 内核模块 sudo apt install linux-modules-6.11.0-26-generic # 内核额外模块 sudo apt install linux-modules-extra-6.11.0-26-generic查询是否安装成功sudo dpkg --get-selections | grep linux-显示如下linux-headers-6.11.0-26-generic install linux-hwe-6.11-headers-6.11.0-26 install linux-image-6.11.0-26-generic install linux-modules-6.11.0-26-generic install linux-modules-extra-6.11.0-26-generic install一个简单的确定内核顺序的方法更新grubsudo update-grub输出如下信息Sourcing file /etc/default/grub Generating grub configuration file ... Found linux image: /boot/vmlinuz-6.14.0-37-generic Found initrd image: /boot/initrd.img-6.14.0-37-generic Found linux image: /boot/vmlinuz-6.11.0-26-generic Found initrd image: /boot/initrd.img-6.11.0-26-generic Found memtest86 64bit EFI image: /boot/memtest86x64.efi Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. Adding boot menu entry for UEFI Firmware Settings ... done或者通过grub.cfg查看cat /boot/grub/grub.cfg | grep menuentry Ubuntu, with Linux接着看你选定的内核版本是第几个从0开始标号。总结大致排列如下0 Ubuntu, with Linux 6.14.0-37-generic 1 Ubuntu, with Linux 6.14.0-37-generic (recovery mode) 2 Ubuntu, with Linux 6.14.0-36-generic 3 Ubuntu, with Linux 6.14.0-36-generic (recovery mode) 4 Ubuntu, with Linux 6.11.0-26-generic 5 Ubuntu, with Linux 6.11.0-26-generic (recovery moe)不要选(recovery mode)那一行。所以我要换的内核位置是4。更改grub默认启动项sudo vim /etc/default/grub将GRUB_DEFAULT0修改为GRUB_DEFAULT“14”更新引导文件sudo update-grub重启reboot查看内核版本uname -r注意如果选错进入到Recovery Mode中可以去root下去更改/etc/default/grub文件。或者用启动盘启动进入试用Ubuntu的图形界面然后再去修改原磁盘路径下的/etc/default/grub文件。启动之后依旧是Recovery Mode界面因为还没更新系统的grub此时点击grub更新后再关机重启即可。

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询