LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2009, 11:55 AM   #1
fred!head
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Problem with apt-get upgrade


Hi,

I'm running this server config: Ubuntu 8.04 Hardy Heron, Virtualmin (free), on a VPS (Linode) with all the usual toys (e.g. Apache, MySQL).

I've had problems off and on over the past year with Bacula tripping up the server operations. I finally did a apt-get --purge remove bacula today then went into Virtualmin and used the Webmin Configuration pages to remove it from that software. In theory, it should be gone.

However, when I run apt-get upgrade I get a Bacula-related message. I would like to know either how to get rid of the message OR how to get update to skip any Bacula programs.

Here's the console output after I run apt-get upgrade:

"Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9 libbind9-30 libisc32 libisccc30 libisccfg30 openssh-client
openssh-server ssl-cert
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encod ing.pm line 16.
Use of uninitialized value in scalar chomp at /usr/share/perl5/Debconf/Encoding. pm line 17.
Setting up bacula-director-mysql (2.2.8-5ubuntu7.2) ...
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encod ing.pm line 16.
Use of uninitialized value in scalar chomp at /usr/share/perl5/Debconf/Encoding. pm line 17.
* Stopping Bacula Director: [ OK ]
* Starting Bacula Director: 20-Jun 11:10 bacula-dir: ERROR TERMINATION at parse_conf.c:829
Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory

[fail]
dpkg: error processing bacula-director-mysql (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bacula-server:
bacula-server depends on bacula-director-mysql (>= 2.2.8-5ubuntu7.2) | bacula-d irector; however:
Package bacula-director-mysql is not configured yet.
Package bacula-director is not installed.
Package bacula-director-mysql which provides bacula-director is not configured yet.
dpkg: error processing bacula-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bacula-director-mysql
bacula-server
E: Sub-process /usr/bin/dpkg returned an error code (1)"

Also, when I run dpkg -L bacula I get this console output:

"Package `bacula' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents."

Any help or ideas would be appreciated. I'm looking to learn so feel free to point up any stupid things (you know, GUI or Gross User Incompetence errors). Thank you!
 
Old 06-20-2009, 03:14 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
From your log output, it looks like you have problems with some packages of Bacula still being installed (probably a problem with the remove operation). bacula-director-mysql appears to be installed but not configured, which is causing errors in bacula-server.

Since you want to uninstall Bacula, I would start by removing those packages
Code:
apt-get purge bacula-server bacula-director-mysql
You may also be able to run the following to resolve the dependency problems:
Code:
apt-get dist-upgrade
This will also upgrade the openssl packages that are being kept back.
 
Old 06-20-2009, 09:20 PM   #3
fred!head
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
That did the trick!

Thanks for helping me solve this issue. The second command, in particular, helped because when I ran apt-get upgrade after the purge command it didn't work. I got a console message that 8 upgrades were in queue. The dist-upgrade command cleared that problem up. So double thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with apt-get upgrade fred!head Linux - Newbie 2 06-22-2009 10:17 AM
apt-get upgrade problem s0mmy Debian 1 05-09-2006 03:52 PM
apt-get upgrade problem igorc Debian 8 01-22-2006 10:21 AM
problem with apt after mysql upgrade davesbedroom Red Hat 1 11-10-2005 06:21 PM
Apt-get upgrade conflict problem satimis Red Hat 0 07-18-2004 09:25 PM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration