<html><head></head><body><div>Hi <span style="font-size: 14.666667px;">Johann,</span></div><div><br></div><div>On Tue, 2025-02-11 at 21:54 +0100, Johann Glaser wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi!<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>...</div></blockquote><div>Ok, thanks, good to know.<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>I used "aptitude" to update, but also on the command line with<br></div><div>"dpkg" I<br></div><div>get the same errors:<br></div></blockquote><div>Can you give a bit more precision?<br></div><div> 1. What aptitude command did you use exactly?<br></div><div> 2. What version was already installed before you execute that<br></div><div>command?<br></div></blockquote><div><br></div><div>I use "aptitude" in its text-mode "GUI" version. Just "aptitude" as<br></div><div>root, then "u" to update the packages list, then "g" to start to update<br></div><div>the packages.<br></div></blockquote><div>OK that is the basic scenario (equivalent to aptitude update && aptitude upgrade) that I usually use to upgrade.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>Lately it was always 3.8+dfsg1-${N-1}, and before that it was<br></div><div>3.6+dfsg1-4, according to:<br></div></blockquote><div>Actually the diversion issue was fixed in 3.8+dfsg1-3.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div> # zgrep -h lazarus-ide /var/log/aptitude* | sort<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div># dpkg -i /var/cache/apt/archives/lcl-units-3.8_3.8+dfsg1-<br></div><div>7_amd64.deb<br></div><div>/var/cache/apt/archives/lazarus-ide-3.8_3.8+dfsg1-7_amd64.deb<br></div><div>(Reading database ... 646108 files and directories currently<br></div><div>installed.)<br></div><div>Preparing to unpack .../lcl-units-3.8_3.8+dfsg1-7_amd64.deb ...<br></div><div>Unpacking lcl-units-3.8 (3.8+dfsg1-7) over (3.8+dfsg1-6) ...<br></div><div>dpkg: error processing archive /var/cache/apt/archives/lcl-<br></div><div>units-3.8_3.8+dfsg1-7_amd64.deb (--install):<br></div><div> trying to overwrite<br></div><div>'/usr/lib/lazarus/3.8/components/IdeInspector/ideinspector.lpk',<br></div><div>which<br></div><div>is also<br></div><div>...<br></div></blockquote><div>Can you please check the content of<br></div><div>cat /var/lib/dpkg/info/lazarus-src-3.8.preinst<br></div></blockquote><div><br></div><div>See attachment. This is from 3.8+dfsg1-7. --> No, it is now from<br></div><div>3.8+dfsg-8, which I installed during writing this EMail, see below. But<br></div><div>from a visual check it looks very similar if not identical.<br></div></blockquote><div>Yes they should be identical as the issue was fixed in -7.</div><div>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).</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>When I install with --force-all, it works with numerous warnings:<br></div><div><br></div><div># dpkg -i --force-all /var/cache/apt/archives/lcl-<br></div><div>units-3.8_3.8+dfsg1-7_amd64.deb /var/cache/apt/archives/lazarus-<br></div><div>ide-3.8_3.8+dfsg1-7_amd64.deb<br></div><div>(Reading database ... 646108 files and directories currently<br></div><div>installed.)<br></div><div>Preparing to unpack .../lcl-units-3.8_3.8+dfsg1-7_amd64.deb ...<br></div><div>Unpacking lcl-units-3.8 (3.8+dfsg1-7) over (3.8+dfsg1-6) ...<br></div><div>dpkg: warning: overriding problem because --force enabled:<br></div><div>dpkg: warning: trying to overwrite<br></div><div>'/usr/lib/lazarus/3.8/components/IdeInspector/ideinspector.lpk',<br></div><div>which<br></div><div>...<br></div><div>also in<br></div><div>package lazarus-src-3.8 (3.8+dfsg1-7)<br></div><div>Setting up lcl-units-3.8 (3.8+dfsg1-7) ...<br></div><div>Setting up lazarus-ide-3.8 (3.8+dfsg1-7) ...<br></div><div>update-alternatives: using /usr/lib/lazarus/3.8/startlazarus to<br></div><div>provide<br></div><div>/usr/bin/lazarus-ide (lazarus-ide) in auto mode<br></div><div>...<br></div></blockquote><div>Does it work with this?<br></div></blockquote><div><br></div><div>Yea, as said, it complains a lot about files which it overwrites, but<br></div><div>it finishes, and then dpkg as well as aptitude are happy, i.e., there<br></div><div>is no unconfigured package or something like that.<br></div></blockquote><div>Yes, I think now your system will no more complain as the install --force-all forced fix of the diversion.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>-- System Information:<br></div><div>Debian Release: trixie/sid<br></div><div> APT prefers stable-security<br></div><div> APT policy: (500, 'stable-security'), (500, 'unstable'), (500,<br></div><div>'testing'), (500, 'stable'), (1, 'experimental')<br></div><div>Architecture: amd64 (x86_64)<br></div><div>Foreign Architectures: i386<br></div><div>....<br></div><div>lazarus-ide recommends no packages.<br></div><div><br></div><div>lazarus-ide suggests no packages.<br></div><div>...<br></div></blockquote><div>Will it be possible to uninstall (maybe purge) all lazarus/lcl<br></div><div>packages and install again?<br></div><div>I just installed a fresh version of 3.8 over a 3.6 and it went as<br></div><div>expected.<br></div></blockquote><div><br></div><div>Interesting! After i purged all lazarus-*-3.8 packages, I still had<br></div><div>many 3.6 packages left.<br></div><div><br></div><div>Entfernen von lcl-3.6:amd64 (3.6+dfsg1-4) ...<br></div><div>Entfernen von lcl-units-3.6 (3.6+dfsg1-4) ...<br></div><div>Entfernen von lcl-gtk2-3.6 (3.6+dfsg1-4) ...<br></div><div>Entfernen von lcl-nogui-3.6 (3.6+dfsg1-4) ...<br></div><div>Entfernen von fp-units-fcl:amd64 (3.2.2+dfsg-45) ...<br></div><div>Entfernen von fpc (3.2.2+dfsg-45) ...<br></div><div>Entfernen von fpc-3.2.2 (3.2.2+dfsg-45) ...<br></div><div>Entfernen von lazarus-ide-gtk2-3.6 (3.6+dfsg1-4) ...<br></div><div>Entfernen von lazarus-ide-3.6 (3.6+dfsg1-4) ...<br></div><div>Entfernen von lazarus-src-3.6 (3.6+dfsg1-4) ...<br></div></blockquote><div>Installing 3.8 does not uninstall 3.6. This is a feature, not a bug.</div><div>The command you ran, does not uninstall lcl units, so you need to uninstall them too.</div><div>Fpc was probably installed manually that is why it remains.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>Then I've installed a fresh lazarus with all dependencies, plus FPC,<br></div><div>and there where no such errors any more. There are no unconfigured<br></div><div>packages and aptitude is happy. I hope I didn't have any custom Lazarus<br></div><div>or FPC configuration files. :-)<br></div></blockquote><div>For users, we really recommend to install this way (aptitude install lazarus fpc) which corresponds to (aptitude then /lazarus i /fpc i g)</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>However, I got a few warnings:<br></div><div><br></div><div>update-alternatives: Warnung: Erstellung von<br></div><div>/usr/share/man/man1/lazbuild.1.gz wird übersprungen, weil die<br></div><div>zugehörige Datei /usr/share/man/man1/lazbuild-3.8.1.gz (der Link-Gruppe<br></div><div>lazarus) nicht existiert<br></div><div>update-alternatives: Warnung: Erstellung von<br></div><div>/usr/share/man/man1/lazre.1.gzs wird übersprungen, weil die zugehörige<br></div><div>Datei /usr/share/man/man1/lazres-3.8.1.gz (der Link-Gruppe lazarus)<br></div><div>nicht existiert<br></div><div>update-alternatives: Warnung: Erstellung von<br></div><div>/usr/share/man/man1/lrstolfm.1.gz wird übersprungen, weil die<br></div><div>zugehörige Datei /usr/share/man/man1/lrstolfm-3.8.1.gz (der Link-Gruppe<br></div><div>lazarus) nicht existiert<br></div><div>update-alternatives: Warnung: Erstellung von<br></div><div>/usr/share/man/man1/svn2revisioninc.1.gz wird übersprungen, weil die<br></div><div>zugehörige Datei /usr/share/man/man1/svn2revisioninc-3.8.1.gz (der<br></div><div>Link-Gruppe lazarus) nicht existiert<br></div><div>update-alternatives: Warnung: Erstellung von<br></div><div>/usr/share/man/man1/updatepofiles.1.gz wird übersprungen, weil die<br></div><div>zugehörige Datei /usr/share/man/man1/updatepofiles-3.8.1.gz (der Link-<br></div><div>Gruppe lazarus) nicht existiert<br></div><div><br></div><div>This says in German "Warning: Creation of ... is skipped, because the<br></div><div>file ... (of the link group lazarus) doesn't exist." for these 5 files.<br></div><div>They also don't exist after the installation:<br></div></blockquote><div>You are probably missing a package (which means a missing dependency on our side)</div><div>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.</div><div>something like <i><b>aptitude search 'lazarus|^lcl-'</b></i></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div># stat /usr/share/man/man1/lazbuild.1.gz<br></div><div>/usr/share/man/man1/lazre.1.gzs /usr/share/man/man1/lrstolfm.1.gz<br></div><div>/usr/share/man/man1/svn2revisioninc.1.gz<br></div><div>/usr/share/man/man1/updatepofiles.1.gz <br></div><div>stat: cannot statx '/usr/share/man/man1/lazbuild.1.gz': No such file or<br></div><div>directory<br></div><div>stat: cannot statx '/usr/share/man/man1/lazre.1.gzs': No such file or<br></div><div>directory<br></div><div>stat: cannot statx '/usr/share/man/man1/lrstolfm.1.gz': No such file or<br></div><div>directory<br></div><div>stat: cannot statx '/usr/share/man/man1/svn2revisioninc.1.gz': No such<br></div><div>file or directory<br></div><div>stat: cannot statx '/usr/share/man/man1/updatepofiles.1.gz': No such<br></div><div>file or directory</div></blockquote><div>I consider this the only remaining issue in this bug report.</div><div>Is that OK for you?</div><pre>-- <br></pre><pre>Cheers,
Abou Al Montacir</pre></body></html>