![]() Step 1 Installing MySQL On Ubuntu 20.04, you can install MySQL using the APT package repository. ![]() To set this up, follow our initial server setup guide for Ubuntu 20.04. This solution has been discussed more here, incase you want more details, or if you run into some issues. Prerequisites To follow this tutorial, you will need: One Ubuntu 20.04 server with a non-root administrative user and a firewall configured with UFW. Run the following command to install MySQL sudo apt install mysql-client mysql-server libmysqlclient-dev Run the following command to update the cache sudo apt update To get the list of installed mysql modules, use the following command: dpkg -l | grep mysqlĭownload the apt_config-debian package ( mysql-apt-config_0.7.3-1_all.deb)from Mysql Website and install it using: sudo dpkg -i mysql-apt-config_0.7.3-1_all.debĬreate a new file /etc/apt/preferences.d/mysql with this content Package: * To solve this problem, start by removing/uninstalling all existing mysql modules. This has been an issue that persisted across previous versions of ubuntu. Oracle maintains a list of official APT repositories for MySQL 5.6, but those repositories do not yet support Ubuntu 17.04 (as of the time of writing this post). Ubuntu 17.04 only provides packages for MySQL 5.7 which has a range of backwards compatibility issues with code written against older MySQL versions. the persisting dependencies are initscripts, sysv-rc and file-rc. There is nothing being held under dpkg command above command.Īlso any other upgrade/update or removing/purging any mysql instances didn't help.Īfter purging mysql* and reinstall with aptitude, I'm getting rid of some dependencies. Which tries to solve it by: Keep the following packages at their current version:īut this doesn't work either. I also tried: sudo aptitude install mysql-server Mysql-server-5.6 : Depends: initscripts but it is not installableĭepends: mysql-client-5.6 (>= 5.6.16-1~exp1) but it is not going to be installedĭepends: mysql-server-core-5.6 (= 5.6.16-1~exp1) but it is not going to be installedĭepends: sysv-rc (>= 2.88dsf-24) but it is not installable orįile-rc (>= 0.8.16) but it is not installableĮ: Unable to correct problems, you have held broken packages. The following packages have unmet dependencies: The following information may help to resolve the situation: Requested an impossible situation or if you are using the unstableĭistribution that some required packages have not yet been created I get this result: Reading package lists. ![]() When running: sudo apt-get install mysql-server-5.6 I searched everywhere for this one and can't get it to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |