"Could not commit changes" error

Asked by Avril

I recently installed kubuntu 7.04, and I'm new to linux.

I've tried to install packages through the Adept Manager.
It managed to successfully fetch the new updates files but it fails to install them.
The following error massage pops-up:

-----------------------------------------------------------------------------------------------------------------------------------------------
*Could not commit changes- Adept Manager*
There was an error committing changes. Possibly there was a problem downloading some packages or the commit would break packages.
-----------------------------------------------------------------------------------------------------------------------------------------------

As suggested in response to Question #6104 I've ran the command:
sudo dpkg --configure -a && sudo apt-get -f install

the procedure failed:
----------------------------------------------------------------------------------------------------------------------------------------------
sudo dpkg --configure -a && sudo apt-get -f install
Setting up bacula-common (1.38.11-7ubuntu6) ...
chown: cannot access `/var/run/bacula': No such file or directory
dpkg: error processing bacula-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bacula-console-gnome:
 bacula-console-gnome depends on bacula-common (= 1.38.11-7ubuntu6); however:
  Package bacula-common is not configured yet.
dpkg: error processing bacula-console-gnome (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bacula-common
 bacula-console-gnome
----------------------------------------------------------------------------------------------------------------------------------------------
I made a small research concerning "bacula" and I'm afraid to mess up it's configuration.
Both "bacula-common" and "bacula-console-gnome" are installed on my computer.
Perhaps reinstalling them would help but It's not possible due to the first error.

Is there any way to install bacula externally?or to configure it differently?

Meanwhile I'm not able to add any programs and it's very limiting.
I'm kind of new at this- so It would be great if you could simplify your answers.
any help would be appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Avril
Solved:
Last query:
Last reply:
Revision history for this message
Markus Thielmann (thielmann) said :
#1

Thanks for your question.

Did you manually delete the /var/run/bacula directory? Since I just tried to install it without any problems on ubuntu feisty.

Best advice would be to deinstall bacula and install it again. Just run:

1) sudo apt-get remove --purge bacula-console-gnome bacula-common
2) sudo apt-get install bacula-console-gnome

in console.

This should get rid of any configuration files of bacula and just install it again.

Revision history for this message
Best Avril (limorr2d2) said :
#2

My friend managed to solve the problem:

If you encounter the same error you might try to type the following in the konsole:
sudo mkdir /var/run/bacula (this will create the missing folder of bacula)
sudo dpkg --configure -a (this will set-up "bacula-common" and "bacula-console-gnome")
sudo apt-get -f install (to solve the error we encountered first)

I hope I could help anyone!

Revision history for this message
Avril (limorr2d2) said :
#3

Thank you Marcus, It also helps!

Revision history for this message
Dan Straathof (dan-straathof) said :
#4

Hello, I was trying to install Azureus on Edgy(Kubuntu) and got a similar message to yours, not to do with bacula, but a commit error. When I tried the above command, this was my result:

Setting up havp (0.79-1) ...
Starting havp: Starting HAVP Version: 0.79
Could not open lock testfile /var/run/havp/havp-CjBjqz: No such file or directory
Maybe you need to: chown havp /var/run/havp
Exiting..
Exiting..
invoke-rc.d: initscript havp, action "start" failed.
dpkg: error processing havp (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 havp
Any ideas that might help me?

Revision history for this message
Dan Straathof (dan-straathof) said :
#5

oops, forgot to add the e-mail checkmark...

Revision history for this message
Somdev (somdev) said :
#6

Thank you, Avril !!

Your suggestion helped me to solve this problem....

Revision history for this message
johnnyb (pickerjohn) said :
#7

Yo...Avril. You the man! Thanx for the fix dude. johnnyb