首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装mysql服务器时出现的问题

安装mysql服务器时出现的问题
EN

Ask Ubuntu用户
提问于 2015-05-22 17:08:13
回答 1查看 8.5K关注 0票数 -1

我试着用Ubuntu软件中心安装mysql服务器和mysql工作台,但是它无法安装它们。然后,我使用命令行安装mysql服务器,并重新运行以下代码:

代码语言:javascript
运行
复制
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mysql server

但是,在最后一个命令之后,我得到了以下错误:

代码语言:javascript
运行
复制
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.

我该如何解决这个问题?有什么简单的方法可以安装mysql服务器和mysql工作台?

这些都是我电脑上的mysql版本:

代码语言:javascript
运行
复制
`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
EN

回答 1

Ask Ubuntu用户

发布于 2015-06-18 09:11:06

尝试在终端中执行以下命令--

代码语言:javascript
运行
复制
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
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/627072

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档