![無人值守升級將 linux-azure 內核變更為通用內核](https://rvso.com/image/928549/%E7%84%A1%E4%BA%BA%E5%80%BC%E5%AE%88%E5%8D%87%E7%B4%9A%E5%B0%87%20linux-azure%20%E5%85%A7%E6%A0%B8%E8%AE%8A%E6%9B%B4%E7%82%BA%E9%80%9A%E7%94%A8%E5%85%A7%E6%A0%B8.png)
我在執行 hypervs 的 Ubuntu 20.04 Focal Fossa VMS 上安裝了 linux-azure 核心。
問題是我還配置了無人值守升級,我注意到它將核心升級到 linux-generic,而不是更新已安裝的 linux-azure。所以我最終會在下次重新啟動時得到一台具有 linux-generic 的機器:
reboot system boot 5.4.0-37-generic Wed Jun 24 13:08 still running
reboot system boot 5.4.0-37-generic Wed Jun 24 13:07 - 13:08 (00:00)
reboot system boot 5.4.0-37-generic Wed Jun 24 13:03 - 13:07 (00:03)
reboot system boot 5.4.0-37-generic Wed Jun 24 11:52 - 12:18 (00:26)
reboot system boot 5.4.0-1016-azure Wed Jun 24 11:46 - 11:52 (00:05)
reboot system boot 5.4.0-1016-azure Wed Jun 24 08:56 - 11:46 (02:50)
reboot system boot 5.4.0-1016-azure Wed Jun 24 08:50 - 08:53 (00:03)
reboot system boot 5.4.0-37-generic Wed Jun 24 08:44 - 08:50 (00:05)
reboot system boot 5.4.0-37-generic Wed Jun 24 08:40 - 08:44 (00:03)
reboot system boot 5.4.0-37-generic Tue Jun 23 18:18 - 08:40 (14:21)
關於為什麼會發生這種情況以及如何解決問題的任何線索?
答案1
您需要安裝linux-azure
元包才能取得核心更新azure
。
你有linux-image-generic
並且linux-headers-generic
可以拉generic
內核。
系統預設使用編號最大的核心啟動。如果您想使用azure
核心自動啟動,則必須刪除generic
核心。