Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The upgrade to Ubuntu 12.04 delete MySQL and I need urgently to get it back. The problem is that I'm getting an error installing it, either with apt-get or aptitude:

Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've already tried different ways to install MySQL but without success, as reported in this thread at the Forum:


I believe I should file a bug, but following the instructions I thought better to ask here first.

Thank you for reading.

share|improve this question
could try apt-get install -f –  konrad Jun 11 '12 at 7:32
I tried to install mysql with alien, but the results is about the same. Since I can't post the details here, I ask you to check the Ubuntu Forum: ubuntuforums.org/showpost.php?p=12022579&postcount=8 Thank you –  Luís de Sousa Jun 13 '12 at 8:17
add comment

3 Answers

If you read the log carefully, you see that the problem is that there is a package called libmysqlclient-dev with the version 5.5.23-1~dotdeb.0 which provides the file /usr/lib/mysql/plugin/ha_example.so. So, it seems that you had mysql installed from http://www.dotdeb.org. Try removing those packages first. You can find out which packages are from there using the following:

aptitude search "?installed?origin(packages.dotdeb.org)"

Remove them and then also remove the corresponding entry in your /etc/apt/sources.list file. Run apt-get update and then re-try installing your MySQL server.

share|improve this answer
Where can I find the log you mentioned? Will try it as you say. –  Luís de Sousa Jun 11 '12 at 13:35
Ok, first of all thank you for replying to my question. Where's what I tried: $ sudo cat /etc/apt/sources.list | grep dotdeb.org # deb php53.dotdeb.org stable all # disabled on upgrade to precise # deb-src php53.dotdeb.org stable all # disabled on upgrade to precise $ sudo aptitude search "?installed?origin(dotdeb.org)" $ sudo aptitude search "?installed?origin(php53.dotdeb.org)" It seems that indeed I had PHP packages installed from dotdeb.org but running the search you suggested I'm not getting any results. In any case, why would PHP packages interfere with MySQL? –  Luís de Sousa Jun 11 '12 at 13:42
Thank you once more, any more clues just let me know. –  Luís de Sousa Jun 11 '12 at 13:46
What does dpkg -S /usr/lib/mysql/plugin/ha_example.so tell you? –  Michael Wild Jun 11 '12 at 19:13
The log I was referring to was the command line log you posted on the Ubuntu forum. –  Michael Wild Jun 12 '12 at 6:28
show 1 more comment
up vote 1 down vote accepted

I finally managed to install mysql server following the tip by konrad, using sudo apt-get install -f.

share|improve this answer
add comment

not sure that this will help but after upgrading to 12.04 and facing the same issues you guys did, I took a look at the error.log file and found this:

130508 12:09:04 [Note] Plugin 'FEDERATED' is disabled.
130508 12:09:04 InnoDB: The InnoDB memory heap is disabled
130508 12:09:04 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130508 12:09:04 InnoDB: Compressed tables use zlib
130508 12:09:04 InnoDB: Initializing buffer pool, size = 1.0G
130508 12:09:04 InnoDB: Completed initialization of buffer pool
130508 12:09:04 InnoDB: highest supported file format is Barracuda.
130508 12:09:04  InnoDB: Waiting for the background threads to start
130508 12:09:05 InnoDB: 5.5.31 started; log sequence number 569709903822
130508 12:09:05 [ERROR] /usr/sbin/mysqld: unknown variable 'log_bin_trust_routine_creators=1'
130508 12:09:05 [ERROR] Aborting

after commenting out 'log_bin_trust_routine_creators=1' it worked like a charm. apparently this is a deprecated option from mysql 5.1 and not recognized by 5.5

hope it helps.


share|improve this answer
add comment

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.