<div dir="ltr">I think I know the reason and a way to reproduce this. <br><div>I have ran into same issue today when I have installed mariadb on sid, then I have added official mariadb repo and I have run upgrade.</div><div>Hopefully this was fresh install with no DB, so I just have purged it.</div></div><br><div class="gmail_quote"><div dir="ltr">Пт, 3 лип. 2015 о 16:45 Otto Kekäläinen <<a href="mailto:otto@seravo.fi">otto@seravo.fi</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2015-07-03 1:14 GMT+03:00 Otto Kekäläinen <<a href="mailto:otto@seravo.fi" target="_blank">otto@seravo.fi</a>>:<br>
> Basically what you Yuril did was removed all configuration and data<br>
> files, and then installed. For some reason the mysqld daemon did not<br>
> start on your system, and the failure became visible during an upgrade<br>
> where the system restarts the service.<br>
<br>
I've tested running the upgrade with different scenarios and everything works.<br>
<br>
Basically, if you ever get into such a situation again, please try to<br>
debug the exact reason why mysqld refuses to start. Best tip is to<br>
look at the /var/log/mysql/error.log<br>
<br>
You can always purge your installation along with any configs and<br>
original binary data, and then import a database dump into a fresh<br>
installation, but that is not recommended. Surely it should be<br>
possible to pinpoint why mysqld does not start (and thus why dpkg<br>
hangs at the service restart step).<br>
</blockquote></div>