Dear all,
I found out today that the upgrade to Ubuntu 12.04 send out mySQL to the void. I immediately tried to get it back but got an error:
After this mySQL is not available:Code:$ sudo apt-get install mysql-server [sudo] password for desousa: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca The following NEW packages will be installed: mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 3 newly installed, 0 to remove and 26 not upgraded. Need to get 14.9 MB of archives. After this operation, 52.9 MB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://de.archive.ubuntu.com/ubuntu/ precise/main mysql-server-core-5.5 amd64 5.5.22-0ubuntu1 [6,022 kB] Get:2 http://de.archive.ubuntu.com/ubuntu/ precise/main mysql-server-5.5 amd64 5.5.22-0ubuntu1 [8,816 kB] Get:3 http://de.archive.ubuntu.com/ubuntu/ precise/main mysql-server all 5.5.22-0ubuntu1 [11.8 kB] Fetched 14.9 MB in 2s (4,960 kB/s) Preconfiguring packages ... Selecting previously unselected package mysql-server-core-5.5. (Reading database ... 412919 files and directories currently installed.) Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.22-0ubuntu1_amd64.deb) ... Selecting previously unselected package mysql-server-5.5. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.22-0ubuntu1_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.22-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/mysql/plugin/ha_example.so', which is also in package libmysqlclient-dev 5.5.23-1~dotdeb.0 Selecting previously unselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.5.22-0ubuntu1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.5_5.5.22-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
The first web search results pointed to an issue with the root password. I tried to reconfigure:Code:$ sudo netstat -tap | grep mysql $ sudo /etc/init.d/mysql restart sudo: /etc/init.d/mysql: command not found
After some more duckduckgoing I found a reference to the old packages disturbing the new installation. Indeed some old packages were still there:Code:$ sudo dpkg-reconfigure mysql-server /usr/sbin/dpkg-reconfigure: mysql-server is broken or not fully installed
Still, after purging the old packages I'm getting the same error as above. What is going wrong here? Is mySQL supposed to run on 12.04? If yes how can I install it?Code:$ dpkg --get-selections | grep mysql gambas2-gb-db-mysql install libdbd-mysql-perl install libmysqlclient-dev install libmysqlclient16 install libmysqlclient18 install libqt4-sql-mysql install mysql-admin deinstall mysql-client-5.5 install mysql-client-core-5.5 install mysql-common install mysql-query-browser deinstall mysql-server install mysql-server-5.1 deinstall mysql-server-core-5.5 install mysql-workbench install mysql-workbench-data install python-mysql.connector install $ sudo dpkg --purge mysql-admin mysql-query-browser mysql-server-5.1 (Reading database ... 413009 files and directories currently installed.) Removing mysql-admin ... Purging configuration files for mysql-admin ... Removing mysql-query-browser ... Purging configuration files for mysql-query-browser ... Removing mysql-server-5.1 ... Purging configuration files for mysql-server-5.1 ... Processing triggers for ureadahead ... $ dpkg --get-selections | grep mysql gambas2-gb-db-mysql install libdbd-mysql-perl install libmysqlclient-dev install libmysqlclient16 install libmysqlclient18 install libqt4-sql-mysql install mysql-client-5.5 install mysql-client-core-5.5 install mysql-common install mysql-server-core-5.5 install mysql-workbench install mysql-workbench-data install python-mysql.connector install
Thanks.



Adv Reply



Bookmarks