How to fix mysql - mysql server depends on mysql community server 5.7 when installing on Ubuntu 20.4

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=89JzsN5IxCo



Category:
Guide
Duration: 3:23
6,245 views
39


I got an error when trying to install mysql 5.7 on ubuntu 20.4 :


dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-community-server (= 5.7.37-1ubuntu18.04); however:
Package mysql-community-server is not configured yet.



dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Errors were encountered while processing:
mysql-community-server
mysql-server



How to fix this?
Run this to remove current existing mysql (mysql 8):

apt-get remove mysql-client mysql-common mysql-community-client mysql-community-server mysql-server
apt-get purge mysql-client mysql-common mysql-community-client mysql-community-server mysql-server

then install mysql again :
sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*




Other Videos By Ambar Hasbiyatmoko


2022-06-02Cara install Jenkins di instance EC2 AWS
2022-05-31How to fix Codeigniter 3.1.11 session error - Session is missing after redirect page
2022-05-27Fix php script as systemd service - php warning: fopen: failed to openstream: Read-only file system
2022-05-22Cara Install Sonarqube lewat AWS Marketplace
2022-05-08Membuat EFS (Elastic File System) One Zone/Single AZ di AWS
2022-02-27How to install mongodb php driver(php7.2) through composer and connect by Codeigniter in ubuntu18
2022-02-27How to fix composer error upgrade version 2.2 - Command "self-update" is not defined in ubuntu18.04
2022-02-27How to fix mongodb - Error parsing YAML config file: yamp-cpp error at line 32, illegal map value
2022-02-27How to install mongodb 4.4 in Ubuntu 18.04
2022-02-12Cara Setup Application Load Balancer di AWS
2022-01-30How to fix mysql - mysql server depends on mysql community server 5.7 when installing on Ubuntu 20.4
2022-01-30How to install mysql 5.7 in Ubuntu 20.04.3 LTS
2022-01-04How to fix: pecl install mongodb - ERROR: phpize not found, phpize failed
2021-12-26Wireshark error - Couldn't run usr-bin-dumpcap in child process: Permission denied
2021-12-04How to solve - Package 'python-certbot-apache' has no installation candidate on Ubuntu 20.04
2021-11-28How to solve - require dev mikey179 vfsStream is invalid, it should not contain uppercase characters
2021-11-14Membuat VPS gratis 12 bulan di AWS (Amazon Web Service)
2021-11-10Cara Daftar AWS menggunakan Jenius Debit Card
2021-09-18Menghitung estimasi biaya penggunaan EC2 / VPS di AWS
2021-08-30Mengubah root folder webserver apache ke home-user-public_html di Ubuntu 20.04
2021-08-29How to solve - cannot remove 'external_volume': Device or resource busy in Ubuntu



Tags:
mysql
mysql5.7
error
install
ubuntu
lts
fix
terminal
dpkg