<?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; dpkg-deb</title>
	<atom:link href="http://johker.ibutho.de/tag/dpkg-deb/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>
	</channel>
</rss>
