-1

I tried to install mysql server and mysql workbench with Ubuntu software center but It could not install them. Then I used command line to install mysql server and I run the following code repectivly:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mysql server

But,I got the following error after the last command:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mysql-server : Depends: mysql-community-server (= 5.6.24-1ubuntu14.10)   but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve this problem? IS there any simple way to install mysql server and mysql workbench?

These are all mysql version on my computer:

`apt-cache search mysql|egrep '^mysql'
 mysql-client-5.5 - MySQL database client binaries
 mysql-client-core-5.5 - MySQL database core client binaries
 mysql-server-5.5 - MySQL database server binaries and system database    setup
 mysql-server-core-5.5 - MySQL database server binaries
 mysql-client-5.6 - MySQL database client binaries
 mysql-client-core-5.6 - MySQL database core client binaries
 mysql-common-5.6 - MySQL 5.6 specific common files, e.g. /etc/mysql/conf.d/my-5.6.cnf
 mysql-mmm-agent - Multi-Master Replication Manager for MySQL - agent daemon
 mysql-mmm-common - Multi-Master Replication Manager for MySQL - common files
 mysql-mmm-monitor - Multi-Master Replication Manager for MySQL - monitoring daemon
 mysql-mmm-tools - Multi-Master Replication Manager for MySQL - tools
 mysql-proxy - high availability, load balancing and query modification for mysql
 mysql-server-5.6 - MySQL database server binaries and system database setup
 mysql-server-core-5.6 - MySQL database server binaries
 mysql-source-5.5 - MySQL source
 mysql-source-5.6 - MySQL source
 mysql-testsuite-5.5 - MySQL testsuite
 mysql-testsuite-5.6 - MySQL 5.6 testsuite
 mysql-utilities - collection of scripts for managing MySQL servers
 mysql-workbench - MySQL Workbench - a visual database modeling, administration and queuing tool
 mysql-workbench-data - MySQL Workbench -- architecture independent data
 mysqltcl - interface to the MySQL database for the Tcl language
 mysqltuner - high-performance MySQL tuning script
 mysql-apt-config - Auto configuration for MySQL APT Repo.
 mysql-client - MySQL Client meta package depending on latest version
 mysql-common - MySQL Common
 mysql-community-bench - MySQL Bench
 mysql-community-client - MySQL Client
 mysql-community-server - MySQL Server
 mysql-community-source - MySQL source
 mysql-community-test - MySQL Test Run MTR - The MySQL testsuite
 mysql-server - MySQL Server meta package depending on latest version
 mysql-testsuite - MySQL Testsuite meta package depending on latest version
 mysql-workbench-community - MySQL Workbench
5
  • Two points: You asked for two packages, "mysql" and "server" to be installed. See which mysql packages are available by doing apt-cache search mysql|egrep '^mysql'. Second, if it is complaining that mysql-community-server is not going to be installed, why not install it?
    – waltinator
    May 22, 2015 at 17:27
  • See if this can help !
    – Bilal
    May 22, 2015 at 17:32
  • First completely uninstall mysql stackoverflow.com/questions/10853004/…
    – BDRSuite
    May 22, 2015 at 17:57
  • Thanks @waltinator; I edited my question and I run your command and got the different version of mysql. what should I do now to solve my problem May 23, 2015 at 4:00
  • What does "solve my problem" mean? Install some of the mysql packages you found.
    – waltinator
    May 30, 2015 at 13:42

1 Answer 1

1

Try following command in a terminal--

sudo apt-get purge mysql-client-core-5.6
sudo apt-get install mysql-client-core-5.6
sudo apt-get install mysql-server
1
  • doesn't work mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
    – Toolkit
    Feb 10, 2018 at 13:09

Not the answer you're looking for? Browse other questions tagged .