Hi! Am Mittwoch, dem 12.02.2025 um 19:27 +0100 schrieb Abou Al Montacir: > 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.
Exactly. > > 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. Wait! Did you see the difference between 3.6 (six) and 3.8 (eight) here? I had 3.6...-4, 3.8...-1, 3.8...-2, 3.8...-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). Great, thanks for the hint! > > > > 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. It initially did not. I had to run with --force-all vor _every_ new version (-5, -6, and -7). Only after purging and then installing -8 it worked without complaints. > > > > -- 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. Ok, got it. > > 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) Ok. > > 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-' # aptitude search 'lazarus|^lcl-' | grep '^i' i lazarus - IDE for Free Pascal - SDK dependency package i A lazarus-3.8 - IDE for Free Pascal - suite i A lazarus-ide - IDE for Free Pascal - dependency package i A lazarus-ide-3.8 - IDE for Free Pascal - common IDE files i A lazarus-ide-gtk2-3.8 - IDE for Free Pascal - GTK+ version i A lazarus-src-3.8 - IDE for Free Pascal - LCL source code i A lcl-3.8 - Lazarus Components Library - LCL suite i A lcl-gtk2-3.8 - Lazarus Components Library - GTK+ backend i A lcl-nogui-3.8 - Lazarus Components Library - no GUI backend i A lcl-units-3.8 - Lazarus Components Library - backend independent components i A lcl-utils-3.8 - Lazarus Components Library - command line build tools > > # 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? Yes, that is ok. Sorry for the late reply, but I hope it still is useful for you. Thanks Hansi