On Tue, Mar 25, 2025 at 12:27 AM Xiyue Deng <manp...@gmail.com> wrote:
>
> Nicolas George <geo...@nsup.org> writes:
>
> > Barry Newberger (HE12025-03-24):
> >> package: dpkg
> >> version: 1.21.22 (amd64)
> >>
> >>  Using Discover update following error occurred:
> >>
> >> <html>Package failed to install:<br/><br/>Error while installing package:
> >> installed linux-image-6.1.0-32-amd64 package post-installation script
> >> subprocess returned error exit status 1</html>
> >
> > Then read backwards until you find the error message from the
> > subprocess. I did, it was quite obvious, you only need to read a dozen
> > lines at the end.
> >
> > (And I assume somebody will just give you the answer instead of letting
> > you learn to find it by yourself. Sigh.)
> >
> > Regards,
> >
> > --
> >   Nicolas George
> >
>
> Yes.  And OP should uninstall all unused linux images to free up the
> space before proceeding.
>
> Despite that the error message is clear, it is still a concern that this
> could happen often.  I myself got bitten by this despite that I knew of
> this potential issue.
>
> I think the Debian Installer allocates 1GB of space for /boot by
> default, and if you specify multiple systems exist, it will further
> allocate 500MB from it to /boot/efi, which makes the actually usable
> size of /boot 500MB. This used to be OK before bookworm where linux
> images is usually around 100MB unpacked.  But for Trixie (or some time
> around 6.10 and later, don't remember clearly) the linux image size
> grows to around 230MB.  So on Trixie if you already have 2 linux images
> installed, another upgrade will trigger this error.  IMHO this causes
> much inconvenience on average users.  Of course, apt now warns if it
> finds that the new installation will take more space than available
> which is very helpful.  Still, having more space will make it easier for
> users.
>
> I would suggest that Debian Installer should allocate more space for
> /boot by default.  Ideally it would be good to leave around 1GB of
> usable space for kernel images.

Also see <https://wiki.debian.org/UEFI#debian-installer_support>.

Jeff

Reply via email to