gagal install aplikasi karena qmail

Semua mengenai teknik instalasi Ubuntu termasuk teknik instalasi aplikasinya dan migrasi dari Windows.
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

gagal install aplikasi karena qmail

Postby wewewe » 24 Dec 2013, 20:49

mohon bantuannya, newbie baru belajar install ubuntu 12.04, trus lupa ada prosedur yg dilewati, sehingga saat install aplikasi apa saja baik di terminal atau di software center selalu muncul :

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Sedang menata qmail (1.06-4) ...

The hostname -f command returned: $1

Your system needs to have a fully qualified domain name (fqdn) in
order to install the var-qmail packages.

Installation aborted.

dpkg: ada kesalahan saat memproses qmail (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
qmail
E: Sub-process /usr/bin/dpkg returned an error code (1)

mohon bantuannya, makasih
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail

Postby nif » 24 Dec 2013, 21:05

ya, ini karena memang Ubuntu menggunakan sistem manajemen aplikasi yang terpusat om, jadi kalo ada satu aja aplikasi yang error, install aplikasi lain tidak diizinkan dulu sebelum errornya teratasi.

ini yang error script post-installasi qmail, yang menyebabkan configure dpkg tidak bisa dilakukan.
bagaimana kalo saya coba bantu untuk hapus qmail aja? setidaknya biar errornya hilang dulu. nanti kalo suatu saat mau pasang qmail silahkan install lagi :)

coba buka terminal, beri perintah;

Code: Select all

sudo mv /var/lib/dpkg/info/qmail.postinst /home/(nama username Anda)/backup_postinst_qmail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get purge qmail


cmiiw
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

Re: gagal install aplikasi karena qmail

Postby wewewe » 24 Dec 2013, 21:28

berikut hasil dari perintah :

wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail.postinst /home/wisnu/backup_postinst_qmail
mv: cannot stat `/var/lib/dpkg/info/qmail.postinst': No such file or directory
wisnu@wisnu-M540SR:~$ sudo dpkg --configure -a
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db
wisnu@wisnu-M540SR:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
wisnu@wisnu-M540SR:~$ sudo apt-get purge qmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
qmail*
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Sedang membaca basis data ... 189065 berkas atau direktori telah terpasang.)
Sedang membuang qmail ...
Sedang memusnahkan berkas konfigurasi untuk qmail ...
rmdir: failed to remove `/var/lib/qmail/queue': Directory not empty
rmdir: failed to remove `/var/lib/qmail': Directory not empty
rm: cannot remove `/etc/qmail/qmail-send': Is a directory
rm: cannot remove `/etc/qmail/qmail-smtpd': Is a directory
rm: cannot remove `/etc/qmail/qmail-verify': Is a directory
dpkg: ada kesalahan saat memproses qmail (--purge):
subproses skrip post-removal terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
qmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
wisnu@wisnu-M540SR:~$ ^C
wisnu@wisnu-M540SR:~$

..
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail

Postby nif » 24 Dec 2013, 21:37

masalahnya cuma di sini;
wewewe wrote:...
wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail.postinst /home/wisnu/backup_postinst_qmail
mv: cannot stat `/var/lib/dpkg/info/qmail.postinst': No such file or directory
..

script qmail.postinst tidak ditemukan. berarti namanya bukan qmail.postinst mungkin ya? :confused:
btw ini pake Ubuntu kan om? karena kalo distro lain bisa jadi berbeda struktur directory-nya.
edit : sudah disebutkan di atas Ubuntu 12.04. maap kurang teliti baca :D


coba buka terminal lagi, beri perintah

Code: Select all

ls -1 /var/lib/dpkg/info | grep qmail

lalu tolong hasilnya disalin kemari.
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

Re: gagal install aplikasi karena qmail

Postby wewewe » 24 Dec 2013, 21:43

ya, ubuntu 12.04

wisnu@wisnu-M540SR:~$ ls -1 /var/lib/dpkg/info | grep qmail
qmail.list
qmail.postrm
qmail-run.list
qmail-run.postrm
qmail-uids-gids.list
qmail-uids-gids.md5sums
qmail-uids-gids.postinst
qmail-uids-gids.postrm
qmail-uids-gids.preinst
wisnu@wisnu-M540SR:~$
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail

Postby nif » 24 Dec 2013, 21:55

oh, ternyata benar, namanya bukan qmail.postinst :D

kalo begitu, coba seperti ini om;

Code: Select all

sudo mv /var/lib/dpkg/info/qmail.postrm /home/wisnu/backup_qmail.postrm
sudo mv /var/lib/dpkg/info/qmail-run.postrm /home/wisnu/backup_qmail-run.postrm
sudo mv /var/lib/dpkg/info/qmail-uids-gids.postinst /home/wisnu/backup_qmail-uids-gids.postinst
sudo mv /var/lib/dpkg/info/qmail-uids-gids.postrm /home/wisnu/backup_qmail-uids-gids.postrm
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get purge qmail
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

Re: gagal install aplikasi karena qmail

Postby wewewe » 24 Dec 2013, 22:01

terima kasih bantuannya mas nif, tapi masih ada error :

wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail.postrm /home/wisnu/backup_qmail.postrm
[sudo] password for wisnu:

wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail-run.postrm /home/wisnu/backup_qmail-run.postrm

wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail-uids-gids.postinst /home/wisnu/backup_qmail-uids-gids.postinst

wisnu@wisnu-M540SR:~$ sudo mv /var/lib/dpkg/info/qmail-uids-gids.postrm /home/wisnu/backup_qmail-uids-gids.postrm
wisnu@wisnu-M540SR:~$ sudo dpkg --configure -a
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db

wisnu@wisnu-M540SR:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)

wisnu@wisnu-M540SR:~$ sudo apt-get purge qmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
qmail*
0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Sedang membaca basis data ... 189065 berkas atau direktori telah terpasang.)
Sedang membuang qmail ...
dpkg: peringatan: ketika membuang qmail, direktori '/var/lib/qmail/queue/mess/11' tidak kosong, jadi tidak dibuang.
dpkg: peringatan: ketika membuang qmail, direktori '/var/lib/qmail/queue/mess/5' tidak kosong, jadi tidak dibuang.
dpkg: peringatan: ketika membuang qmail, direktori '/var/lib/qmail/queue/mess/6' tidak kosong, jadi tidak dibuang.
dpkg: peringatan: ketika membuang qmail, direktori '/var/lib/qmail/queue/todo' tidak kosong, jadi tidak dibuang.
dpkg: peringatan: ketika membuang qmail, direktori '/var/lib/qmail/queue/intd' tidak kosong, jadi tidak dibuang.
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
wisnu@wisnu-M540SR:~$
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail

Postby nif » 24 Dec 2013, 22:09

tak masalah om, coba;

Code: Select all

sudo rm -f /var/lib/dpkg/lock
sudo dpkg --configure -a

itu aja dulu. apa masih ada error?
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

Re: gagal install aplikasi karena qmail

Postby wewewe » 24 Dec 2013, 22:12

masih muncul :

wisnu@wisnu-M540SR:~$ sudo rm -f /var/lib/dpkg/lock
wisnu@wisnu-M540SR:~$ sudo dpkg --configure -a
Sedang menata man-db (2.6.1-2ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: ada kesalahan saat memproses man-db (--configure):
subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1
Ada kesalahan saat memproses:
man-db
wisnu@wisnu-M540SR:~$
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail

Postby nif » 24 Dec 2013, 22:49

coba lihat output dari perintah ini om;

Code: Select all

lsof /var/cache/debconf/config.dat
fuser -v /var/cache/debconf/config.dat
User avatar
wewewe
Posts: 6
Joined: 09 Jul 2010, 15:53

Re: gagal install aplikasi karena qmail - SOLVED !

Postby wewewe » 25 Dec 2013, 04:06

nif wrote:coba lihat output dari perintah ini om;

Code: Select all

lsof /var/cache/debconf/config.dat
fuser -v /var/cache/debconf/config.dat


perintah diatas tidak ada hasil output-nya, mas nif

dan setelah saya coba install satu aplikasi dan BERHASIL !!!!

terima kasih mas nif....
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: gagal install aplikasi karena qmail - SOLVED !

Postby nif » 25 Dec 2013, 05:51

bagus :D

error yang ini;
wewewe wrote:...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process...

maksudnya file /var/cache/debconf/config.dat sdang tak bisa diedit karena sedang digunakan oleh aplikasi lain.
jadi saya minta cek yang ini;

Code: Select all

fuser -v /var/cache/debconf/config.dat

untuk melihat aplikasi apa yang sedang menggunakannya.
karena enggak ada outputnya, berarti aplikasi yang tadi menggunakan sudah selesai :)

oke, saya lock ya.

tambahan :
karena penasaran, kemarin saya coba install qmail juga :grin:
dan ternyata langsung error juga seperti di atas. jadi sepertinya paket qmail ini memang sedikit bermasalah.
tapi jangan kuatir karena sebetulnya paket aplikasi yang 'error dari sananya' seperti ini boleh dibilang sangat jarang ditemui :)

cmiiw

Return to “Instalasi Ubuntu”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests