Hi!

On Tue, 2021-12-14 at 21:00:40 +0800, Mad Horse wrote:
> Package: dpkg
> Version: 1.21.1
> Severity: important

> On my system, /var/lib/dpkg is an dedicated file system mounted there, so
> there
> is an directory /var/lib/dpkg/lost+found, and fixup_misplaced_alternatives()
> within dpkg.postinst will try to "fix" it up, causing upgrade from dpkg
> 1.16.1
> failed.
> 
> Currently I walk this problem around by adding "lost+found" to the "known
> file
> list" in fixup_misplaced_alternatives(), but this function should only work
> on
> files, not directories, so we had better add some check to see whether this
> assumed target is a file, in the first place.

Ouch, indeed. Thanks, I've fixed this locally now, and will be
included in the next upcoming release.

Thanks,
Guillem

Reply via email to