Ubuntu Server 20.04
Somehow in the course of trying to install
phpmyadmin, I broke MySQL and I can’t figure out how to fix it.
I originally installed the LAMP stack via
tasksel. In the course of trying to install a wordpress site, I was trying to get phpmyadmin installed and I’m not sure what happened but now MySQL is broken. I’m sure I did something wrong somewhere I’m just not sure where.
I’ve already done
sudo apt purge on
mysql-server, as well as
autoclean after every uninstall. I also tried
mariadb-server but this same exact problem happens whether I use mysql or mariadb.
I’ve also tried deleting
/var/lib/mysql in the course of troubleshooting
At this point,
phpmyadmin are all purged and autocleaned/autoremoved. I’m going to attempt installing
mariadb-server again and I will record my results:
So it seems like for some reason, dpkg is failing to properly configure the mariadb-common package after installation. I tried googling what "dpkg exit status 2" means, but couldn’t find anything helpful
Wasn’t sure if I already had gdebi installed, but this post suggested installing it, so when I tried to install it, this happens:
So now it looks like this is going to effect all package installations going forward unless I purge mariadb or fix the problem.
If I try
sudo dpkg --configure -a I get this:
And if I try
sudo apt --fix-broken install:
As far as I can tell, for some reason dpkg is not completeting the configuration process after the package installation, and it’s breaking everything. But it’s only happening for
mariadb-server, not for any other packages. I’m tempted to just nuke the server and reinstall Ubuntu but I’d really like to avoid that if possible.
I’ve also tried removing the
mariadb-server packages with Synaptic instead of apt/dpkg, but it makes no difference, same problem happens upon reinstallation.
Does anyone know how to fix this without doing a whole server reinstallation? Thanks in advance
0 Asked on December 1, 2021 by serghei
1 Asked on December 1, 2021 by alvindera97
3 Asked on November 28, 2021 by luke-skywalker
1 Asked on November 28, 2021 by 0x539
2 Asked on November 28, 2021 by fedonkadifeli
2 Asked on November 28, 2021 by another-homo-sapien
19 Asked on November 28, 2021
3 Asked on November 28, 2021 by naskoos
2 Asked on November 28, 2021 by pca2308
4 Asked on November 28, 2021 by aboelnour
4 Asked on November 28, 2021
3 Asked on November 28, 2021
2 Asked on November 28, 2021
1 Asked on November 28, 2021 by johnterskine
1 Asked on November 28, 2021 by daniel-rosehill
Get help from others!