<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4908&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4908</link>
		<description><![CDATA[The most recent posts in [SOLVED] Getting "Lock Version" in Synaptic to work.]]></description>
		<lastBuildDate>Sat, 26 Feb 2022 16:36:14 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34935#p34935</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I think so, yes.</p></div></blockquote></div><p>Great. I will mark as solved. Thanks once again HoaS for your help. Thanks also to aitor; your way did stop Synaptic from updating it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 16:36:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34935#p34935</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34934#p34934</link>
			<description><![CDATA[<p>I think so, yes.</p><p>Looks like Synaptic &amp; <span class="bbc">apt-mark</span> both use the dpkg database whereas <span class="bbc">apt</span> &amp; <span class="bbc">apt-get</span> will check the pinning and <span class="bbc">aptitude</span> will accept either input.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 16:32:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34934#p34934</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34933#p34933</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Check</p></div></blockquote></div><p>While waiting for your reply, I went ahead and deleted the <span class="bbc">preferences</span> folder I created with that file in it, and kept the file you recommend in <span class="bbc">preferences.d</span>, then rebooted. Synaptic is still showing the old version of sudoku I use as the latest version. I also checked <span class="bbc">apt update</span> and <span class="bbc">apt policy gnome-sudoku</span> and that checked out good also. So I guess all is well??</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 16:24:13 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34933#p34933</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34932#p34932</link>
			<description><![CDATA[<p>Check</p><div class="codebox"><pre><code>dpkg --get-selections gnome-sudoku</code></pre></div><p>I think both Synaptic&#039;s package lock option and <span class="bbc">apt-mark hold</span> will change that setting to</p><div class="codebox"><pre><code>gnome-sudoku					hold</code></pre></div><p>To confirm this run</p><div class="codebox"><pre><code>sudo dpkg --set-selections &lt;&lt;&lt;&quot;gnome-sudoku install&quot;</code></pre></div><p>And check <span class="bbc">dpkg --get-selections gnome-sudoku</span>, <span class="bbc">apt-mark showhold</span> and Synaptic itself to see if this changes the &quot;Latest Version&quot; shown in your screenshot.</p><p>Revert the change with</p><div class="codebox"><pre><code>sudo dpkg --set-selections &lt;&lt;&lt;&quot;gnome-sudoku hold&quot;</code></pre></div><p>Perhaps that is needed as well as APT pinning for it to work with both Synaptic and <span class="bbc">apt</span>/<span class="bbc">apt-get</span>/<span class="bbc">aptitude</span>.</p><p>EDIT: it seems <span class="bbc">aptitude</span> uses either the dpkg database or APT&#039;s pin values. This is confusing.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 16:01:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34932#p34932</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34931#p34931</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Looks good to me :-)</p></div></blockquote></div><p>Great. Just one more thing. Now this is what I get in Synaptic. It shows the old version that I use as the latest version. Does this mean I can undo the first thing I did earlier? Or should I just leave well enough alone?</p><p><span class="postimg"><img src="https://i.imgur.com/3FqbeUG.jpg" alt="3FqbeUG.jpg" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:45:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34931#p34931</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34930#p34930</link>
			<description><![CDATA[<p>Looks good to me :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:36:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34930#p34930</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34929#p34929</link>
			<description><![CDATA[<p>I added the file you said. I changed the version from what you wrote to this <span class="bbc">1:3.22.2-1</span> because this is the version I&#039;m using. I ran the commands and this is what happened:</p><div class="codebox"><pre><code>ron@ron:~$ sudo apt update
[sudo] password for ron: 
Hit:1 http://deb.devuan.org/merged chimaera InRelease
Get:2 http://deb.devuan.org/merged chimaera-security InRelease [21.5 kB]
Hit:3 http://deb.devuan.org/merged chimaera-updates InRelease
Hit:4 http://deb.devuan.org/merged chimaera-backports InRelease
Fetched 21.5 kB in 3s (7,144 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.</code></pre></div><div class="codebox"><pre><code>ron@ron:~$ apt policy gnome-sudoku
gnome-sudoku:
  Installed: 1:3.22.2-1
  Candidate: 1:3.22.2-1
  Version table:
     1:3.38.0-1 500
        500 http://deb.devuan.org/merged chimaera/main amd64 Packages
 *** 1:3.22.2-1 501
        100 /var/lib/dpkg/statu</code></pre></div><p>Is everything now correct?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:34:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34929#p34929</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34928#p34928</link>
			<description><![CDATA[<p>Yes, <span class="bbc">apt upgrade</span> would bring the gnome-sudoku package up to the chimaera version. Use my suggested /etc/apt/preferences.d/gnome-sudoku.pref file to prevent that.</p><p>I have no idea about Synaptic or how that works, sorry. I never use it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:25:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34928#p34928</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34927#p34927</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>There is no pinning for that package. If you run <span class="bbc">apt update</span> followed by <span class="bbc">apt list --upgradable</span> I think gnome-sudoku will still be marked for upgrade to the chimaera version.</p></div></blockquote></div><p>I only update via Synaptic, and here&#039;s what happens in it. It doesn&#039;t get updated. But are you saying if I do an update via the terminal it will get updated?</p><p><span class="postimg"><img src="https://i.imgur.com/t6RbZ8n.jpg" alt="t6RbZ8n.jpg" /></span></p><p>This is what I got from your commands:</p><div class="codebox"><pre><code>ron@ron:~$ sudo apt update
[sudo] password for ron: 
Hit:1 http://deb.devuan.org/merged chimaera InRelease
Get:2 http://deb.devuan.org/merged chimaera-security InRelease [21.5 kB]
Hit:3 http://deb.devuan.org/merged chimaera-updates InRelease
Hit:4 http://deb.devuan.org/merged chimaera-backports InRelease
Fetched 21.5 kB in 2s (9,148 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run &#039;apt list --upgradable&#039; to see it.</code></pre></div><div class="codebox"><pre><code>ron@ron:~$ apt list --upgradable
Listing... Done
gnome-sudoku/stable 1:3.38.0-1 amd64 [upgradable from: 1:3.22.2-1]
N: There is 1 additional version. Please use the &#039;-a&#039; switch to see it</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:19:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34927#p34927</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34926#p34926</link>
			<description><![CDATA[<div class="quotebox"><cite>Ron wrote:</cite><blockquote><div><div class="codebox"><pre><code>$ apt policy gnome-sudoku
gnome-sudoku:
  Installed: 1:3.22.2-1
  Candidate: 1:3.38.0-1
  Version table:
     1:3.38.0-1 500
        500 http://deb.devuan.org/merged chimaera/main amd64 Packages
 *** 1:3.22.2-1 100
        100 /var/lib/dpkg/status</code></pre></div></div></blockquote></div><p>There is no pinning for that package. If you run <span class="bbc">apt update</span> followed by <span class="bbc">apt list --upgradable</span> I think gnome-sudoku will still be marked for upgrade to the chimaera version.</p><p>The <span class="bbc">apt-mark hold</span> suggestion doesn&#039;t work either in my testing but this does:</p><div class="codebox"><pre><code>Package: gnome-sudoku
Pin: version 1:3.30.0-2
Pin-Priority: 501</code></pre></div><p>^ Save that under /etc/apt/preferences.d/gnome-sudoku.pref, run <span class="bbc">apt update</span> and check the <span class="bbc">Candidate</span> line in the output of <span class="bbc">apt policy gnome-sudoku</span>. It should prefer the old version with that setting.</p><p>The man page states that a pin value of 1001 would be needed because the beowulf version constitutes a downgrade but that doesn&#039;t seem to be the case in my tests with a Debian bullseye chroot. If your system behaves differently please report back, I would appreciate the feedback. TIA.</p><p>If you want to keep the package updated from beowulf then add these lines to /etc/apt/sources.list:</p><div class="codebox"><pre><code>deb http://deb.devuan.org/merged beowulf main
deb http://deb.devuan.org/merged beowulf-updates main
deb http://deb.devuan.org/merged beowulf-security main</code></pre></div><p>Then change the <span class="bbc">Pin: version</span> line in /etc/apt/preferences.d/gnome-sudoku.pref to</p><div class="codebox"><pre><code>Pin: release beowulf</code></pre></div><p>And remember to run <span class="bbc">apt update</span> afterwards.</p><div class="quotebox"><cite>Ron wrote:</cite><blockquote><div><p>Why does pinning make you nervous?</p></div></blockquote></div><p>Because it&#039;s very complicated to use (see <a href="https://manpages.debian.org/bullseye/apt/apt_preferences.5.en.html" rel="nofollow">apt_preferences(5)</a> for the official documentation, the Debian wiki page is bollocks) and it&#039;s far too easy to break your system if you don&#039;t know what you&#039;re doing.</p><p>I&#039;ve just got the Debian buster version of gnome-sudoku running from a chroot in my Alpine system with no issues but the chroot takes up almost a gigabyte of disk space, which is ridiculous.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 15:09:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34926#p34926</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34925#p34925</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Either location should work.</p><p>Check the pinning with</p><div class="codebox"><pre><code>apt policy
apt policy gnome-sudoku</code></pre></div><p>I would consider running the program from a chroot because pinning makes me nervous but that would take significantly more disk space.</p></div></blockquote></div><p>Here&#039;s the output:</p><div class="codebox"><pre class="vscroll"><code>$ apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 http://deb.devuan.org/merged chimaera-backports/non-free amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=non-free,b=amd64
     origin deb.devuan.org
 100 http://deb.devuan.org/merged chimaera-backports/contrib amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=contrib,b=amd64
     origin deb.devuan.org
 100 http://deb.devuan.org/merged chimaera-backports/main amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=main,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera-updates/main amd64 Packages
     release v=4.0.0,o=Devuan,a=stable-updates,n=chimaera-updates,l=Devuan,c=main,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera-security/main amd64 Packages
     release v=4.0,o=Devuan,a=stable-security,n=chimaera-security,l=Devuan-Security,c=main,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/contrib amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=contrib,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/non-free amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=non-free,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/main amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=main,b=amd64
     origin deb.devuan.org
Pinned packages:
     refractainstaller-base -&gt; 9.5.6 with priority 1001
     refractainstaller-gui -&gt; 9.5.6 with priority 1001</code></pre></div><p>and</p><div class="codebox"><pre><code>$ apt policy gnome-sudoku
gnome-sudoku:
  Installed: 1:3.22.2-1
  Candidate: 1:3.38.0-1
  Version table:
     1:3.38.0-1 500
        500 http://deb.devuan.org/merged chimaera/main amd64 Packages
 *** 1:3.22.2-1 100
        100 /var/lib/dpkg/status</code></pre></div><p>Why does pinning make you nervous? My concern is just to be sure that nothing else gets blocked from updating.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 26 Feb 2022 14:14:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34925#p34925</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34921#p34921</link>
			<description><![CDATA[<p>Either location should work.</p><p>Check the pinning with</p><div class="codebox"><pre><code>apt policy
apt policy gnome-sudoku</code></pre></div><p>I would consider running the program from a chroot because pinning makes me nervous but that would take significantly more disk space.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Feb 2022 10:21:37 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34921#p34921</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34914#p34914</link>
			<description><![CDATA[<div class="quotebox"><cite>aitor wrote:</cite><blockquote><div><p>I forgot the extension. So, you don&#039;t need to create any additional folder, because <ins>/etc/apt/preferences.d</ins> is the right place to edit the file.</p></div></blockquote></div><p>Well everything seems to be working right. I had some updates today, and sudoku was marked as not to be upgraded. Everything else updated okay. Should I just leave well enough alone, or put that file in preferences.d and delete the preferences folder I created?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Fri, 25 Feb 2022 23:43:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34914#p34914</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34910#p34910</link>
			<description><![CDATA[<div class="quotebox"><cite>Ron wrote:</cite><blockquote><div><p>BTW, there was no &quot;preferences&quot; folder in /etc/apt, so I created one. Is that normal? There is a &quot;preferences.d&quot; folder.</p></div></blockquote></div><p>I forgot the extension. So, you don&#039;t need to create any additional folder, because <ins>/etc/apt/preferences.d</ins> is the right place to edit the file.</p>]]></description>
			<author><![CDATA[dummy@example.com (aitor)]]></author>
			<pubDate>Fri, 25 Feb 2022 19:37:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34910#p34910</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Getting "Lock Version" in Synaptic to work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34901#p34901</link>
			<description><![CDATA[<p>It appears to have worked. Thanks, to both of you.</p><p>BTW, there was no &quot;preferences&quot; folder in /etc/apt, so I created one. Is that normal? There is a &quot;preferences.d&quot; folder.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Thu, 24 Feb 2022 23:26:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34901#p34901</guid>
		</item>
	</channel>
</rss>
