[Pkg-pascal-devel] Bug#1004982: lazarus-src-2.2: Unable to remove the package under ru_RU.UTF-8 locale

Alexander Kernozhitsky sh200105 at mail.ru
Fri Feb 4 20:39:30 GMT 2022


Package: lazarus-src-2.2
Version: 2.2.0+dfsg1-5
Severity: important
Tags: l10n
X-Debbugs-Cc: sh200105 at mail.ru

Hello,

I was trying to remove lazarus-src-2.2 and got the following error message in
postrm script:

dpkg-divert: ошибка: имя файла «в» указано не с полным путём

Translating from Russian, it (approximately) means that

dpkg-divert: error: file name "в" is a relative path

The issue is in postrm script. There is a line in it which parses the output of
dpkg-divert command:

DIVERTIONS_LIST=`dpkg-divert --list "${LAZARUS_PREFIX}/${REMOVED_VERSIONS}" |
cut -d ' ' -f 3`

In Russian, the lines in dpkg-divert output look like this:

отклонение /usr/lib/lazarus/2.2.0/components/customdrawn/customdrawn.lpk в
/usr/lib/lazarus/2.2.0/components/customdrawn/customdrawn.lpk.orig из-за
lazarus-src-2.2

while in English they look like

diversion of /usr/lib/lazarus/2.2.0/components/customdrawn/customdrawn.lpk to
/usr/lib/lazarus/2.2.0/components/customdrawn/customdrawn.lpk.orig by lazarus-
src-2.2

Note that "diversion of" is translated as "отклонение", with different amount
of spaces. So, postrm script uses wrong field as a filename.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

lazarus-src-2.2 depends on no packages.

lazarus-src-2.2 recommends no packages.

Versions of packages lazarus-src-2.2 suggests:
ii  lazarus-ide-2.2  2.2.0+dfsg1-5

-- no debconf information


More information about the Pkg-pascal-devel mailing list