Bug #85968 ubuntu 8.0.1 repo installation apparently impossible
Submitted: 17 Apr 2017 7:13 Modified: 24 May 2017 11:11
Reporter: Peter Brawley (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:8.0.1 OS:Ubuntu (16.04)
Assigned to: CPU Architecture:Any

[17 Apr 2017 7:13] Peter Brawley
Description:
1. For a fresh 8.0.1 installation on a Ubuntu 16.04 instance, I downloaded ...

mysql-apt-config_0.8.4-1_all.deb from https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install

...as described in ...

https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install

2. Ran ...

sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb

The response is ...

Which MySQL product do you wish to configure?                             │ 
 │                                                                           │ 
 │          MySQL Server & Cluster (Currently selected: mysql-5.7)           │ 
 │          MySQL Tools & Connectors (Currently selected: Enabled)           │ 
 │          MySQL Preview Packages (Currently selected: Enabled)             │ 
 │          Ok       

How do we install 8.0.1?

How to repeat:
As above
[17 Apr 2017 13:20] MySQL Verification Team
Thank you for the bug report. Verified as described after perform apt-get update the 8.0 versions isn't added in the options.
[17 Apr 2017 13:26] MySQL Verification Team
Forgot to mention, the apt repository page at:

https://dev.mysql.com/downloads/repo/apt/

mentions that the 8.0 version is included:

The MySQL APT repository includes the latest versions of:

    MySQL 8.0 (Development)
    MySQL 5.7 (GA)
.......
[17 Apr 2017 18:20] Peter Brawley
Indeed https://dev.mysql.com/downloads/repo/apt/ says the repository page includes 8.0, but dpkg does not find 8.0.
[19 Apr 2017 4:46] Lars Tangvald
Hi,

When using apt-config, it will select _one_ major version of MySQL (since it's not possible to have several MySQL installations in parallel). Since 5.7 is the newest GA, it will be selected by default, hence «Currently selected: mysql-5.7». Activate that choice in the menu, and you should be able to select the 8.0 preview.
[19 Apr 2017 13:08] Peter Brawley
Yes, if I answer ok to that misleading dialog, I can then select 8.0.1, but two steps later I can still install only 5.7.

The only way I was able to install 8.0.1 was to download dev.mysql.com/downloads/mysql/8.0.html, then run …

sudo dpkg -i /home/my_username/Downloads/mysql-common_8.0.1-dmr-1ubuntu16.04_i386.deb
sudo apt-get update
sudo apt-get install mysql-server

Your repository install process needs fixing.
[24 May 2017 11:11] Lars Tangvald
Posted by developer:
 
The instructions on https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ explain how to use mysql-apt-config, including the need for running apt-get update after installing it. The package menu already explains using the entries to select component versions, but in the next version we will also add a note about running apt-get update afterwards.