我正处于沮丧的状态,试图在我的Ubuntu18.04盒上安装MySQL 8.0。我已经搜索并看到了很多答案(还有很多关于失败的帖子),但是没有什么是可行的。
我从以下几个方面开始:
wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb然后这个:
dpkg -i mysql-apt-config_0.8.13-1_all.deb在检查我的apt包时,我看到创建了一个新文件/etc/apt/sources.list.d/mysql.list,但是内容不可能适合8.0!-在这里的内容:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-apt-config
# deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools
#deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools-preview
# deb-src http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7总之,下一步是:
dpkg -i mysql-apt-config_0.8.13-1_all.deb这给了我一个看起来正确的UI:

导致这一选择:

当我在这个选项上选择OK时,我被发送回第一个屏幕截图。那我就去2号了。我现在处于一个无限的循环中。当我点击“逃逸”时,我会得到以下信息:
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)在这一点上,我不知道还能采取什么措施。我的想法是,有没有办法直接安装MySQL 8.0而不需要apt-get?我非常感谢这里的所有解决方案,谢谢。
发布于 2019-07-05 16:01:01
我要离开这个问题,即使找到了解决方案这里,因为这是一个干净的安装8.0与升级从5.7。我再次注意到,该.deb包肯定是5.7件,而不是8.0件。下面是工作的/etc/apt/sources.list.d/mysql.list的实际内容:
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-8.0
deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools
#deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools-preview
deb-src http://repo.mysql.com/apt/ubuntu/ bionic mysql-8.0一个快速的apt update,然后apt install mysql-server和我成功地安装了8.0。
https://askubuntu.com/questions/1156209
复制相似问题