Posts: 27
Joined: Thu Aug 15, 2013 11:30 am

Error when trying to run apt-get upgrade / update

Sun Sep 21, 2014 10:23 am

Please help

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  gnome-accessibility-themes gnome-themes-standard gnome-themes-standard-data libav-tools libavdevice53 libgail-3-0 libgcc1 libgfortran3 libgomp1 libgtk-3-0
  libgtk-3-bin libgtk-3-common libjavascriptcoregtk-3.0-0 libstdc++6 libswscale2 libwebkitgtk-3.0-0
0 upgraded, 0 newly installed, 0 to remove and 16 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.38-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
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:

Posts: 25298
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Error when trying to run apt-get upgrade / update

Sun Sep 21, 2014 11:01 am

I presume you have only this in the sources list

deb wheezy main contrib non-free rpi

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
Then try again to install mysql ;)
The information is out just have to let it in.

My other Linux machine is a ChromeBox

User avatar
Posts: 18010
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Error when trying to run apt-get upgrade / update

Sun Sep 21, 2014 1:57 pm

So for some reason the MySQL server isn't starting. If we can find out why that is, we might be able to fix it.

Firstly, could you try running the stop and start commands manually and seeing if it gives you any useful error messages

Code: Select all

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
Then have a look at the log file to see if there's any more information.

Code: Select all

tail -30l /var/log/daemon.log
I think the start/stop messages are written to daemon.log in Raspbian. I only run MySQL on a PC, not a Pi.

Return to “Raspberry Pi OS”