You are not logged in.
I have a ceres mbr install (no efi) and I just did my daily update and got this error:
/usr/sbin/grub-mkconfig: 300: /etc/grub.d/25_bli: not found
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error ex
it status 127
Errors were encountered while processing:
grub-pc
An explanation can be found here from the developer, but to quote the last entry:
While this has been fixed upstream already, systems like yours are
also not supported anymore, since merged-usr is mandatory since
bookworm.I'm going to set a fixed version in the future for the version
that includes the fix.
So, if you are running ceres, you might want to pin grub to what you have got and hold off on the update to version 2.12~rc1-7:
apt policy grub-pc
grub-pc:
Installed: 2.12~rc1-7
Candidate: 2.12~rc1-7
Version table:
*** 2.12~rc1-7 500
500 http://deb.devuan.org/merged ceres/main amd64 Packages
100 /var/lib/dpkg/status
Offline
So it's not going to be fixed?
edit: isn't changing shebang of /etc/grub.d/25_bli to #!/bin/sh should fix this?
Last edited by sangam (2023-09-06 07:23:58)
Offline
The fix is already in git:
https://salsa.debian.org/grub-team/grub … f6acddbba9
Offline
I don't think is it fixed in version 2.12~rc1-9 of grub-pc, which appeared in the repos yesterday:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.4.0-4-amd64
Found initrd image: /boot/initrd.img-6.4.0-4-amd64
/usr/sbin/grub-mkconfig: 300: /etc/grub.d/25_bli: not found
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error ex
it status 127
apt policy grub-pc
grub-pc:
Installed: 2.12~rc1-9
After the upgrade produced this error, I did a complete removal of grub with:
apt remove grub-common grub-pc grub-pc-bin grub2-common --purge
And then installed with:
apt install grub-common grub-pc grub-pc-bin grub2-common os-prober
And it still produced the error above.
/etc/grub.d/25_bli is there and it contains:
#!/usr/bin/sh
set -e
# <comments removed>
cat << EOF
if [ "\$grub_platform" = "efi" ]; then
insmod bli
fi
EOF
lines #290-305 of /usr/sbin/grub-mkconfig are:
for i in "${grub_mkconfig_dir}"/* ; do
case "$i" in
# emacsen backup files. FIXME: support other editors
*~) ;;
# emacsen autosave files. FIXME: support other editors
*/\#*\#) ;;
*)
if grub_file_is_not_garbage "$i" && test -x "$i" ; then
echo
echo "### BEGIN $i ###"
"$i"
echo "### END $i ###"
fi
;;
esac
done
Thanks sangam:
isn't changing shebang of /etc/grub.d/25_bli to #!/bin/sh should fix this?
It sure did, and it installed without error after doing an "apt dist-upgrade"
This package will need to be edited after installing or updating, or rebuilt.
Offline
The script is installed by grub-common, hence it possibly affects any flavor of grub.
I run in the same problem when upgrading grub-efi-amd64.
Note that my PC came with a pre-installed usr-merged Ubuntu, Then I moved to Debian and dpkg warned me that my system was not in accordance with the Debian policy to have separated /bin /sbin etc. and I was not guaranteed that any upgrade would have been safe.
So I used a scipt to revert my system to a non-merged one.
Now instead Bookworm follows a strict usr-merged policy
What to do? I think, anyway, it is time to discuss moving (or not) Devuan.
Offline
try
dpkg-fsys-usrunmess
Offline