Hello,
I’m trying to install Yunohost on a Raspberry Pi B (v1). I’ve first installed it in a VM on my PC to see how the install worked and then put the correct image on the Pi’s SDcard.
At first boot (without a display − I mean I don’t have a physical screen on which I can plug the Pi, not that it displays a black screen), I couldn’t ping the Pi’s IP, even after waiting quite some time. I managed to get a screen temporarily and saw that there was a message saying that it couldn’t perform a fsck and I had to do one manually. Not sure if there has been an error when writing the image on the card or if it is a normal behaviour because after that I resized the partition with GParted. Anyway, after resuming the fsck, the system booted up without problem and I could do the post-install. I didn’t check if the web interface was working, though, but the root and admin account work.
Then, I decided to update & dist-upgrade the system. During the process, I had an error from MySQL saying it couldn’t set the password. I didn’t pay much attention and resumed.
Now, I have no display again so I have to resort on the SSH session. There is still an error with MySQL and the web interface is not working (ERR_CONNECTION_REFUSED on Google Chrome). When I dist-upgrade again as root, I have the following:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 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.43-0+deb7u1) ...
[ 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
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
dpkg: dependency problems prevent configuration of yunohost-config-mysql:
yunohost-config-mysql depends on mysql-server; however:
Package mysql-server is not configured yet.
dpkg: error processing yunohost-config-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of yunohost-config:
yunohost-config depends on yunohost-config-mysql; however:
Package yunohost-config-mysql is not configured yet.
dpkg: error processing yunohost-config (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of yunohost:
yunohost depends on yunohost-config; however:
Package yunohost-config is not configured yet.
dpkg: error processing yunohost (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
mysql-server
yunohost-config-mysql
yunohost-config
yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to dpkg-reconfigure mysql-server but I get this:
/usr/sbin/dpkg-reconfigure: mysql-server is broken or not fully installed
At that point, I’m pretty much stuck… What should I do to fix the installation/update of mysql-server?