<?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=3933&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / dpkg database is locked, can't proceed with installation]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3933</link>
		<description><![CDATA[The most recent posts in dpkg database is locked, can't proceed with installation.]]></description>
		<lastBuildDate>Mon, 09 Nov 2020 16:42:38 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25759#p25759</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Okay, I&#039;ve tried installing that in my Debian buster box and I see the same errors but I don&#039;t know why. If nobody else can help with this then it may be best to open a bug report.</p></div></blockquote></div><p>My wild guess would be the script locks dpkg for itself... Anyway, I compiled it from the sources, seems to work.</p><p>Thank you for your time and effort!</p><p>P.S. I have found a reference to the same error (but one and only) on one of the Debian forums dated 2017.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Mon, 09 Nov 2020 16:42:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25759#p25759</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25750#p25750</link>
			<description><![CDATA[<p>Looks like an install script bug at <span class="bbc">/usr/lib/fheroes2-pkg/b-i_fheroes2.sh:20</span></p><p>Change that line to be</p><div class="codebox"><pre><code>echo # dpkg -i /dev/zero 2&gt;/dev/null</code></pre></div><p>to make it build more happily.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 09 Nov 2020 06:41:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25750#p25750</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25748#p25748</link>
			<description><![CDATA[<p>Okay, I&#039;ve tried installing that in my Debian buster box and I see the same errors but I don&#039;t know why. If nobody else can help with this then it may be best to open a bug report.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 09 Nov 2020 05:36:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25748#p25748</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25737#p25737</link>
			<description><![CDATA[<p>Here is the output:</p><div class="codebox"><pre><code>~$ find /var -name &#039;lock*&#039; -exec lsof {} \;
find: ‘/var/log/exim4’: Permission denied
find: ‘/var/lib/sudo/ts’: Permission denied
find: ‘/var/lib/colord/.cache’: Permission denied
find: ‘/var/lib/udisks2’: Permission denied
find: ‘/var/lib/polkit-1’: Permission denied
find: ‘/var/lib/geoclue/.cache’: Permission denied
find: ‘/var/lib/apt/lists/partial’: Permission denied
find: ‘/var/lib/rkhunter/db’: Permission denied
find: ‘/var/lib/rkhunter/tmp’: Permission denied
find: ‘/var/cache/ldconfig’: Permission denied
find: ‘/var/cache/cups’: Permission denied
find: ‘/var/cache/apt/archives/partial’: Permission denied
find: ‘/var/spool/cups’: Permission denied
find: ‘/var/spool/cron/crontabs’: Permission denied
find: ‘/var/spool/exim4’: Permission denied
find: ‘/var/spool/rsyslog’: Permission denied</code></pre></div><p>Should it be run with sudo?</p><p>I also looked at what happens to the /var/lib/dpkg/lock, it keeps re-appearing at the moment I hit &quot;Yes&quot; in the download-compile window... not sure if it should.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Sun, 08 Nov 2020 18:41:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25737#p25737</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25735#p25735</link>
			<description><![CDATA[<p>There are other lock files:</p><div class="codebox"><pre><code>find /var -name &#039;lock*&#039; -exec lsof {} \;</code></pre></div><p>EDIT: added <span class="bbc">-exec</span> option.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 08 Nov 2020 17:08:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25735#p25735</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25734#p25734</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Check if anything&#039;s using the lock:</p><div class="codebox"><pre><code>lsof /var/lib/dpkg/lock</code></pre></div><p>If not then it should be safe to remove manually.</p></div></blockquote></div><p>Huh, it doesn&#039;t seem to work.<br />lsof /var/lib/dpkg/lock does not report anything, but:</p><div class="codebox"><pre><code>~$ sudo rm /var/lib/dpkg/lock
~$ sudo dpkg-reconfigure fheroes2-pkg
fheroes2-pkg: dpkg database is locked. You may need to use command &quot;sudo dpkg-reconfigure fheroes2-pkg&quot;.
fheroes2-pkg: Building and installation of package(s) [fheroes2] postponed till after next APT operation.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Sun, 08 Nov 2020 16:55:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25734#p25734</guid>
		</item>
		<item>
			<title><![CDATA[Re: dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25733#p25733</link>
			<description><![CDATA[<p>Check if anything&#039;s using the lock:</p><div class="codebox"><pre><code>lsof /var/lib/dpkg/lock</code></pre></div><p>If not then it should be safe to remove manually.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 08 Nov 2020 16:40:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25733#p25733</guid>
		</item>
		<item>
			<title><![CDATA[dpkg database is locked, can't proceed with installation]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25732#p25732</link>
			<description><![CDATA[<p>Hi,</p><p>I am trying to install fheroes2 (from the repo of course), and it requires an additional download/compilation of some non-free components. According to the instructions, after Synaptic is done and closed, I issued:</p><div class="codebox"><pre><code>~$ sudo dpkg-reconfigure fheroes2-pkg</code></pre></div><p>Pseudo-grapic menu appeared asking for permission to download and to compile, &quot;Yes&quot;, but then:</p><div class="codebox"><pre><code>fheroes2-pkg: dpkg database is locked. You may need to use command &quot;sudo dpkg-reconfigure fheroes2-pkg&quot;.
fheroes2-pkg: Building and installation of package(s) [fheroes2] postponed till after next APT operation.</code></pre></div><p>Synaptic is not running, no traces of apt/dpkg/synaptic in the processes list. Tried to reboot - no changes, still got stuck.<br />It looks like I can manually delete a lock file, do my stuff and then probably reboot to restore a status-quo, but is it safe? Maybe any other more conventional methods to deal with this?</p><p>ASCII 64bit.</p><p>Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Sun, 08 Nov 2020 16:10:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25732#p25732</guid>
		</item>
	</channel>
</rss>
