<?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 Pexperiences &#187; aptitude</title>
	<atom:link href="http://www.pexperiences.com/tag/aptitude/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pexperiences.com</link>
	<description>all my memories keeping</description>
	<lastBuildDate>Thu, 19 Jan 2012 00:58:46 +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>Resolve : Error when apt-get or aptitude</title>
		<link>http://www.pexperiences.com/2008/12/23/resolve-error-when-apt-get-or-aptitude/</link>
		<comments>http://www.pexperiences.com/2008/12/23/resolve-error-when-apt-get-or-aptitude/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 14:51:52 +0000</pubDate>
		<dc:creator>Pex</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.pexperiences.com/?p=338</guid>
		<description><![CDATA[ถ้าประสบปัญหา apt-get หรือ aptitude แล้วเออเร่อประมาณนี้ E: Could not get lock /var/lib/dpkg/lock &#8211; open (11 Resource temporarily unavailable) E: Unable to lock the administr... ]]></description>
			<content:encoded><![CDATA[<p>ถ้าประสบปัญหา apt-get หรือ aptitude แล้วเออเร่อประมาณนี้</p>
<p><strong>E: Could not get lock /var/lib/dpkg/lock &#8211; open (11 Resource temporarily unavailable)<br />
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?</strong></p>
<p>แก้ง่าย ๆ ก็ฆ่า Process นั้นให้ตายซะ แล้วไหนล่ะ Process ที่ว่า ?</p>
<p>ให้ใช้คำสั่งนี้ครับ พิมพ์ลงไปใน Terminal</p>
<p><strong>ps -e | grep -e apt -e adept | grep -v grep</strong></p>
<p>ข้างบนนี้คือคำสั่งที่ใช้ grep หรือให้แสดง Process ที่เกี่ยวกับ apt- ทั้งหลายที่รันอยู่ (ไม่ว่าจะเป็น apt-get, apt-cache, aptitude หรือ apt ใด ๆ ก็ตาม) จากนั้นก็จะมี Process ที่รันค้างอยู่ปรากฎขึ้นมาดังประมาณนี้</p>
<p><strong> 7591 ?        00:00:01 aptitude</strong></p>
<p>วิธีฆ่ามันให้ตายง่าย ๆ ก็</p>
<p><strong>sudo kill -9 7591</strong></p>
<p>โดยที่ 7591 นั้นก็คือรหัสของ Process ที่รันอยู่นั่นเอง</p>
<p>เพียงแค่นี้ก็ apt- ได้สบายหายห่วง !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pexperiences.com/2008/12/23/resolve-error-when-apt-get-or-aptitude/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>apt-get VS aptitude ปริศนาที่คาใจมานาน</title>
		<link>http://www.pexperiences.com/2008/11/08/apt-get-vs-aptitude/</link>
		<comments>http://www.pexperiences.com/2008/11/08/apt-get-vs-aptitude/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 15:39:55 +0000</pubDate>
		<dc:creator>Pex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.pexperiences.com/?p=245</guid>
		<description><![CDATA[เคยสงสัยมานานแล้วว่ามันต่างกันอย่างไร พยายามหาใน Google ก็เจอแบบภาษาปะกิด ไม่กระดิกอย่างแรง ... ]]></description>
			<content:encoded><![CDATA[<p>เคยสงสัยมานานแล้วว่ามันต่างกันอย่างไร พยายามหาใน Google ก็เจอแบบภาษาปะกิด ไม่กระดิกอย่างแรง จนได้เข้าไปเที่ยว Debian Club นั่นแหละครับ ถึงไปพบกระทู้ที่ทำให้ตาสว่าง เลยขออนุญาติยกมาเก็บไว้ที่นี่ เผื่อวันหลังลืมจะได้เข้ามาระลึกความทรงทำใหม่ได้ง่าย ๆ</p>
<h1 class="title">อยากทราบความแตกต่างระหว่าง apt-get install กับ aptitude install ครับ ทำไมให้ผลแตกต่างกัน</h1>
<div class="node"><span class="submitted">Submitted by ptksoft on 27 August, 2008 &#8211; 08:32.</span> <span class="taxonomy"></p>
<ul class="links inline">
<li class="first last taxonomy_term_1"><a class="taxonomy_term_1" title="ปรึกษา พูดคุย เกี่ยวกับการใช้งานเดเบียน" rel="tag" href="http://debianclub.org/forum/general">การใช้งานเดเบียน</a></li>
</ul>
<p></span></p>
<div class="content">
<p>คือเวลาติดตั้งแพคเก็ต หรือดูในตัวอย่างการติดตั้งต่างๆ บางทีก็ใช้ apt-get install<br />
หรือบางที่ก็ใ้ช้ aptitude install ทำให้งง ว่า จริงๆ แล้วมันคือตัวเดียวกันหรือเปล่า<br />
หรือว่าทำงานไม่เหมือนกันอย่างไรครับ</p>
<p>เพราะบางแพคเก็บเช่นผมลงทดสอบลง apt-get install postfix<br />
ปรากฏว่าลงได้ เซอร์วิสทำงานได้ สามารถ telnet localhost 25 ได้<br />
แต่!!! พอ telnet เข้าไปถึงแล้ว มันไม่ response อะไรเลย ค้างอยู่อย่างงั้นแหละ</p>
<p>พอลองอีกเครื่องนึงลงเหมือนกันแต่ใช้อีกคำสั่ง aptitude install postfix<br />
ปรากฏว่ารายแพกเก็ตที่จะติดตั้ง เยอะกว่าแบบแรกมาก ใช้เวลาลงนานกว่า<br />
พอเซอร์วิสทำงานเสร็จลอง telnet localhost 25 ดูปรากฏว่าเชื่อมต่อได้<br />
และมี response ขึ้นมา สามารถพิมพ์คำสั่งส่งเมล์ได้</p>
<p>เลยเป็นงงว่า มันทำงานต่างกันยังไงครับ</p></div>
<div class="clear-block clear"></div>
</div>
<h3><a class="active" href="http://debianclub.org/node/347#comment-760">Re: ความแตกต่างระหว่าง apt-get install กับ aptitude install</a></h3>
<div class="submitted">Submitted by thep on 28 August, 2008 &#8211; 21:48.</div>
<div class="content">
<p>apt-get โดยปกติจะติดตั้ง dependency น้อยกว่า aptitude ครับ คือ apt-get จะติดตั้งเฉพาะแพกเกจที่ Depends: แต่ aptitude จะติดตั้ง Recommends: นอกเหนือจาก Depends: ด้วย ซึ่ง Recommends: นี้ เป็น dependency แบบ &#8220;แนะนำให้ใช้ร่วม&#8221; แต่ไม่ถึงกับทำให้แพกเกจทำงานไม่ได้ถ้าขาดไปเหมือนกับ Depends:</p>
<p>ข้อแตกต่างอีกอย่างคือ aptitude จะถอดถอนแพกเกจที่ไม่จำเป็นต้องใช้แล้ว เช่น library รุ่นเก่า ๆ ที่ไม่มีใครใช้แล้วให้โดยอัตโนมัติ ในขณะที่สำหรับ apt-get จะต้องสั่ง &#8220;apt-get autoremove&#8221; เพื่อลบเอา</p>
<p>แนวคิดคือ apt-get เป็นเครื่องมือติดตั้งแบบพื้นฐาน ไม่แนะนำอะไรมาก ทำเท่าที่จำเป็น แต่จะบอกข้อมูลให้ผู้ใช้ตัดสินใจเอง แต่ aptitude จะช่วยตัดสินใจให้ในระดับหนึ่ง</p>
<p>ที่มา <a href="http://debianclub.org/node/347" target="_blank">DebianClub.org</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.pexperiences.com/2008/11/08/apt-get-vs-aptitude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

