[Bug 2122124] Re: /etc/default/grub gone

Benjamin Drung 2122124 at bugs.launchpad.net
Tue Sep 16 09:36:35 UTC 2025


Steps to reproduce:

Install grub-pc, then grub-efi-amd64, then purge grub-pc. Then
/etc/default/grub is gone.

```
# apt install grub-pc
# apt install grub-efi-amd64
# apt list ~c
grub-pc/questing,now 2.14~git20250718.0e36779-1ubuntu4 amd64 [residual-config]
# apt purge ~c
Purging configuration files for grub-pc (2.14~git20250718.0e36779-1ubuntu4) ...
ucfr: Association belongs to grub-efi-amd64, not grub-pc
ucfr: Aborting
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79.)
debconf: falling back to frontend: Readline
ucfr: Association belongs to grub-efi-amd64, not grub-pc
ucfr: Aborting
Configuring grub-pc
-------------------

Do you want to have all GRUB 2 files removed from /boot/grub?

This will make the system unbootable unless another boot loader is
installed.

Remove GRUB 2 from /boot/grub? [yes/no] no
```

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2122124

Title:
  /etc/default/grub gone

Status in grub2 package in Ubuntu:
  New

Bug description:
  I noticed that my system booted without "quiet splash" and that
  /etc/default/grub was gone. I have grub-efi-amd64 and grub2-common
  installed, but not grub-common any more. I did run "apt purge ~c" some
  time before which removed grub-common.

  "sudo cp /usr/share/grub/default/grub /etc/default/grub" restored the
  previous behavior.

  So purging grub-common should not remove /etc/default/grub if
  grub2-common is installed.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: grub2-common 2.14~git20250718.0e36779-1ubuntu3
  ProcVersionSignature: Ubuntu 6.17.0-3.3-generic 6.17.0-rc3
  Uname: Linux 6.17.0-3-generic x86_64
  ApportVersion: 2.33.1-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Sep  5 15:41:12 2025
  InstallationDate: Installed on 2025-07-28 (39 days ago)
  InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
  ProcEnviron:
   LANG=de_DE.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: grub2
  UpgradeStatus: Upgraded to questing on 2025-08-08 (28 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2122124/+subscriptions




More information about the foundations-bugs mailing list