[Pkg-pascal-devel] Bug#1095687: lazarus-ide: Files in multiple packets blocks installation

Johann Glaser Johann.Glaser at gmx.at
Tue Feb 11 20:54:04 GMT 2025


Hi!

Am Montag, dem 10.02.2025 um 21:33 +0100 schrieb Abou Al Montacir:
> Hi Johan,
> 
> On Mon, 2025-02-10 at 20:11 +0100, Johann Glaser wrote:
> > Package: lazarus-ide
> > Version: 3.8+dfsg1-7
> > Severity: important
> > 
> > Dear Maintainer,
> > 
> > Installing Lazarus 3.8 causes problems (IIRC since the first
> > subversion
> > 3.8+dfsg1-1).
> Yes, the first versions of Lazarus 3.8 were affected by a bug causing
> this kind of issue.
> However this bug was solved.

Ok, thanks, good to know.

> > I used "aptitude" to update, but also on the command line with
> > "dpkg" I
> > get the same errors:
> Can you give a bit more precision?
>  1. What aptitude command did you use exactly?
>  2. What version was already installed before you execute that
> command?

I use "aptitude" in its text-mode "GUI" version. Just "aptitude" as
root, then "u" to update the packages list, then "g" to start to update
the packages.

Lately it was always 3.8+dfsg1-${N-1}, and before that it was
3.6+dfsg1-4, according to:

  # zgrep -h lazarus-ide /var/log/aptitude* | sort

> > # dpkg -i /var/cache/apt/archives/lcl-units-3.8_3.8+dfsg1-
> > 7_amd64.deb
> > /var/cache/apt/archives/lazarus-ide-3.8_3.8+dfsg1-7_amd64.deb
> > (Reading database ... 646108 files and directories currently
> > installed.)
> > Preparing to unpack .../lcl-units-3.8_3.8+dfsg1-7_amd64.deb ...
> > Unpacking lcl-units-3.8 (3.8+dfsg1-7) over (3.8+dfsg1-6) ...
> > dpkg: error processing archive /var/cache/apt/archives/lcl-
> > units-3.8_3.8+dfsg1-7_amd64.deb (--install):
> >  trying to overwrite
> > '/usr/lib/lazarus/3.8/components/IdeInspector/ideinspector.lpk',
> > which
> > is also
> > ...
> Can you please check the content of
> cat /var/lib/dpkg/info/lazarus-src-3.8.preinst

See attachment. This is from 3.8+dfsg1-7. --> No, it is now from
3.8+dfsg-8, which I installed during writing this EMail, see below. But
from a visual check it looks very similar if not identical.

> > When I install with --force-all, it works with numerous warnings:
> > 
> > # dpkg -i --force-all /var/cache/apt/archives/lcl-
> > units-3.8_3.8+dfsg1-7_amd64.deb /var/cache/apt/archives/lazarus-
> > ide-3.8_3.8+dfsg1-7_amd64.deb
> > (Reading database ... 646108 files and directories currently
> > installed.)
> > Preparing to unpack .../lcl-units-3.8_3.8+dfsg1-7_amd64.deb ...
> > Unpacking lcl-units-3.8 (3.8+dfsg1-7) over (3.8+dfsg1-6) ...
> > dpkg: warning: overriding problem because --force enabled:
> > dpkg: warning: trying to overwrite
> > '/usr/lib/lazarus/3.8/components/IdeInspector/ideinspector.lpk',
> > which
> > ...
> > also in
> > package lazarus-src-3.8 (3.8+dfsg1-7)
> > Setting up lcl-units-3.8 (3.8+dfsg1-7) ...
> > Setting up lazarus-ide-3.8 (3.8+dfsg1-7) ...
> > update-alternatives: using /usr/lib/lazarus/3.8/startlazarus to
> > provide
> > /usr/bin/lazarus-ide (lazarus-ide) in auto mode
> > ...
> Does it work with this?

Yea, as said, it complains a lot about files which it overwrites, but
it finishes, and then dpkg as well as aptitude are happy, i.e., there
is no unconfigured package or something like that.

> > -- System Information:
> > Debian Release: trixie/sid
> >   APT prefers stable-security
> >   APT policy: (500, 'stable-security'), (500, 'unstable'), (500,
> > 'testing'), (500, 'stable'), (1, 'experimental')
> > Architecture: amd64 (x86_64)
> > Foreign Architectures: i386
> > ....
> > lazarus-ide recommends no packages.
> > 
> > lazarus-ide suggests no packages.
> > ...
> Will it be possible to uninstall (maybe purge) all lazarus/lcl
> packages and install again?
> I just installed a fresh version of 3.8 over a 3.6 and it went as
> expected.

Interesting! After i purged all lazarus-*-3.8 packages, I still had
many 3.6 packages left.

Entfernen von lcl-3.6:amd64 (3.6+dfsg1-4) ...
Entfernen von lcl-units-3.6 (3.6+dfsg1-4) ...
Entfernen von lcl-gtk2-3.6 (3.6+dfsg1-4) ...
Entfernen von lcl-nogui-3.6 (3.6+dfsg1-4) ...
Entfernen von fp-units-fcl:amd64 (3.2.2+dfsg-45) ...
Entfernen von fpc (3.2.2+dfsg-45) ...
Entfernen von fpc-3.2.2 (3.2.2+dfsg-45) ...
Entfernen von lazarus-ide-gtk2-3.6 (3.6+dfsg1-4) ...
Entfernen von lazarus-ide-3.6 (3.6+dfsg1-4) ...
Entfernen von lazarus-src-3.6 (3.6+dfsg1-4) ...

Then I've installed a fresh lazarus with all dependencies, plus FPC,
and there where no such errors any more. There are no unconfigured
packages and aptitude is happy. I hope I didn't have any custom Lazarus
or FPC configuration files. :-)

However, I got a few warnings:

update-alternatives: Warnung: Erstellung von
/usr/share/man/man1/lazbuild.1.gz wird übersprungen, weil die
zugehörige Datei /usr/share/man/man1/lazbuild-3.8.1.gz (der Link-Gruppe
lazarus) nicht existiert
update-alternatives: Warnung: Erstellung von
/usr/share/man/man1/lazre.1.gzs wird übersprungen, weil die zugehörige
Datei /usr/share/man/man1/lazres-3.8.1.gz (der Link-Gruppe lazarus)
nicht existiert
update-alternatives: Warnung: Erstellung von
/usr/share/man/man1/lrstolfm.1.gz wird übersprungen, weil die
zugehörige Datei /usr/share/man/man1/lrstolfm-3.8.1.gz (der Link-Gruppe
lazarus) nicht existiert
update-alternatives: Warnung: Erstellung von
/usr/share/man/man1/svn2revisioninc.1.gz wird übersprungen, weil die
zugehörige Datei /usr/share/man/man1/svn2revisioninc-3.8.1.gz (der
Link-Gruppe lazarus) nicht existiert
update-alternatives: Warnung: Erstellung von
/usr/share/man/man1/updatepofiles.1.gz wird übersprungen, weil die
zugehörige Datei /usr/share/man/man1/updatepofiles-3.8.1.gz (der Link-
Gruppe lazarus) nicht existiert

This says in German "Warning: Creation of ... is skipped, because the
file ... (of the link group lazarus) doesn't exist." for these 5 files.
They also don't exist after the installation:

# stat /usr/share/man/man1/lazbuild.1.gz
/usr/share/man/man1/lazre.1.gzs /usr/share/man/man1/lrstolfm.1.gz
/usr/share/man/man1/svn2revisioninc.1.gz
/usr/share/man/man1/updatepofiles.1.gz 
stat: cannot statx '/usr/share/man/man1/lazbuild.1.gz': No such file or
directory
stat: cannot statx '/usr/share/man/man1/lazre.1.gzs': No such file or
directory
stat: cannot statx '/usr/share/man/man1/lrstolfm.1.gz': No such file or
directory
stat: cannot statx '/usr/share/man/man1/svn2revisioninc.1.gz': No such
file or directory
stat: cannot statx '/usr/share/man/man1/updatepofiles.1.gz': No such
file or directory

Thanks for helping!

Bye
  Hansi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lazarus-src-3.8.preinst
Type: application/x-shellscript
Size: 30119 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20250211/4dd2d014/attachment-0003.bin>


More information about the Pkg-pascal-devel mailing list