Hadyai Internet R&D LAB

ผลงานของ Hadyai Internet R&D LAB => คุยกับทีมวิจัย => ข้อความที่เริ่มโดย: relaxy ที่ 29 สิงหาคม 2008, 18:35:08

หัวข้อ: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: relaxy ที่ 29 สิงหาคม 2008, 18:35:08
หลังจากลง เวอร์ชั่นใหม่ ลงไป ไม่สามารถใช้คำสั่ง apt-get install
ตัวอย่างเช่น

#apt-get install cacti
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  cacti: Depends: php4-snmp but it is not installable or
                  php5-snmp but it is not going to be installed
         Depends: rrdtool but it is not going to be installed
         Depends: snmp but it is not going to be installed
         Depends: libphp-adodb (>= 4.50-1) but it is not going to be installed
         Depends: dbconfig-common (>= 1.8.8) but it is not going to be installed
  kernel-package: Depends: dpkg-dev (>= 1.4.0.9) but it is not going to be installed
                  Depends: gcc but it is not going to be installed or
                           c-compiler
                  Depends: make (>= 3.80-10) but it is not going to be installed
  libncurses5-dev: Depends: libc-dev
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

สั่ง apt-get -f install ก็ไม่ได้ ไม่ทราบว่าต้องแก้ไขยังไงครับ
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: admin ที่ 29 สิงหาคม 2008, 19:58:43
ลอง  apt-get clean

แล้วก็  apt-get update

แล้วค่อย apt-get install ใหม่
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: iCafe ที่ 29 สิงหาคม 2008, 19:59:32
ไม่มี gcc compiler ครับ

สั่ง apt-get  install build-essential libncurses5-dev
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: relaxy ที่ 29 สิงหาคม 2008, 20:01:03
ลองแล้วไม่ได้ครับผม
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: admin ที่ 29 สิงหาคม 2008, 20:22:32
ตอนติดตั้ง  ติดตั้งแบบ Express หรือ  Custom ครับ
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: relaxy ที่ 29 สิงหาคม 2008, 20:55:40
จริงๆ แล้วติดตั้งแบบวิธีเดิม(เวอร์ชั่นแรก)  เนื่องจากแผ่น os ตัวใหม่ปัญหา
ผมเลยใช้วิธี ติดตั้งแบบวิธีเดิมและใช้ script ตัวใหม่ ครับ
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: admin ที่ 25 กันยายน 2008, 19:34:04
พิมพ์  apt-get install -f   ก่อน

โปรแกรมจะทำการโหลด module ที่เกี่ยวข้องที่ยังไม่ได้ติดตั้ง

เสร็จแล้วก็  apt-get install cacti ใหม่ได้ครับ
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: relaxy ที่ 25 กันยายน 2008, 20:25:50
ทำได้แล้วครับ ขอบคุณครับ
หัวข้อ: Re: สั่ง apt-get install ไม่ได้ครับ
เริ่มหัวข้อโดย: admin ที่ 25 กันยายน 2008, 20:50:37
การ Config Cacti อยู่ในคู่มือ ฉบับเต็ม  หน้า 110 เป็นต้นไปนะครับ

ลองทำตามดูนะครับ