PDA

View Full Version : [ubuntu] Softwae Center / apt-get errors



umfunix
November 6th, 2012, 05:30 AM
I have an error with either installing apps through Software Center or apt-get.


Reading package lists... Done
Building dependency tree
Reading state information... Done
seahorse is already the newest version.
The following packages were automatically installed and are no longer required:
language-pack-zh-hans language-pack-kde-en language-pack-kde-zh-hans
language-pack-kde-en-base kde-l10n-engb kde-l10n-zhcn
language-pack-zh-hans-base firefox-locale-zh-hans
language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.5 (5.5.24-0ubuntu0.12.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have installed xampp which at first didn't worked. The mysql service didn't want to start or stop. I then uninstalled xampp, tried to install mysql server and a client from Software Center. It didn't complete (install errors). I then removed them, restarted and reinstalled xampp. This time it worked (that is my sql, php etc).

However, since then, whenever I install an app, either through the Software Center or apt-get, I get an error that a previous package was not installed fully and the installed app is not available.

How can I fix this error and starting using my apps?

Bashing-om
November 6th, 2012, 05:53 AM
kaivy, Hi !

As the error is in mysql-server-5.5 ..how about trying to re-install the package?
with the server stopped try terminal code:

sudo apt-get install mysql-server-5.5 --reinstall


hth <== BDQ

umfunix
November 6th, 2012, 08:45 AM
would that not mess up the xampp instsallation (which includes PHP, MySQL etc)?

umfunix
November 6th, 2012, 09:28 AM
Hi

I tried it in any case and got the following error again...

Setting up mysql-client-5.5 (5.5.28-0ubuntu0.12.04.2) ...
Setting up mysql-server-core-5.5 (5.5.28-0ubuntu0.12.04.2) ...
dpkg: dependency problems prevent configuration of mysql-server-5.5:
mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); however:
Version of mysql-server-core-5.5 on system is 5.5.28-0ubuntu0.12.04.2.
dpkg: error processing mysql-server-5.5 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

Bashing-om
November 7th, 2012, 02:50 AM
at the present time the dependency is on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1) and the higher version on the system is (= 5.5.28-0ubuntu0.12.04.02) ............

Do not know how to downgrade the dependency to match the candidate, and if indeed it were to be downgraded ...the effect on other installed packages that depend on the 5.5.28 version ???

I am stumped !


I wish I had the answer ==> BDQ

umfunix
November 7th, 2012, 08:09 AM
Thanks Bashing

I manager to get the error away (I don't know exactly how :confused: ). But what happens now is that when I restart, the, lets say, original mysql starts up, while when I'm trying to develop my CMS (that's why I installed xampp), the xampp mysql doesn't start for obvious reason- the other one is running. I therefore need to stop the original one and start the xampp one. The reason for preferring the xampp at this stage is, I've already installed joomla and other modules. The databases and config of the xampp-mysql is already established.

So, my questions is therefore: how do I prevent the "original" one from starting at startup?

Thanks
(BTW, u guys are awesome. The community support makes the transition to Ubuntu (and Linux), child's play)

Bashing-om
November 7th, 2012, 10:16 PM
well,, as we can not remove the original mysql package because of the inter dependencies, How bout just not starting it at all ->from the init script ?
See if the script is in /etc/init.d/ (older usage), may have to look around see if upstart starts the server and not start it from another source script.

hth <== BDQ

umfunix
November 24th, 2012, 07:11 PM
I couldn't find the init script, but I'm ok with service mysql stop and then restarting the correct one as and when needed.

thanks for the help!