0
I would like, please, your help.
I’m trying to install mysql 5.7 on Ubuntu 20.04, following this tutorial from Fosstechnix (https://www.fosstechnix.com/how-to-install-mysql-5-7-on-ubuntu-20-04-lts/) where I executed the following commands:
sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
Only that in the middle of the process, where appears this screen I should choose the compatible version of the operating system, I chose Bionic (Ubuntu 18.04), but I chose Xenial (Ubuntu 16.04).
After that, the steps in the tutorial no longer work because when I run the command:
sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
The screen for selecting the mysql 5.7 compatible OS no longer appeared. It already appears directly on this screen where I select "mysql-5.7":
But then, selecting mysql-5.7 and after giving ENTER in "OK" gives the following error:
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)
OK
If only I could make that screen to choose the operating system I believe it would be possible to finish following the tutorial.
Thanks for your help!
More information:
- Currently using UBUNTU 20.04
- There is already an installed version of Mysql 8.0.21-0 on this system
- I’ve been using Ubuntu daily since 2015, but my understanding of packages and repositories is basic.
- I’ve already looked at this article, but it’s a little confusing for me: https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#Repo-qg-apt-Repo-manual-setup
tries to uninstall the package
sudo dpkg -r mysql-apt-config_0.8.12-1_all.deb
and reinstall again.– Armando Marques Sobrinho
Thanks for the help, Armando! The command:
sudo dpkg -r mysql-apt-config_0.8.12-1_all.deb
Doesn’t seem to have solved it yet. I got the following message:dpkg: erro: você deve especificar pacotes com seus próprios nomes, não pela citação dos nomes dos arquivos nos quais eles vêm
Escreva dpkg --help para ajuda sobre instalar e desinstalar pacotes [*];
Utilize 'apt' ou 'aptitude' para gestão de pacotes amigável;
...
Opções marcadas com [*] produzem muita saída de texto - utilize pipes com 'less' ou 'more' !
– Jader
Pow bro, follow the hint that he returned, see here http://tipslegais10.blogspot.com/2013/01/uninstallar-mysql-no-linux-por-completo.html if it helps you
– Armando Marques Sobrinho
@Armandomarquessobrinho, thanks again for the help. Unfortunately it hasn’t worked out yet. I followed the tutorial you quoted and completely remove the mysql-server, however when I try to install again by following the tutorial I quoted in the question, again the screen does not occur for selecting the OS version and, finally, the installation displays this message:
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)
OK
– Jader
face, try with apt-get command
sudo apt-get remove mysql-server
afterwardsudo apt-get autoremove
afterwarddpkg -l | grep mysql | grep ii
to see all the packages you have from mysql installed ai, after getting the list, remove all still with apt-get runningsudo apt-get remove package-name
change package-name to the package name you want to remove you have to remove them all manually one by one– Armando Marques Sobrinho
@Armandomarquesnephew, thank you so much for your help. I ran the commands you suggested, until another package appeared, if I’m not mistaken, it’s called "mysql-apt-config". I removed it too. Then I tried to install using the tutorial quoted in my post, but even so unfortunately it does not appear yet the screen to select the system for compatibility of mysql.
– Jader
All right @Jader, try these commands
sudo apt-get remove --purge mysql-server mysql-client mysql-common
;sudo apt-get autoremove
;sudo apt-get autoclean
;sudo rm -rf /var/lib/mysql
;sudo rm -rf /etc/mysql
. You should have done this from the beginning, but was giving command over command there that the best would be to reinstall everything there on your hard drive, in case Voce can do it without major problems. So, if you are going to format, I recommend choosing another distro, I particularly would not install Ubuntu on a machine of mine– Armando Marques Sobrinho
@Armandomarquessobrinho, I am very grateful for the dedication in helping! I think I have made so many attempts that I damaged the packages. I’m having trouble even installing packages right now. I believe that only the formatting will solve, but first I will see if there is any restore option using a boot USB stick. Anyway, I really appreciate your help!
– Jader