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;
[quote=wewewe]...
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.