之前使用和安装了哪些内核?

之前使用和安装了哪些内核?

(如果相关的话,则是 Ubuntu 20.04。)

我看到一些挂起/崩溃(可能是不稳定),这可能是由于内核更新而导致的(我想我没有在以前的内核中看到过这种情况;我记得最近有一个内核更新)。

我如何才能查看以前安装并使用过的内核的日志?

(或者可能更通用:如何查看已安装/更新软件包的日志apt?)

答案1

我想我在写这个问题的时候已经回答过了:

有一个 APT 日志,位于/var/log/apt/history.log

从那里我看到:

...

Start-Date: 2020-05-01  16:49:34
Requested-By: kubuntu (999)
Install: ... linux-image-5.4.0-28-generic:amd64 (5.4.0-28.32, automatic), ...
Upgrade: linux-headers-generic:amd64 (5.4.0.26.32, 5.4.0.28.33), linux-image-generic:amd64 (5.4.0.26.32, 5.4.0.28.33), linux-modules-nvidia-4
40-generic-hwe-20.04:amd64 (5.4.0-26.30+2, 5.4.0-28.32), linux-generic:amd64 (5.4.0.26.32, 5.4.0.28.33)
End-Date: 2020-05-01  16:50:23

...

Start-Date: 2020-05-05  11:24:27
Commandline: packagekit role='update-packages'
Requested-By: az (1000)
Install: linux-image-5.4.0-29-generic:amd64 (5.4.0-29.33), linux-modules-extra-5.4.0-29-generic:amd64 (5.4.0-29.33), linux-headers-5.4.0-29-g
eneric:amd64 (5.4.0-29.33), linux-modules-nvidia-440-5.4.0-29-generic:amd64 (5.4.0-29.33), linux-modules-5.4.0-29-generic:amd64 (5.4.0-29.33)
, linux-headers-5.4.0-29:amd64 (5.4.0-29.33)
Upgrade: update-manager-core:amd64 (1:20.04.9, 1:20.04.10), linux-headers-generic:amd64 (5.4.0.28.33, 5.4.0.29.34), linux-libc-dev:amd64 (5.4
.0-28.32, 5.4.0-29.33), linux-image-generic:amd64 (5.4.0.28.33, 5.4.0.29.34), python3-update-manager:amd64 (1:20.04.9, 1:20.04.10), linux-mod
ules-nvidia-440-generic-hwe-20.04:amd64 (5.4.0-28.32, 5.4.0-29.33), linux-generic:amd64 (5.4.0.28.33, 5.4.0.29.34)
End-Date: 2020-05-05  11:25:08

...

Start-Date: 2020-05-06  09:18:30
Commandline: /usr/bin/unattended-upgrade
Remove: linux-modules-nvidia-440-5.4.0-26-generic:amd64 (5.4.0-26.30+2), linux-image-5.4.0-26-generic:amd64 (5.4.0-26.30)
End-Date: 2020-05-06  09:18:36

...

这已经很有帮助了。(不确定是否还有比这更好的。)

相关内容