Sub-Process /usr/bin/dpkg returned an error code (1)

Ketika akan mengupdate Linux

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bind9 (1:9.9.2.dfsg.P1-2ubuntu2.1) ...
* Starting domain name service...

ternyata muncul error seperti ini:

bind9 [fail]
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

untuk menangani hal itu, masuk ke direktori info:

cd /var/lib/dpkg/info

kemudian hapus apa yang ada di dalam direktori info tersebut.

/var/lib/dpkg/info/#rm *.*

Setelah itu lakukan perintah berikut:

apt-get autoremove
apt-get autoclean

Lalu lakukan update kembali, maka error tersebut tidak ada.

(28)

3 comments on “Sub-Process /usr/bin/dpkg returned an error code (1)Add yours →

Leave a Reply

Your email address will not be published. Required fields are marked *