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

前端之家收集整理的这篇文章主要介绍了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个新包.

原文链接:https://www.f2er.com/linux/401495.html

猜你在找的Linux相关文章