| immer |
05-10-2012 05:15 PM |
apt-get: Sub-process /usr/bin/dpkg returned an error code
Hello.
I have some problems with apt-get. After doing some basic test on my Linux Mint 9 LTS desktop on bacula and mysql my apt-get upgrade process failed.
Code:
tobik ~ # LANG=en_US.UTF-8 uname -a
Linux tobik 2.6.32-35-generic-pae #78-Ubuntu SMP Tue Oct 11 17:01:12 UTC 2011 i686 GNU/Linux
tobik ~ # LANG=en_US.UTF-8 apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-generic linux-generic-pae linux-headers-generic linux-image-generic linux-image-generic-pae
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bacula-director-mysql (5.0.1-1ubuntu1) ...
debconf: Unknown template field '_description', in stanza #9 of /var/lib/dpkg/info/bacula-director-mysql.templates
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error processing bacula-director-mysql (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
tobik ~ # LANG=en_US.UTF-8 dpkg --configure --pending
Setting up bacula-director-mysql (5.0.1-1ubuntu1) ...
debconf: Unknown template field '_description', in stanza #9 of /var/lib/dpkg/info/bacula-director-mysql.templates
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error processing bacula-director-mysql (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
bacula-director-mysql
tobik ~ # LANG=en_US.UTF-8 apt-get purge bacula-director-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bacula-common-mysql bacula-director-common bacula-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
bacula-director-mysql*
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 864kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 177497 files and directories currently installed.)
Removing bacula-director-mysql ...
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error processing bacula-director-mysql (--purge):
subprocess installed pre-removal script returned error exit status 2
debconf: Unknown template field '_description', in stanza #9 of /var/lib/dpkg/info/bacula-director-mysql.templates
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
tobik ~ # LANG=en_US.UTF-8 apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bacula-common-mysql bacula-director-mysql bacula-director-common bacula-common
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bacula-director-mysql (5.0.1-1ubuntu1) ...
debconf: Unknown template field '_description', in stanza #9 of /var/lib/dpkg/info/bacula-director-mysql.templates
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error processing bacula-director-mysql (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
tobik ~ # LANG=en_US.UTF-8 apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bacula-common bacula-common-mysql bacula-director-common bacula-director-mysql
0 upgraded, 0 newly installed, 4 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 2,765kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 177497 files and directories currently installed.)
Removing bacula-director-mysql ...
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error processing bacula-director-mysql (--remove):
subprocess installed pre-removal script returned error exit status 2
debconf: Unknown template field '_description', in stanza #9 of /var/lib/dpkg/info/bacula-director-mysql.templates
.: 12: Can't open /usr/share/dbconfig-common/internal/mysql
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Removing bacula-director-common ...
Removing bacula-common-mysql ...
Removing bacula-common ...
Processing triggers for ureadahead ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for man-db ...
Errors were encountered while processing:
bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'd like to get rid of the problem - be able to upgrade the system.
It would be best to uninstall all the packages related to bacula and MySQL, along with the configuration. After that, I could play with them again after reinstalling.
|