Get Error When Updating Software On Ubuntu 18.04.4 LTS

I think I am trying to upgrade to MariaDB version 10.4 but I am having problems. Here is the command line input I run and the response:

larry@larry-MS-7693:~$ sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.24.32.12).
The following packages were automatically installed and are no longer required:
  libclang-common-7-dev libclang-common-8-dev libllvm7 libllvm8
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 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.7 (5.7.30-0ubuntu0.18.04.1) ...
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)

What do I need to do? Please help. --Regards, Larry

Answer Answered by Shawn Logan in this comment.

There probably an issue with an old install of a related product. Backup any databases you have. Try purging all MySQL and MariaDB related packages, removing all third party apt repositories from /etc/apt/sources.list and /etc/apt/sources.list.d and then reinstalling MySQL from the official Ubuntu repositories again.

$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y $ sudo apt-get remove --purge mariadb-server $ sudo apt-get autoremove -y $ sudo apt-get autoclean

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.