A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified

I am using 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux Debian GNU/Linux 7.1 (wheezy) Release: 7.1.

I typed “sudo apt-get upgrade” and hoped for the best (I updated all my packages just before doing that with “sudo ap-get update”).

I am not aware ow any changes to grub I could have made although I am not owner of this machine, I just happen to have sudo permissions and use it.

Please, what should I do? I am afraid of breaking my system:(

 A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified.                                                            
      │ What do you want to do about modified configuration file grub?                                  │
      │                                                                                                 │
      │                   install the package maintainer's version                                      │
      │                   keep the local version currently installed                                    │
      │                   show the differences between the versions                                     │
      │                   show a side-by-side difference between the versions                           │
      │                   show a 3-way difference between available versions                            │
      │                   do a 3-way merge between available versions (experimental)                    │
      │                   start a new shell to examine the situation                                    │

Here is the screen after “show the differences between the versions”

enter image description here

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

To sum up:

  1. Use the show the differences between the versions to check what the differences are.
  2. From the diff view, you can recognize the changes you have made to the file (if any), and the differences between current file and the maintainer file.
  3. Now you need to merge the maintainer file with the local changes: either install the package maintainer's version and then edit to introduce your changes to the settings, or keep the local version currently installed and then edit to introduce the changes made by the package maintainer.

In your case you have no changes made to the file, and the differences are minor and irrelevant to your setup, so you can ignore and proceed with install the package maintainer's version without the need to edit the file any further.

Method 2

I encounter similar issues with Ubuntu 18.04, I select show a side-by-side difference between the versions. Careful observation reveals that nothing serious was changed at all, it all looks similar.

So I simply select install the package maintainer's version and everything works just fine.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments