软件更新程序安装了最新的内核 4.4.0-130,然后我重新启动但无法在 grub 高级设置菜单中找到它。我寻找它,并确定它没有运行:
dpkg -l | grep linux-image
rc linux-image-4.4.0-109-generic 4.4.0-109.132 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-112-generic 4.4.0-112.135 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-116-generic 4.4.0-116.140 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-119-generic 4.4.0-119.143 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-121-generic 4.4.0-121.145 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-122-generic 4.4.0-122.146 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-124-generic 4.4.0-124.148 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-127-generic 4.4.0-127.153 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-130-generic 4.4.0-130.156 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
uname -r
4.4.0-128-generic
然后我运行 Grub Customizer,其中列出了新内核,保存了新配置并再次重新启动。新内核仍未运行。然后我打开终端并运行:
sudo update-grub
我再次以相同的结果重新启动。
更新:-128 和 -130 似乎启动但在桌面界面之前挂起,好像级联故障每个以前的内核现在都有启动问题。当前运行 4.4.0-124
我应该如何进行故障排除并使新内核在这种更新后正常运行?我可以清除 -130 然后通过 apt 重新安装更新吗?什么是安全的方法?
根据请求编辑:
:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1900716 0 1900716 0% /dev
tmpfs 384252 6096 378156 2% /run
/dev/sda6 40197496 8797872 29334628 24% /
tmpfs 1921244 45500 1875744 3% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1921244 0 1921244 0% /sys/fs/cgroup
/dev/loop0 38528 38528 0 100% /snap/handbrake-jz/132
/dev/loop2 38528 38528 0 100% /snap/handbrake-jz/133
/dev/loop1 142848 142848 0 100% /snap/gnome-3-26-1604/64
/dev/loop3 38656 38656 0 100% /snap/handbrake-jz/134
/dev/loop6 89088 89088 0 100% /snap/core/4917
/dev/loop4 88704 88704 0 100% /snap/core/4650
/dev/loop5 89088 89088 0 100% /snap/core/4830
/dev/sda7 502672688 410111864 71567120 86% /home
tmpfs 384252 88 384164 1% /run/user/1000
:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 475179 521 474658 1% /dev
tmpfs 480311 756 479555 1% /run
/dev/sda6 2564096 339157 2224939 14% /
tmpfs 480311 147 480164 1% /dev/shm
tmpfs 480311 3 480308 1% /run/lock
tmpfs 480311 16 480295 1% /sys/fs/cgroup
/dev/loop0 511 511 0 100% /snap/handbrake-jz/132
/dev/loop2 502 502 0 100% /snap/handbrake-jz/133
/dev/loop1 27651 27651 0 100% /snap/gnome-3-26-1604/64
/dev/loop3 503 503 0 100% /snap/handbrake-jz/134
/dev/loop6 12842 12842 0 100% /snap/core/4917
/dev/loop4 12841 12841 0 100% /snap/core/4650
/dev/loop5 12841 12841 0 100% /snap/core/4830
/dev/sda7 31932416 117242 31815174 1% /home
tmpfs 480311 37 480274 1% /run/user/1000
:~$
重新安装输出:
:~$ sudo apt install --reinstall linux-image-generic
[sudo] password for x:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-124 linux-headers-4.4.0-124-generic
linux-headers-4.4.0-127 linux-headers-4.4.0-127-generic
linux-image-4.4.0-124-generic linux-image-4.4.0-127-generic
linux-image-extra-4.4.0-124-generic linux-image-extra-4.4.0-127-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
Need to get 0 B/2,532 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 316411 files and directories currently installed.)
Preparing to unpack .../linux-image-generic_4.4.0.130.136_amd64.deb ...
Unpacking linux-image-generic (4.4.0.130.136) over (4.4.0.130.136) ...
Setting up linux-image-generic (4.4.0.130.136) ...
:~$
重启后:
:~$ uname -r
4.4.0-130-generic
:~$
我用相同的解决结果重新启动了 10 次,还测试了以前的内核回到 -124,观察到零(硬启动)在桌面界面之前挂起。显然,这解决了我的问题 user535733,如果您将您的想法重申为已发布的答案,我很乐意为您提供信用。我将对此进行更多研究,以供将来参考和启发。
第一个明显的问题是您没有安装最新的内核:您的最新内核是 -130,而 Ubuntu 目前正在分发 -136。此类问题的最常见原因是您的
linux-image-generic
元包已过时。解决方案:
sudo apt install --reinstall linux-image-generic
用于刷新元包,这反过来会为您的 Ubuntu 版本拉入最新内核。您似乎还有另一个更模糊的第二个问题,有几个症状:
linux-image-generic
的元包这些症状有几个可能的原因:
/
或中的磁盘空间不足/boot
:检查df
df -i
磁盘空间和 apt 问题通常不会自行解决。似乎你做了一些事情——无论你是否知道——来解决问题。