大网数据广告活动
服务器运维问答

Fresh EC2 instance pending Kernel Upgrade

· 52CE 我爱测

Just spin up an EC2 instance with Ubuntu, if it is a new fresh instance, isn't supposed the Kernel to be up to date? After I run a sudo apt update && sudo apt install <any-package> , I receive the message below: Package configura…

问题原文

原帖链接 · Arrow Root · CC BY-SA 4.0

Just spin up an EC2 instance with Ubuntu, if it is a new fresh instance, isn't supposed the Kernel to be up to date?

After I run a sudo apt update && sudo apt install <any-package>, I receive the message below:

Package configuration

  ┌───────────────────────┤ Pending kernel upgrade ├───────────────────────┐
  │                                                                        │ 
  │ Newer kernel available                                                 │ 
  │                                                                        │ 
  │ The currently running kernel version is 5.15.0-1031-aws which is not   │ 
  │ the expected kernel version 5.19.0-1022-aws.                           │ 
  │                                                                        │ 
  │ Restarting the system to load the new kernel will not be handled       │ 
  │ automatically, so you should consider rebooting.                       │ 
  │                                                                        │ 
  │                                 <Ok>                                   │ 
  │                                                                        │ 
  └────────────────────────────────────────────────────────────────────────┘ 
                                                                             

Is this normal? If not, how can I avoid it?

已采纳解答

原帖链接 · vidarlo · CC BY-SA 4.0

Please read the message. It explains things perfectly.

The headline is Pending kernel upgrade, which informs you that there's a newer kernel pending.

The last line informs you what do to apply this change:

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

And no, you are not guaranteed that images are perfectly up to date at all times. You should perform required upgrades after deploying.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-04-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。