LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apt-get problem relating to Bacula (https://www.linuxquestions.org/questions/linux-server-73/apt-get-problem-relating-to-bacula-783028/)

TheOpposite 01-18-2010 01:31 PM

apt-get problem relating to Bacula
 
Hi all,
Just set up a brand new Ubuntu 9.10 server for the first time. I'm using Webmin to administer it for the most part. I've got everything set up and all is working well except for this one issue:

I installed Bacula, just to play around with it and try it out. I never used it or configured it. Just installed. Now I've realized I don't need or want it. I ran apt-get purge Bacula and it brings up the screen asking me if I want to delete the database or keep it. No matter what I choose it errors out and quits.
Now I'm stuck in a place where anytime I use apt-get it tries to install/configure bacula.
Running apt-get dist-upgrade brings me to the bacula-director-mysql configuration page everytime.


How can I get rid of it?

gatinois 01-18-2010 04:22 PM

Posting the error message would help find a solution.
You could try dpkg -r <package name> and/or dpkg -r --force-remove-reinstreq <package name>.

TheOpposite 01-18-2010 05:14 PM

Tried both of those, same issue.

My first post wasn't terribly clear, let me put it another way. With error reports. ;)

Every time I use apt-get, it is trying to configure bacula-director-mysql. When I installed telnetd, here is the response:

> sudo apt-get install telnetd
Reading package lists...
Building dependency tree...
Reading state information...
telnetd is already the newest version.
The following packages were automatically installed and are no longer required:
libdns50 linux-headers-2.6.31-14 linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bacula-director-mysql (2.4.4-1ubuntu9) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Configuring bacula-director-mysql
---------------------------------

Please provide the password for the administrative account with which this
package should create its MySQL database and user.

Password of the database's administrative user: Use of uninitialized value $ret in chomp at /usr/share/perl5/Debconf/FrontEnd/Teletype.pm line 70.

Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104.
dbconfig-common: writing config to /etc/dbconfig-common/bacula-director-mysql.conf
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO).
unable to connect to mysql server.
error encountered creating user:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Bacula Director
---------------

An error occurred while installing the database:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
NO)

If at this point you choose "retry", you will be prompted with all the
configuration questions once more and another attempt will be made at performing
the operation. "retry (skip questions)" will immediately attempt the operation
again, skipping all questions. If you choose "abort", the operation will fail
and you will need to downgrade, reinstall, reconfigure this package, or
otherwise manually intervene to continue using it. If you choose "ignore", the
operation will continue, ignoring further errors from dbconfig-common.

1. abort 2. retry 3. retry (skip questions) 4. ignore

Next step for database installation: Use of uninitialized value $ret in chomp at /usr/share/perl5/Debconf/FrontEnd/Teletype.pm line 70.

Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104.
dbconfig-common: bacula-director-mysql configure: aborted.
dbconfig-common: flushing administrative password
Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, <GEN6> line 51.
Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN6> line 51.
dpkg: error processing bacula-director-mysql (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bacula-director-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)



That is from webmin. If I run from the console at the server, I am presented with the choices shown above. No matter what options I choose I end up with the dpkg: error processing bacula-director-mysql. Apt-get seems to be working ok, and will install other packages without problem, I just want to stop it from trying to configure bacula-director-mysql everytime.

When I ran dpkg -r bacula-director-mysql, it asks me if I want to remove the database, I select yes, and it does. The the "configuring bacula-director-mysql" screen pops back up, and I'm right back where I started.


All times are GMT -5. The time now is 06:59 AM.