Postmortem of an error to install Mysql specific version
On 11–05–22, Holberton enabled the MySQL project. He pointed out that it was not going to be a simple sudo apt-install of MySQL, but to install a specific version on the server. This is the autopsy of that mistake.
Problem Summary: MySQL Installation
A specific version had to be installed on the two servers to enable the database service, but information had to be found on how to indicate the version requested by Holberton.
• 05–11–22, 12:00 am, Launch of the project.
• 06–11–22, 08:00 pm, Start working on the project with Edgar Flores and Diego Morey, looking for information.
• 06–11–22, 09:00 pm, Found the steps to install MySQL with a specific version.
• 06–11–22, 11:00 pm, An error occurred when installing MySQL.
• 07–11–22, 01:00 pm, The error shown was identified.
• 07–11–22, 02:00 pm, MySQL version 20 was installed.
The error: failed apt-update key failed.
How do we find the error?
It was found that it indicated that some keys were missing, what had to be done was to identify the package of the new keys that had been included in the installation. We add the following line.
After that, the key could be entered, and when performing the Apt-get Update, it could be done normally and continue with the MySQL installation.
Finally, we created a log with what happened to be able to identify all the steps we did for the installation.
This error will happen in many cases where you have to install an application, where a package of new keys that need to be entered is imported. But by knowing this type of error that will always happen because you need it to show you which key is missing to include, you can save a lot of time.
I hope you liked my first postmortem documentation, writing it is remembering how I spent it with my colleagues looking for the solution.