<?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=2408&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Correcting Broken Packages]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2408</link>
		<description><![CDATA[The most recent posts in Correcting Broken Packages.]]></description>
		<lastBuildDate>Wed, 10 Oct 2018 16:25:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Correcting Broken Packages]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12210#p12210</link>
			<description><![CDATA[<p>I think corrects the tags you mentioned?</p>]]></description>
			<author><![CDATA[dummy@example.com (Psud0nym)]]></author>
			<pubDate>Wed, 10 Oct 2018 16:25:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12210#p12210</guid>
		</item>
		<item>
			<title><![CDATA[Re: Correcting Broken Packages]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12209#p12209</link>
			<description><![CDATA[<p>Please use code tags.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 10 Oct 2018 16:07:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12209#p12209</guid>
		</item>
		<item>
			<title><![CDATA[Correcting Broken Packages]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12208#p12208</link>
			<description><![CDATA[<p><span style="color: Red">For these first two steps, many people have better results with ‘aptitude’ finding a resolution.<br />This command may help, but it is not installed by default in Devuan. If you recall it and install it after the broken package situation is resolved, it is worth trying.</span><br />*<span style="color: blue">PACKAGE</span> <span style="color: Red">is meant to be a package name that is broken. Replace a package name when using the commands.</span></p><p>Step one:</p><div class="codebox"><pre><code>sudo apt-get update –fix-missing
sudo dpkg –configure -a
sudo apt-get install -f</code></pre></div><p>Step two:</p><div class="codebox"><pre><code>sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update</code></pre></div><p>you may need to delete the lock files. Lock files are used to keep resources available for certain programs – it helps prevent other programs from accessing files at the same time. This can be done by simply deleting the lockfile list:</p><div class="codebox"><pre><code>sudo rm /var/lib/apt/lists/lock</code></pre></div><p>Step three:</p><div class="codebox"><pre><code>sudo apt-get remove PACKAGE</code></pre></div><p>It probably won’t be successful, but it is worth trying before removing it forcefully.</p><p>Depending on the errors you get when trying to remove the package normally, you might be able to identify the broken package using dpkg and grep:</p><div class="codebox"><pre><code>dpkg -l | grep ^..r</code></pre></div><p>This command lists all packages, then grep lists any results containing the ‘r’ flag in the third field, which means “reinst-required” (reinstall required). If the broken package shows up, you will be able to remove it.</p><p>Execute the following command to forcefully remove the package from your machine. Don’t forget to enter your password to authorize the deletion. Replace with the name of the broken package.</p><div class="codebox"><pre><code>sudo dpkg --remove --force-remove-reinstreq PACKAGE
sudo apt-get clean
sudo apt-get update</code></pre></div><p>After that, try to install the package from scratch. It should install normally now.</p><p>Last try step:<br />This pair of commands will remove the packages scripts to be performed before and after installation/removal of a package, then remove it from the database of installed packages. </p><div class="codebox"><pre><code>mv /var/lib/dpkg/info/PACKAGE.* /tmp/
dpkg --remove --force-remove-reinstreq PACKAGE</code></pre></div><p>Source: <a href="http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/" rel="nofollow">http://www.piprime.fr/1480/manually-rem … an-ubuntu/</a></p><p>Source: <a href="http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/" rel="nofollow">http://www.iasptk.com/ubuntu-fix-broken … -solution/</a></p><p>Source: <a href="https://www.rosehosting.com/blog/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9/" rel="nofollow">https://www.rosehosting.com/blog/how-to … -debian-9/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Psud0nym)]]></author>
			<pubDate>Wed, 10 Oct 2018 16:03:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12208#p12208</guid>
		</item>
	</channel>
</rss>
