Package: ucf
Version: 3.0042
Severity: important

Dear Maintainer,

Seeing this when I upgrade or reinstall grub-pc. When that happens:

Setting up grub-pc (2.04-8) ...
grep: ]: No such file or directory
/usr/bin/ucf: 445: [: missing ]
dpkg-divert: error: filename "\/etc\/default\/grub" is not absolute

Use --help for help about diverting files.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned
error exit status 2

If I change /usr/bin/ucf like this diff, I still get the grep error but
the rest proceeds as expected:

diff --git a/ucf b/ucf
index fde42ae..49d07c9 100755
--- a/ucf
+++ b/ucf
@@ -448,11 +448,11 @@ if [ -n "$divert_line" ]; then
else
# extract the name of the diverted package.
# The fact that this requires output parsing is bug #485012
- divert_package=$(dpkg-divert --listpackage "$safe_dest_file")
+ divert_package=$(dpkg-divert --listpackage "$dest_file")
fi

if [ "$divert_package" != "$opt_package" ]; then
- safe_dest_file=$(dpkg-divert --truename "safe_dest_file")
+ safe_dest_file=$(dpkg-divert --truename "$dest_file")
fi
fi


-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 5.6.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ucf depends on:
ii coreutils 8.30-3
ii debconf 1.5.74
ii sensible-utils 0.0.12+nmu1

ucf recommends no packages.

ucf suggests no packages.

-- debconf information excluded

Reply via email to