Ubuntu ใช้คำสั่ง upgrade ไม่ได้

เมื่อใช้คำสั่ง upgrade
[code]
# apt-get upgrade
[/code]

มีข้อความเตือน
[code]
could not get lock /var/lib/dpkg/lock
[/code]

สาเหตุ คือมีบางโปรเซสทำการ lock ไดเร็กทอรี่อยู่
ทางแก้ คือ kill โปรเซสที่มา lock ทิ้งเลย

ค้นหาโปรเซส apt
[code]
ps -ef | grep apt
[/code]

kill ทิ้งให้หมด
[code]
kill [process_id]
[/code]

เมื่อเรียกคำสั่ง upgrade อีกครั้งจะใช้ได้ละ
[code]
# apt-get upgrade
[/code]

VirtualBox : VT-x features locked or unavailable in MSR ubuntu

VirtualBox หลังจากติดตั้งเสร็จ

อาการ

พอสั่ง start ให้ virtual matching ทำงาน จะเห็นจอดำเหมือนรันได้ แต่แล้วก็ฟ้อง VT-x features locked or unavailable in MSR ubuntu
พอปิด error ไป เครื่องจำลองก็ดับ

สาเหตุ

ไม่ได้เปิด nested paging (AMD-V) หรือ EPT (Intel VT-x) features ใน BIOS เครื่อง host

ทางแก้ไข

ที่เครื่อง host ให้ boot แล้วเข้า BIOS จากนั้นไป enable ก็จะหาย Error

Ref : ubuntuforums.orgvirtualbox.org/

Android: วิธีแก้ไข Error: Your project contains error(s), please fix them before running your application

1) ตรวจสอบว่าได้ทำการติดตั้ง AVD แล้วหรือยัง
2) Set a target for your project (i.e.: Google APIs 1.6) โดยคลิกขวา ที่โปรเจ็กส์ของเรา แล้วเลือก Properties -> Android -> Project Build Target ให้เลือกเป็น Google APIs
028

ที่มา: http://stackoverflow.com/questions/2262294/android-application-development-oreilly-mjanddroid-example-code

Android: วิธีแก้ไข Error: Debug certificate expired

แก้ไข ให้เป็น English

027

จากนั้นไปที่ “C:\Documents and Settings\<user>\.android” หรือ “C:\Documents and Settings\<user>\Local Settings\Application Data\Android” แล้วทำการลบไฟล์ debug.keystore

เสร็จแล้วให้ rebuild โปรเจ็กส์ใหม่ โดยไปที่เมนู Project>Clean … จากนั้นก็รันตามปกติ

ที่มา: code.google.com/p/android/issues/detaiwww.mail-archive.com/android-beginners@googlegroups.com/msg14319.html