Problems and solutions encountered in installing mysql8.0 on ubuntu18.04

Step on the pit 1

The following signatures are invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering
[email protected]
W: GPG error: http://repo.mysql.com/apt/ubuntu bionic InRelease: The following signatures are invalid:
EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering
mysql- [email protected] E: The repository "http://repo.mysql.com/apt/ubuntubionic InRelease" is not digitally signed.
N: This source cannot be safely updated with, so this source is disabled by default.
N: See the apt-secure(8) manual for details on repository creation and user configuration.

Solution 1
I used the following signature from the blog with 200,000 online visits, but after several attempts, it still reported an error: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5. Then there are various methods of gpg, all of which have been tried to no avail.

After checking more than 200 links, I finally found a solution that suits me, that is, the sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5final digital signature is the string of numbers in your error message.

Step on the pit 2
The interface cannot appear during installation, and it has been stuck on the reading agreement interface after confirming the password.
Please add image description
Solution 2

You can press alt+enter to enter the above interface, so you can choose the encryption method.

Guess you like

Origin blog.csdn.net/qq_42257666/article/details/123746689