<?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=5208&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5208</link>
		<description><![CDATA[The most recent posts in [SOLVED] apt pinning 1001 / automatic package version downgrade.]]></description>
		<lastBuildDate>Sun, 04 Sep 2022 14:42:26 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37342#p37342</link>
			<description><![CDATA[<p>This Issue came out other than I initially thought.</p><p>Dear admin, <br />suggestion is to move the whole thread from &quot;Freedom Hacks&quot; to &quot;Installation&quot; or &quot;Other Issues&quot;. On occation.<br />Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Sun, 04 Sep 2022 14:42:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37342#p37342</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37285#p37285</link>
			<description><![CDATA[<p>That&#039;s&#160; better- thanks a lot!</p><p>Good to know, that apt is still working as expected.<br />Quite sure I have had some trys using <span class="bbc">a=oldstable</span>, but there must be another error incorporated.</p><div class="codebox"><pre><code>$ apt policy 
Package files:
 100 /var/lib/dpkg/status
     release a=now
1001 http://ftp.de.debian.org/debian buster/contrib amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=contrib,b=amd64
     origin ftp.de.debian.org
1001 http://ftp.de.debian.org/debian buster/non-free amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=non-free,b=amd64
     origin ftp.de.debian.org
1001 http://ftp.de.debian.org/debian buster/main amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=main,b=amd64
     origin ftp.de.debian.org
Pinned packages:</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Wed, 31 Aug 2022 22:22:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37285#p37285</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37281#p37281</link>
			<description><![CDATA[<div class="quotebox"><cite>delgado wrote:</cite><blockquote><div><div class="codebox"><pre><code>Package: *
Pin: release a=buster
Pin-Priority: 1001</code></pre></div></div></blockquote></div><p>I think that should be <span class="bbc">n=buster</span>. See the <span class="bbc">apt policy</span> output for the correct identifiers <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 31 Aug 2022 20:51:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37281#p37281</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37280#p37280</link>
			<description><![CDATA[<p>This is from debian bullseye, backdate target is buster. The chimaera image showed a comparable behaviour.<br />Thanks for looking!</p><div class="codebox"><pre class="vscroll"><code>$ cat /etc/apt/preferences{,.d/*}
Package: *
Pin: release a=buster
Pin-Priority: 1001
cat: &#039;/etc/apt/preferences.d/*&#039;: No such file or directory

$ apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ftp.de.debian.org/debian buster/contrib amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=contrib,b=amd64
     origin ftp.de.debian.org
 500 http://ftp.de.debian.org/debian buster/non-free amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=non-free,b=amd64
     origin ftp.de.debian.org
 500 http://ftp.de.debian.org/debian buster/main amd64 Packages
     release v=10.12,o=Debian,a=oldstable,n=buster,l=Debian,c=main,b=amd64
     origin ftp.de.debian.org
Pinned packages:

# some details and commands:
$ cat /etc/debian_version
11.4
$ cat sources.list
deb http://ftp.de.debian.org/debian/ buster main non-free contrib

$ apt update
Hit:1 http://ftp.de.debian.org/debian buster InRelease
All packages are up to date.

$ apt upgrade
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ apt list -a | grep linux-image-amd64/
linux-image-amd64/now 5.10.136-1 amd64 [installed,local]
linux-image-amd64/oldstable 4.19+105+deb10u15 amd64

$ apt install linux-image-amd64
linux-image-amd64 is already the newest version (5.10.136-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# downgrade single package:
$ apt -s install linux-image-amd64=4.19+105+deb10u15
0 upgraded, 1 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Inst linux-image-4.19.0-20-amd64 (4.19.235-1 Debian:10.12/oldstable [amd64])
Inst linux-image-amd64 [5.10.136-1] (4.19+105+deb10u15 Debian:10.12/oldstable [amd64])</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Wed, 31 Aug 2022 20:40:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37280#p37280</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37272#p37272</link>
			<description><![CDATA[<p>The sid version of the man page still says the same:</p><div class="quotebox"><cite>apt_preferences(5) wrote:</cite><blockquote><div><p>P &gt;= 1000<br />causes a version to be installed even if this constitutes a downgrade of the package</p></div></blockquote></div><p><a href="https://manpages.debian.org/unstable/apt/apt_preferences.5.en.html#How_APT_Interprets_Priorities" rel="nofollow">https://manpages.debian.org/unstable/ap … Priorities</a></p><p>So can we see the full output of</p><div class="codebox"><pre><code>cat /etc/apt/preferences{,.d/*}
apt policy</code></pre></div><p>Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 31 Aug 2022 16:02:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37272#p37272</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] apt pinning 1001 / automatic package version downgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37271#p37271</link>
			<description><![CDATA[<p>Hi,</p><p>About ~18 month ago it was still possible to downgrade package versions by setting the releases pin priority to 1001. Applied with <span class="bbc">apt update</span> - nice and easy.<br />Now, apt happly tells you, that the newest version of the package is installed. Have a cookie!</p><p>Is it possible to restore the previous behavoir?</p><p>Supplemental (not really part of the question, just how it happened)</p><p>The pin priority in /etc/apt/preferences is not applied directly. Checking with <span class="bbc">apt-cache policy</span>, resulted in a values of &quot;990 : 500 : 100&quot; instead of &quot;1001 : -1 : -10&quot;. Remarkable may be: Pin priority 1001 for &#039;force downgrade&#039; is gone.</p><p>What&#039;s the purpose?<br />Distro downgrade (to try lcarsde). Sounds complicated, but it wasn&#039;t. The process was straight forward. At the time I moved a box from testing (bullseye) back to stable (buster): <br />Adjust /etc/apt/sources.list, pin the release to 1001 in /etc/apt/preferences, <span class="bbc">apt update;</span> <span class="bbc">apt upgrade;</span> <span class="bbc">apt dist-upgrade;</span> <span class="bbc">reboot</span> with the &quot;new&quot; 4.19 kernel.<br />That really impressed me!&#160; (later the box became bullseye again and is now chimaera)</p><p>Yesterday I tried the same with chimaere to beowulf and bullseye to buster. Countless variants of pinning and sources.list - nope.</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Wed, 31 Aug 2022 15:51:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37271#p37271</guid>
		</item>
	</channel>
</rss>
