<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The _khAttAm_ blog &#187; ubuntu 9.04</title>
	<atom:link href="http://www.khattam.info/tag/ubuntu-9-04/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khattam.info</link>
	<description>Sharing views and experiences</description>
	<lastBuildDate>Sat, 22 Oct 2011 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[SOLVED] &#8220;subprocess pre-removal script returned error exit status 2&#8243; error</title>
		<link>http://www.khattam.info/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error-2009-08-04.html</link>
		<comments>http://www.khattam.info/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error-2009-08-04.html#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:08:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope 9.04]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[synaptic]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[uninstall]]></category>
		<category><![CDATA[uninstall problem]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=303</guid>
		<description><![CDATA[Recently, I encountered a package management related error in Ubuntu Jaunty Jackalope 64bit. The package was python-beagle and the error was: &#8220;E: python-beagle: subprocess pre-removal script returned error exit status 2&#8243; and details showed: dpkg (subprocess): unable to execute pre-removal script: Exec format error dpkg: error processing python-beagle (&#8211;remove): subprocess pre-removal script returned error exit [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p> Recently, I encountered a package management related error in Ubuntu Jaunty Jackalope 64bit.</p>
<p>The package was python-beagle and the error was: &#8220;E: python-beagle: subprocess pre-removal script returned error exit status 2&#8243; and details showed:</p>
<blockquote><p>dpkg (subprocess): unable to execute pre-removal script: Exec format error<br />
dpkg: error processing python-beagle (&#8211;remove):<br />
subprocess pre-removal script returned error exit status 2<br />
dpkg (subprocess): unable to execute post-installation script: Exec format error<br />
dpkg: error while cleaning up:<br />
subprocess post-installation script returned error exit status 2<br />
Errors were encountered while processing:<br />
python-beagle<br />
E: Sub-process /usr/bin/dpkg returned an error code (1)</p></blockquote>
<p>I managed to fix it. Read on for how I did it.<span id="more-303"></span></p>
<p>Precaution: The process can break your system if not followed as mentioned (you may get into problems even if you follow the process). Please proceed at your own risk.</p>
<p>First, please try the following in terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #660033;">-f</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>If it does not work, then you may want to try:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">--force</span> all <span style="color: #660033;">--remove</span></pre></div></div>

<p>If both of them still produce similar errors, then continue. If the above commands fix your problem, you should not continue.</p>
<p>1. Close Synaptic or any package manager. Wait for or cancel any updates or install\uninstall.<br />
2. Make Backups of current /var/lib/dpkg/status file. Just copy and paste to your home directory or Desktop.<br />
3. Alt+F2 and launch type in gksu gedit /var/lib/dpkg/status and run it. Gedit will be launched with a text file open.<br />
4. Now, search for the exact name of the package with problems and find it.<br />
5. In my case, it I found the entry for the package python-beagle:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Package: python-beagle
Status: deinstall ok half-configured
Priority: optional
Section: python
Installed-Size: 168
Maintainer: Ubuntu Core Developers
Architecture: amd64
Source: libbeagle
Version: 0.3.5-2build1
Replaces: python2.4-beagle (&amp;lt;&amp;lt; 0.2.7-1)
Provides: python2.6-beagle
Depends: python (&amp;lt;&amp;lt; 2.7), python (&amp;gt;= 2.6), python-support (&amp;gt;= 0.7.1), libbeagle1 (&amp;gt;= 0.3.5), libc6 (&amp;gt;= 2.4), python-gtk2
Conflicts: python2.4-beagle (&amp;lt;&amp;lt; 0.2.7-1)
Description: Python bindings for beagle
Allow accessing Beagle daemon and peforming searches using Python.</pre></div></div>

<p>6. Select and delete that information and that much information only, i.e. you will remove &#8220;Package: culprit-package-name&#8221; to &#8220;Description: culprit package description&#8221;. Remmber, &#8220;culprit package description&#8221; may be multiline and you will need to remove all the lines till a blank line. Don&#8217;t forget to leave a line blank between the package description above and the one below. To clarify things out, I have placed the images here, pelase have a look. Here the package to be removed is python-beagle.</p>
<div class="wp-caption alignnone" style="width: 406px"><a href="http://www.khattam.info/img/before.png"><img title="Before Deletion" src="http://www.khattam.info/img/before.png" alt="before [SOLVED] subprocess pre removal script returned error exit status 2 error" width="402" height="249" /></a><p class="wp-caption-text">Before Deletion</p></div>
<div class="wp-caption alignnone" style="width: 406px"><a href="http://www.khattam.info/img/selection.png"><img title="Selection" src="http://www.khattam.info/img/selection.png" alt="selection [SOLVED] subprocess pre removal script returned error exit status 2 error" width="402" height="262" /></a><p class="wp-caption-text">Selection</p></div>
<div class="wp-caption alignnone" style="width: 405px"><a href="http://www.khattam.info/img/after.png"><img title="After" src="http://www.khattam.info/img/after.png" alt="after [SOLVED] subprocess pre removal script returned error exit status 2 error" width="401" height="257" /></a><p class="wp-caption-text">After</p></div>
<p>7. Launch Synaptic (or any package manager) and then search for package. You will see the package as not installed. Mark it for installation and install it. If you start to see the same error, restart the same process from Step 1 but the next time, stop at step 6.<br />
8. Now, you should be able to remove it if you no longer want the package. If you can&#8217;t, restart the same process from Step 1 but the next time, stop at step 6.</p>
<p>Hope this was helpful. Please post in comments.</p>
<div class="shr-publisher-303"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error-2009-08-04.html/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>A better Torrent Client For Ubuntu 9.04 (Jaunty Jackalope)</title>
		<link>http://www.khattam.info/a-better-torrent-client-for-ubuntu-9-04-jaunty-jackalope-2009-07-29.html</link>
		<comments>http://www.khattam.info/a-better-torrent-client-for-ubuntu-9-04-jaunty-jackalope-2009-07-29.html#comments</comments>
		<pubDate>Wed, 29 Jul 2009 13:58:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope 9.04]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[bittorrent client]]></category>
		<category><![CDATA[deluge]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[ktorrent]]></category>
		<category><![CDATA[torrent client]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=266</guid>
		<description><![CDATA[Transmission is the default torrent client with Ubuntu. However, I love ktorrent because of the various features it provides. As I use ubuntu and KDE based softwares require kdelibs to be installed, I usually go for alternatives and I found deluge to be a great alternative for ktorrent. It provides similar features as ktorrent. It [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Transmission is the default torrent client with Ubuntu. However, I love ktorrent because of the various features it provides. As I use ubuntu and KDE based softwares require kdelibs to be installed, I usually go for alternatives and I found deluge to be a great alternative for ktorrent. It provides similar features as ktorrent.</p>
<p>It can be installed directly via Synaptic but for the latest version, just type in the following in the terminal window. The following instructions apply to Ubuntu 9.04 (Jaunty Jackalope).<br />
<span id="more-266"></span><br />
<strong><br />
1. Add the deluge repository:</strong> (Copy all the lines before step 2 at once, it is just a single line split because it was long. You may use triple click to select the whole line.)<br />
<code>sudo sh -c "echo 'deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu jaunty main' &gt;&gt; /etc/apt/sources.list"</code></p>
<p></p>
<p><strong>2. Add the launchpad key:</strong><br />
a. Get launchpad key updater<br />
<code>wget "http://files.getdropbox.com/u/1113424/launchpad-update.tar.gz"</code><br />
b. Extract it<br />
<code>tar -xf launchpad-update.tar.gz</code><br />
c. Install it<br />
<code>sudo mv launchpad-update /usr/bin</code><br />
d. Add keys<br />
<code>sudo launchpad-update</code></p>
<p><strong>3. Update your package list:</strong><br />
<code>sudo apt-get update</code></p>
<p><strong>4. Install</strong><br />
<code>sudo apt-get install deluge</code></p>
<p>Now, to launch it, goto Applications &gt; Internet &gt; Deluge BitTorrent Client.</p>
<div class="shr-publisher-266"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/a-better-torrent-client-for-ubuntu-9-04-jaunty-jackalope-2009-07-29.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[HOWTO]Install Firefox 3.5 in Jaunty Jackalope and Make Add-Ons Compatible</title>
		<link>http://www.khattam.info/install-firefox-3-5-and-make-plugins-compatible-2009-07-29.html</link>
		<comments>http://www.khattam.info/install-firefox-3-5-and-make-plugins-compatible-2009-07-29.html#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:32:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope 9.04]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[add-on compatibility]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[default for html]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox-3.5]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[jaunty ubuntu repositories]]></category>
		<category><![CDATA[minefield]]></category>
		<category><![CDATA[nightly tester tools]]></category>
		<category><![CDATA[open with]]></category>
		<category><![CDATA[shiretoko]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=250</guid>
		<description><![CDATA[Firefox 3.5 is out for other OSes however the final version is not available for Linux. This is how you install it on your Jaunty Jackalope installation. We will use the terminal for this. It is just a copy and paste from here to your terminal so it should be fine. Installation 1. Add the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Firefox 3.5 is out for other OSes however the final version is not available for Linux. This is how you install it on your Jaunty Jackalope installation. We will use the terminal for this. It is just a copy and paste from here to your terminal so it should be fine.<span id="more-250"></span></p>
<p><strong>Installation</strong><br />
<strong><br />
1. Add the mozilla repository:</strong> (Copy all the lines before step 2 at once, it is just a single line split because it was long. You may use triple click to select the whole line.)<br />
<code>sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main' &gt;&gt; /etc/apt/sources.list"</code><br />
<br />
<strong>2. Add the launchpad key:</strong><br />
a. Get launchpad key updater<br />
<code>wget "http://files.getdropbox.com/u/1113424/launchpad-update.tar.gz"</code><br />
b. Extract it<br />
<code>tar -xf launchpad-update.tar.gz</code><br />
c. Install it<br />
<code>sudo mv launchpad-update /usr/bin</code><br />
d. Add keys<br />
<code>sudo launchpad-update</code></p>
<p><strong>3. Update your package list:</strong><br />
<code>sudo apt-get update</code></p>
<p><strong>4. Install</strong><br />
<code>sudo apt-get install firefox-3.5</code></p>
<p>Enter password when required and answer yes/no questions appropriately and it should be no problem.</p>
<p><strong>Launching the new browser</strong><br />
Now, after it is installed, you can launch it from Applications &gt; Internet &gt; Minefield 3.5 Web Browser and it will be called Shiretoko (I don&#8217;t understand the brand names.. Minefield, Shiretoko.. for the same firefox-3.5? whatever). You may even launch it by doing a Alt+F2 and typing in firefox-3.5. And it should check for add-on compatibility and find updates to your add-ons. Choose to install the available updates.<br />
<strong><br />
Add-on Compatibility</strong><br />
But you will find some add-ons are not compatible and will therefore be disabled. To fix this, grab <a title="Nightly Tester Tools" href="https://addons.mozilla.org/en-US/firefox/addon/6543 " target="_blank" onclick="pageTracker._trackPageview('/outgoing/addons.mozilla.org/en-US/firefox/addon/6543?referer=');">Nightly Tester Tools add-on</a> and restart your browser. Now, goto Tools&gt;Add-ons and then click on &#8220;Override all compatibility&#8221; on the lower right. This should fix the Add-ons so that they work with firefox-3.5.</p>
<div class="wp-caption alignnone" style="width: 351px"><img title="Nightly Tester Tools Overide Compatibility" src="http://khattam.info/miscimgs/Screenshot-Add-ons.png" alt="Screenshot Add ons [HOWTO]Install Firefox 3.5 in Jaunty Jackalope and Make Add Ons Compatible" width="347" height="232" /><p class="wp-caption-text">Nightly Tester Tools Overide Compatibility in Firefox 3.5</p></div>
<p>Restart the browser and everything should be working.</p>
<p><strong>Firefox 3.5 as the default browser</strong><br />
Also, you&#8217;d like the default browser to be firefox-3.5 instead of firefox. To do that, goto System&gt;Preferences and select Preferred Applications. Now, in Web Browser, select Custom and then replace firefox %s with firefox-3.5 %s. Now, your default browser is firefox-3.5.</p>
<div class="wp-caption alignnone" style="width: 386px"><img title="Firefox 3.5 as the default browser" src="http://khattam.info/miscimgs/Screenshot-Preferred%20Applications.png" alt="Screenshot Preferred%20Applications [HOWTO]Install Firefox 3.5 in Jaunty Jackalope and Make Add Ons Compatible" width="382" height="330" /><p class="wp-caption-text">Firefox 3.5 as the default browser</p></div>
<p>You will also like your HTML files to open with the new firefox-3.5. Right click on any html file and then select Properties. In the Open with tab, select Minefield 3.5 Web Browser instead of Firefox Web Browser.</p>
<div class="wp-caption alignnone" style="width: 396px"><img title="Firefox 3.5 as default for HTML Files" src="http://khattam.info/miscimgs/Screenshot-new.html%20Properties.png" alt="Screenshot new.html%20Properties [HOWTO]Install Firefox 3.5 in Jaunty Jackalope and Make Add Ons Compatible" width="392" height="448" /><p class="wp-caption-text">Firefox 3.5 as default for HTML Files</p></div>
<p><strong>More on Add-on Compatibility</strong><br />
We have seen how to make the old add-ons, that were already installed, compatible with the new browser by using Nightly Tester Tools. But what about the add-ons that were not already installed and that are not marked to be compatible with the new firefox-3.5 (like the add-on <a title="Cookieswap" href="https://addons.mozilla.org/en-US/firefox/search?q=cookieswap&amp;cat=all" target="_blank" onclick="pageTracker._trackPageview('/outgoing/addons.mozilla.org/en-US/firefox/search?q=cookieswap_amp_cat=all&amp;referer=');">here</a> called cookieswap.. as of now, it is marked as not compatible with firefox-3.5)?</p>
<div class="wp-caption alignnone" style="width: 427px"><img title="Cookieswap" src="http://khattam.info/miscimgs/cookieswap.png" alt="cookieswap [HOWTO]Install Firefox 3.5 in Jaunty Jackalope and Make Add Ons Compatible" width="423" height="134" /><p class="wp-caption-text">Cookieswap</p></div>
<p>We have a workaround and that will be to launch the older firefox 3.0 and then instead of clicking on the Add to Firefox button, right-click instead and Save&gt;Link&gt;As. Now in Firefox-3.5, goto Tools&gt;Add-ons and then drag and drop the downloaded xpi file onto the Add-ons window.<br />
In case you have removed the older firefox and then you may use either User Agent Switcher to switch the User-Agent header to older version of Firefox or just use firebug to display the hidden download div. If this is difficult for you, go with the first workaround.</p>
<p>Hope this helps. Have a good day.</p>
<p>Please post any comments, suggestions, questions, corrections or feedback.</p>
<div class="shr-publisher-250"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/install-firefox-3-5-and-make-plugins-compatible-2009-07-29.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

