<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7147&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Today's upgrade update-alternatives warning]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7147</link>
		<description><![CDATA[The most recent posts in [SOLVED] Today's upgrade update-alternatives warning.]]></description>
		<lastBuildDate>Mon, 07 Apr 2025 13:26:07 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55195#p55195</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><blockquote><div><p>... postinst script of xz is buggy ...</p></div></blockquote></div><p>I see.</p><div class="quotebox"><blockquote><div><p>... doesn&#039;t recognize that the &quot;alternatives&quot; link for lzma already points correcly.</p></div></blockquote></div><p>Right.<br />Makes sense.&#160; 8^) </p><div class="quotebox"><blockquote><div><p>Maybe the script ...<br />... when the new &quot;alternatives&quot; link get installed ...<br />... ends up with the same value that it already had.</p></div></blockquote></div><p>Thank you for taking the time to figure that out.<br />I was worried that an unknown <em>something</em> had mucked around the system.<br />ie: the <em>(manually or by a script)</em> part of the postinst printout.</p><p>Not having been <em>me</em>, the only alternative offered was a script.<br />Not good.</p><p>My only intervention (as far as my memory serves me) in <span class="bbc">update-alternatives</span> was long ago to set the default editor.<br />For obvious reasons, not <span class="bbc">vim</span>.<br /><em>Or</em> <span class="bbc">emacs</span>. 8^° !</p><div class="quotebox"><blockquote><div><p>Remember that the postinst script doesn&#039;t &quot;see&quot; those pathnames the way you see them in the error message.</p></div></blockquote></div><p>Remember?<br />I did not have a clue, I&#039;ll have to learn it first.<br />Thanks for the heads up.</p><div class="quotebox"><blockquote><div><p>... sure there are other possible stories that could explain ...</p></div></blockquote></div><p>And I&#039;m quite sure that you have worked out the most probable | feasible | likely one.<br />So I will mark this one as [solved].</p><p>As always, thank you very much for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 07 Apr 2025 13:26:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55195#p55195</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55193#p55193</link>
			<description><![CDATA[<p>My guess would be that the postinst script of xz is buggy; that for some reason it doesn&#039;t recognize that the &quot;alternatives&quot; link for lzma already points correcly.</p><p>Maybe the script tries to resolve the link value (the pathname &quot;../../usr/bin/xz&quot;) itself rather than resolving the link, and it then resolves that relative to &quot;/&quot; (which would be cwd for the postinst script) rather than relative to &quot;/etc/alternatives&quot; (which is where the link resides). Thus it erroneously claims that the resolved value is missing and different from &quot;/usr/bin/xz&quot;... and yet, when the new &quot;alternatives&quot; link get installed, the &quot;alternatives&quot; subsystem translates the given absolute pathname to one that is relative to where the link is set, so it ends up with the same value that it already had.</p><p>Remember that the postinst script doesn&#039;t &quot;see&quot; those pathnames the way you see them in the error message.</p><p>And I&#039;m sure there are other possible stories that could explain how those peculiar log lines come about.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 07 Apr 2025 12:27:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55193#p55193</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55192#p55192</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><blockquote><div><p>... upgraded the xz-utils package ...</p></div></blockquote></div><p>Yes, <em>of course</em>.</p><p>My post was <span class="bbu">about the warnings</span> and whatever reason could have caused them.<br />Do have a read at the OP.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 07 Apr 2025 11:05:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55192#p55192</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55191#p55191</link>
			<description><![CDATA[<p>I think you will find it is because you upgraded the xz-utils package, which is obviously part of xz.... <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Mon, 07 Apr 2025 07:55:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55191#p55191</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55188#p55188</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><blockquote><div><p>... because you updated the lzma package(s) for two different arches?</p></div></blockquote></div><p>No idea.</p><p>That package is probably in my system since <span class="bbc">ascii</span> or <span class="bbc">Jesse</span> and I am now running on <span class="bbc">Daedalus</span>, to which I arrived through succesive dist-upgrades.</p><p>Now ...</p><p>Looking at yesterday&#039;s timeshift snapshot of <span class="bbc">/etc/alternatives/lzma</span> I see this:</p><div class="codebox"><pre><code>/etc/alternatives/lzma: symbolic link to ../../usr/bin/xz</code></pre></div><p>In the current version, I see the <span class="bbu">same</span> thing:</p><div class="codebox"><pre><code>/etc/alternatives/lzma: symbolic link to ../../usr/bin/xz</code></pre></div><p><span class="bbc">/usr/bin/xz</span> exist in <em>both</em> cases, same size but different timestamp: 02/12/2023 and 03/04/2025 respectively.</p><p>So I don&#039;t get the part where <span class="bbc">apt</span> reports <span class="bbc">... /lzma has been changed ...</span> and <span class="bbc">... /xz is unknown</span>.</p><p><span class="bbu">Edit</span>:</p><p>I checked to see how <span class="bbc">update-alternatives</span> read:</p><div class="codebox"><pre><code>$ update-alternatives --get-selections | grep lzma
lzma                           auto     ../../usr/bin/xz
$ </code></pre></div><p>So it seems it is on <span class="bbc">auto</span> and not <span class="bbc">manual</span>, maybe <span class="bbc">apt</span> found it had been changed?</p><p><span class="bbu">Edit_2</span>:</p><p>I recalled I had once seen <span class="bbc">/var/log/alternatives.log</span>.<br />The printout is rather unreadable but I have tried to split it so as to see what it is all about:</p><div class="codebox"><pre><code>$ cat /var/log/alternatives.log
update-alternatives 2025-04-06 09:30:57: run with
--install /usr/bin/lzma lzma /usr/bin/xz 20

--slave /usr/share/man/man1/lzma.1.gz lzma.1.gz /usr/share/man/man1/xz.1.gz
--slave /usr/bin/unlzma unlzma /usr/bin/unxz
--slave /usr/share/man/man1/unlzma.1.gz unlzma.1.gz /usr/share/man/man1/unxz.1.gz
--slave /usr/bin/lzcat lzcat /usr/bin/xzcat
--slave /usr/share/man/man1/lzcat.1.gz lzcat.1.gz /usr/share/man/man1/xzcat.1.gz
--slave /usr/bin/lzmore lzmore /usr/bin/xzmore
--slave /usr/share/man/man1/lzmore.1.gz lzmore.1.gz /usr/share/man/man1/xzmore.1.gz
--slave /usr/bin/lzless lzless /usr/bin/xzless
--slave /usr/share/man/man1/lzless.1.gz lzless.1.gz /usr/share/man/man1/xzless.1.gz
--slave /usr/bin/lzdiff lzdiff /usr/bin/xzdiff
--slave /usr/share/man/man1/lzdiff.1.gz lzdiff.1.gz /usr/share/man/man1/xzdiff.1.gz
--slave /usr/bin/lzcmp lzcmp /usr/bin/xzcmp
--slave /usr/share/man/man1/lzcmp.1.gz lzcmp.1.gz /usr/share/man/man1/xzcmp.1.gz
--slave /usr/bin/lzgrep lzgrep /usr/bin/xzgrep
--slave /usr/share/man/man1/lzgrep.1.gz lzgrep.1.gz /usr/share/man/man1/xzgrep.1.gz
--slave /usr/bin/lzegrep lzegrep /usr/bin/xzegrep
--slave /usr/share/man/man1/lzegrep.1.gz lzegrep.1.gz /usr/share/man/man1/xzegrep.1.gz
--slave /usr/bin/lzfgrep lzfgrep /usr/bin/xzfgrep
--slave /usr/share/man/man1/lzfgrep.1.gz lzfgrep.1.gz /usr/share/man/man1/xzfgrep.1.gz
update-alternatives 2025-04-06 09:30:57: status of link group /usr/bin/lzma set to manual
update-alternatives 2025-04-06 09:30:57: auto-repair link group lzma
update-alternatives 2025-04-06 09:30:57: status of link group /usr/bin/lzma set to auto
$ </code></pre></div><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Apr 2025 18:58:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55188#p55188</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55186#p55186</link>
			<description><![CDATA[<p>Did that update yesterday, but I used Synaptic so didn&#039;t see all the output. But it worked fine and nothing is broken in /etc/alternatives.</p><p>Could it be because you updated the lzma package(s) for two different arches? That might cause some confusion.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Sun, 06 Apr 2025 16:01:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55186#p55186</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55185#p55185</link>
			<description><![CDATA[<p>Hello:</p><p>Thanks for the fast reply.<br />Much appreciated.</p><div class="quotebox"><blockquote><div><p>The link has been renewed ...</p></div></blockquote></div><p>I was referring to what came afterwards:</p><div class="codebox"><pre><code>--- snip ---
update-alternatives: warning: /etc/alternatives/lzma has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: forcing reinstallation of alternative ../../usr/bin/xz because link group lzma is broken
update-alternatives: warning: current alternative ../../usr/bin/xz is unknown, switching to /usr/bin/xz for link group lzma
--- snip ---</code></pre></div><p>About the <span class="bbc">lzma</span> package:</p><div class="codebox"><pre><code>$ apt list | grep -i lzma
lzma-alone/stable 9.22-2.2 amd64
lzma-alone/stable 9.22-2.2 i386
lzma-dev/stable,stable 9.22-2.2 all
lzma/stable 9.22-2.2 amd64
lzma/stable 9.22-2.2 i386
~$ </code></pre></div><div class="codebox"><pre><code>$ aptitude why lzma
i   font-manager Suggests file-roller
p   file-roller  Suggests lzma  
$</code></pre></div><p>Seems <span class="bbc">apt</span> found something amiss in <span class="bbc">/etc/alternatives/lzma</span>.</p><p>ie: something ... <span class="bbc">has been changed</span> ...</p><p>But what | why | who changed it? </p><p>That said, do I even need it?</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Apr 2025 15:52:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55185#p55185</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55184#p55184</link>
			<description><![CDATA[<div class="codebox"><pre><code>The following packages will be upgraded:
  liblzma-dev liblzma5 liblzma5:i386 xz-utils</code></pre></div><p>The link has been renewed....</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Sun, 06 Apr 2025 15:13:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55184#p55184</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Today's upgrade update-alternatives warning]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55183#p55183</link>
			<description><![CDATA[<p>Hello:</p><p>Weekly updating this morning got me this:</p><div class="codebox"><pre><code>$ apt list --upgradable
Listing... Done
liblzma-dev/stable-security 5.4.1-1 amd64 [upgradable from: 5.4.1-0.2]
liblzma5/stable-security 5.4.1-1 amd64 [upgradable from: 5.4.1-0.2]
liblzma5/stable-security 5.4.1-1 i386 [upgradable from: 5.4.1-0.2]
xz-utils/stable-security 5.4.1-1 amd64 [upgradable from: 5.4.1-0.2]
$ </code></pre></div><p>And then this:</p><div class="codebox"><pre class="vscroll"><code>$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  liblzma-dev liblzma5 liblzma5:i386 xz-utils
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1151 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.devuan.org/merged daedalus-security/main amd64 liblzma-dev amd64 5.4.1-1 [260 kB]
Get:2 http://deb.devuan.org/merged daedalus-security/main i386 liblzma5 i386 5.4.1-1 [215 kB]
Get:3 http://deb.devuan.org/merged daedalus-security/main amd64 liblzma5 amd64 5.4.1-1 [205 kB]
Get:4 http://deb.devuan.org/merged daedalus-security/main amd64 xz-utils amd64 5.4.1-1 [471 kB]
Fetched 1151 kB in 1s (957 kB/s) 
Reading changelogs... Done
(Reading database ... 166981 files and directories currently installed.)
Preparing to unpack ... (files listed)
Unpacking ... (files listed)
Setting up ... (files listed)
--- snip ---
update-alternatives: warning: /etc/alternatives/lzma has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: forcing reinstallation of alternative ../../usr/bin/xz because link group lzma is broken
update-alternatives: warning: current alternative ../../usr/bin/xz is unknown, switching to /usr/bin/xz for link group lzma
Setting up liblzma-dev:amd64 (5.4.1-1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
$</code></pre></div><p>Don&#039;t have a clear idea as to what is going on.<br /><span class="bbc">/etc/alternatives/lzma </span> is a <span class="bbc">symlink to /us/bin/xz</span> </p><p>Please advise.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Apr 2025 13:33:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55183#p55183</guid>
		</item>
	</channel>
</rss>
