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

Abou Al Montacir abou.almontacir at sfr.fr
Wed Feb 12 18:27:09 GMT 2025


Hi Johann,

On Tue, 2025-02-11 at 21:54 +0100, Johann Glaser wrote:
> Hi!
> > ...
> 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.
OK that is the basic scenario (equivalent to aptitude update && aptitude
upgrade) that I usually use to upgrade.
> 
> Lately it was always 3.8+dfsg1-${N-1}, and before that it was
> 3.6+dfsg1-4, according to:
Actually the diversion issue was fixed in  3.8+dfsg1-3.
> 
>   # 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.
Yes they should be identical as the issue was fixed in -7.
However from you log you appear to upgrade from -6 to -7. I think this happens
because somehow, you installed a broken version (-1 or -2) and that prevented
the right creation of diversions. So each time you upgrade it will give this
error, until you purge or force installe (which you did both below).
> 
> > > 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.
Yes, I think now your system will no more complain as the install --force-all
forced fix of the diversion.
> 
> > > -- 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) ...
Installing 3.8 does not uninstall 3.6. This is a feature, not a bug.
The command you ran, does not uninstall lcl units, so you need to uninstall them
too.
Fpc was probably installed manually that is why it remains.
> 
> 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. :-)
For users, we really recommend to install this way (aptitude install lazarus
fpc) which corresponds to (aptitude then /lazarus i /fpc i g)
> 
> 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:
You are probably missing a package (which means a missing dependency on our
side)
I'll try to find that dependency, but if you can send me the list of installed
lazarus and lcl packages it could help me.
something like aptitude search 'lazarus|^lcl-'
> 
> # 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
I consider this the only remaining issue in this bug report.
Is that OK for you?
-- 
Cheers,
Abou Al Montacir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20250212/b7b79c36/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20250212/b7b79c36/attachment-0001.sig>


More information about the Pkg-pascal-devel mailing list