我试图在Ubuntu上将我的mysql服务器从5.7升级到8.0,但我在安装时遇到错误。我按照这里的评论中的说明操作:How do I update MySQL 5.7 to the new MySQL 8.0?
提前感谢任何帮助。
我是这么做的。
wget http://repo.mysql.com/mysql-apt-config_0.8.27-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.27-1_all.deb
字符串
- 选择“MySQL服务器和集群”
- 选择“mysql-8.0”
- 选择“OK”
sudo apt-get update
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
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 (= 8.0.35-1ubuntu23.04) but 5.7.37-1ubuntu18.04 is to be installed
E: Unable to correct problems, you have held broken packages.
apt policy mysql-server
mysql-server:
Installed: (none)
Candidate: 8.0.35-1ubuntu23.04
Version table:
8.0.35-1ubuntu23.04 500
500 http://repo.mysql.com/apt/ubuntu lunar/mysql-8.0 amd64 Packages
8.0.35-0ubuntu0.20.04.1 500
500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
型
1条答案
按热度按时间xytpbqjk1#
这是由于未满足的依赖关系。看起来系统想安装MySQL 8. 0,但仍试图保留MySQL 5. 7包。
你可以试试这些步骤
检查现有的MySQL包
字符串
更新存储库
型
安装mysql 8.0
型