<?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>johker's blog &#187; apt-get</title>
	<atom:link href="http://johker.ibutho.de/tag/apt-get/feed/" rel="self" type="application/rss+xml" />
	<link>http://johker.ibutho.de</link>
	<description>stories about me, my life, science and my trips</description>
	<lastBuildDate>Sat, 29 May 2010 10:00:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Java auf einem Virtuozzo Virtual Server installieren</title>
		<link>http://johker.ibutho.de/2008/10/21/java-auf-einem-virtual-server-installieren/</link>
		<comments>http://johker.ibutho.de/2008/10/21/java-auf-einem-virtual-server-installieren/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 13:27:20 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[dpkg-deb]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sun-java5-bin]]></category>
		<category><![CDATA[sun-java6-bin]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[virtuozzo]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=62</guid>
		<description><![CDATA[Wie vielleicht einige wissen, administriere ich in meiner Freizeit einen virtuellen Server auf Virtuozzo Basis. Schon seit längerem ist es mir ein Dorn im Auge, dass sich Java darauf nicht installieren lässt lies. Seit heute ist das vorbei. Ich habe endlich eine Anleitung gefunden, wie man das Problem umgehen kann.
Zuerst vielleicht einmal, wie sich das [...]]]></description>
			<content:encoded><![CDATA[<p>Wie vielleicht einige wissen, administriere ich in meiner Freizeit einen virtuellen Server auf Virtuozzo Basis. Schon seit längerem ist es mir ein Dorn im Auge, dass sich Java darauf nicht installieren <span style="text-decoration: line-through;">lässt</span> lies. Seit heute ist das vorbei. Ich habe endlich eine Anleitung gefunden, wie man das Problem umgehen kann.</p>
<p>Zuerst vielleicht einmal, wie sich das Problem geäußert hat: Während des Installationsprozesses mit <em>aptitude</em> gab es einen Fehler beim Ausführen der <em>postinst</em>-Skripts von <strong>sun-java6-bin</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Setting up sun-java5-bin <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.5.0-<span style="color: #000000;">10</span>-<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Could not create the Java virtual machine.
<span style="color: #c20cb9; font-weight: bold;">dpkg</span>: error processing sun-java5-bin <span style="color: #7a0874; font-weight: bold;">&#40;</span>--configure<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
 subprocess post-installation script returned error <span style="color: #7a0874; font-weight: bold;">exit</span> status <span style="color: #000000;">1</span></pre></div></div>

<p>Um dieses Problem zu lösen, muss das Skript <em>postinst</em> im deb-Paket geändert werden und folgende Zeile auskommentiert werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$basedir</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #660033;">-client</span> -Xshare:dump <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

<p>Wie man ein deb-Paket entpackt und nach dem Modifizieren wieder ein deb-Paket erstellt, wird hier sehr ausführlich und gut beschrieben:</p>
<p><a title="http://thedarkmaster.wordpress.com/2008/05/24/how-to-create-manipulate-a-deb-file-of-a-compiled-application/" href="http://thedarkmaster.wordpress.com/2008/05/24/how-to-create-manipulate-a-deb-file-of-a-compiled-application/" target="_blank">http://thedarkmaster.wordpress.com/2008/05/24/how-to-create-manipulate-a-deb-file-of-a-compiled-application/</a></p>
<p>Zusammenfassend legt man einen Ordner "AAA" an, entpackt das deb-Paket mit tar in diesen Ordner, entpackt die darin enthaltene Datei <em>control.tar.gz</em> in ein Verzeichnis "DEBIAN" (muss in "AAA" erstellt werden) und entpackt die Datei <em>data.tar.gz</em> in den Ordner "AAA". Jetzt kann bearbeitet werden, was das Zeug hält. Ist man damit fertig, baut man das deb-Paket mit (man muss im Überordner von "AAA" sein):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dpkg-deb <span style="color: #660033;">--build</span> AAA</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2008/10/21/java-auf-einem-virtual-server-installieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dpkg error: trying to overwrite X, which is also in package Y</title>
		<link>http://johker.ibutho.de/2008/10/20/dpkg-error-trying-to-overwrite-x-which-is-also-in-package-y/</link>
		<comments>http://johker.ibutho.de/2008/10/20/dpkg-error-trying-to-overwrite-x-which-is-also-in-package-y/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 17:40:56 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[overwrite]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=54</guid>
		<description><![CDATA[Falls euch auch mal der Fehler in der Überschrift begegnet, so habe ich hier eine Lösung für euch:
Das Problem:

dpkg: error processing /var/cache/apt/archives/AAA &#40;--unpack&#41;:
trying to overwrite '/usr/lib/BBB', which is also in package CCC
dpkg-deb: subprocess paste killed by signal &#40;Broken pipe&#41;
Errors were encountered while processing:
AAA
E: Sub-process /usr/bin/dpkg returned an error code &#40;1&#41;

(AAA, BBB, CCC sind Platzhalter)
Zur Lösung [...]]]></description>
			<content:encoded><![CDATA[<p>Falls euch auch mal der Fehler in der Überschrift begegnet, so habe ich hier eine Lösung für euch:</p>
<p>Das Problem:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span>: error processing <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>cache<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>archives<span style="color: #000000; font-weight: bold;">/</span>AAA <span style="color: #7a0874; font-weight: bold;">&#40;</span>--unpack<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
trying to overwrite <span style="color: #ff0000;">'/usr/lib/BBB'</span>, <span style="color: #c20cb9; font-weight: bold;">which</span> is also <span style="color: #000000; font-weight: bold;">in</span> package CCC
dpkg-deb: subprocess paste killed by signal <span style="color: #7a0874; font-weight: bold;">&#40;</span>Broken pipe<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Errors were encountered <span style="color: #000000; font-weight: bold;">while</span> processing:
AAA
E: Sub-process <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dpkg</span> returned an error code <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>(AAA, BBB, CCC sind Platzhalter)</p>
<p>Zur Lösung des Problems führt man folgenden Befehl aus:</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;">-i</span> <span style="color: #660033;">--force-overwrite</span> AAA</pre></div></div>

<p>(wobei AAA für das Paket - mit vollem Pfad - steht, dessen Konfiguration man vorziehen will)</p>
<p>Danach führt man folgenden Befehl aus:</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> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-f</span></pre></div></div>

<p>Das sollte das Problem lösen.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2008/10/20/dpkg-error-trying-to-overwrite-x-which-is-also-in-package-y/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
