linux – 如何在运行apt-get upgrade后避免GRUB错误 – ubunut

我在EC2上运行ubuntu 14.04

运行apt-get升级后

我被提示屏幕,要求我重新安装GRUB引导装载程序

The GRUB boot loader was previously installed to a disk that is no longer present,or whose unique identifier has changed for some reason. It is important to make sure that the installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check again to make sure that GRUB is written to the appropriate boot devices.

>我如何知道我应该选择哪种设备?
>如果我在我的机器上安装了一些额外的EBS,我应该选择它们怎么办?
>我可以在升级期间避免此提示或提供命令的某些默认值吗?

以下提示是

A new version of /boot/grub/menu.lst is available,but the version installed currently has been locally modified.

  1. install the package maintainer’s version
  2. keep the local version currently installed
  3. show the differences between the versions
  4. show a side-by-side difference between the versions
  5. show a 3-way difference between available versions
  6. do a 3-way merge between available versions (experimental)
  7. start a new shell to examine the situation

同样的问题在这里:

>我怎么知道我应该选择哪一个?
>我可以在升级期间避免此提示或提供命令的某些默认值吗?

谢谢 !!

解决方法

这个 located here目前有一个错误,它也是12.02 LTS为 seen here.Anders Hall错误报告底部列出的步骤适用于14.04 LTS 64位(HVM)AMI(ami-d05e75b8)在US-EAST-1):
$sudo apt-get update
$sudo rm /boot/grub/menu.lst
$sudo update-grub-legacy-ec2 -y
$sudo apt-get dist-upgrade -qq --force-yes
$sudo reboot

重启后,14.04.2 LTS升级到14.04.3 LTS和sudo apt-get update&& sudo apt-get upgrade返回0个新包.

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...