Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was halfway through updating my machine when it crashed and I had to reboot.

It was updating new packages while it crashed.

When I try to use apt-get it always fails because of a mysql package.

mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.32-0ubuntu0.12.04.1) but 5.5.34-0ubuntu0.12.04.1 is to be installed

Typging sudo apt-get -f install returns the following error:

dpkg: dependency problems prevent configuration of mysql-server-5.5: mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.32-0ubuntu0.12.04.1); however: Version of mysql-server-core-5.5 on system is 5.5.34-0ubuntu0.12.04.1. dpkg: error processing mysql-server-5.5 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates it's a follow-up error from a previous failure.
dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates it's a follow-up error from a previous failure. Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anyone know how to fix this issue?

Thanks

share|improve this question

migrated from serverfault.com Oct 30 '13 at 15:14

This question came from our site for professional system and network administrators.

add comment

2 Answers

I solved the issue by installing directly the package from the download cache:

dpkg -i /var/cache/apt/archives/mysql-server-5.5_5.5.34-0ubuntu0.12.04.1_i386.deb
share|improve this answer
add comment

try to remove the package completely using

apt-get remove --purge package

then re-install it with

apt-get install

you might need to using su to do that.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.