LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2015, 03:25 PM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Rep: Reputation: Disabled
Trouble uninstalling MySql


Hi there,

My environment is Ubuntu 14.04. I have this problem. I have MySql installed but it is a previous version:

Code:
alex@alex-....:~/GFORTRAN-APPS/SPHERE-DESIGN$ mysql --version
mysql  Ver 14.14 Distrib 5.5.41, for debian-linux-gnu (i686) using readline 6.3
In order to install a newer version (5.6.24) I found in Oracle website I have to remove the previous version: 5.5.41. This is what I get when I try:

Code:
alex@alex-.....~/GFORTRAN-APPS/SPHERE-DESIGN$ sudo apt-get purge mySql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mySql
I also used:

Code:
sudo apt-get remove mySql
with the same result

Any clue?

Thanks, - Alex
 
Old 04-25-2015, 06:50 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
sudo apt-get remove mySql : 'apt-get' doesn't accept spell errors.
And there is no package by name mySql.
Also : No upper case in any Ubuntu package names ...
http://packages.ubuntu.com/search?ke...searchon=names

You can check what you have installed with :
$ dpkg --get-selections | grep mysql


-
 
1 members found this post helpful.
Old 04-26-2015, 09:25 AM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
knudfl, thanks. Here is the response:

Code:
dpkg --get-selections | grep mysql 
libdbd-mysql-perl				install
libmysqlclient18:i386				install
mysql-client-5.5				install
mysql-client-core-5.5				install
mysql-common					install
mysql-server					install
mysql-server-5.5				install
mysql-server-core-5.5				install
What do you mean by "spell errors?" Where is the spelling error?

I want to install Oracle's MySql. First I want to remove what I have installed a couple of months ago.

What shall I do next?

- Alex

Last edited by AlexBB; 04-26-2015 at 09:27 AM.
 
Old 04-26-2015, 09:38 AM   #4
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
OK, I used "misspelled" :-) sudo apt-get command to remove the packages one by one successfully, I think. Then I ran your command again:

Code:
dpkg --get-selections | grep mysql 
libmysqlclient18:i386				deinstall
mysql-common					deinstall
mysql-server-5.5				deinstall
What does it mean?

Thanks, - Alex

Last edited by AlexBB; 04-26-2015 at 09:40 AM.
 
Old 04-26-2015, 09:50 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,269

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
probably this helps: https://lists.debian.org/debian-user.../msg01027.html
 
Old 04-26-2015, 09:54 AM   #6
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
OK, I used the same command with "purge" instead of "remove for those three packages." It seemed to work:

Code:
sudo apt-get purge libmysqlclient18:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libmysqlclient18*
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 197122 files and directories currently installed.)
Removing libmysqlclient18:i386 (5.5.41-0ubuntu0.14.04.1) ...
Purging configuration files for libmysqlclient18:i386 (5.5.41-0ubuntu0.14.04.1) ...
alex@alex-....~/GFORTRAN-APPS/SPHERE-DESIGN$ sudo apt-get purge mysql-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mysql-common*
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 197122 files and directories currently installed.)
Removing mysql-common (5.5.41-0ubuntu0.14.04.1) ...
Purging configuration files for mysql-common (5.5.41-0ubuntu0.14.04.1) ...
alex@alex-....~/GFORTRAN-APPS/SPHERE-DESIGN$ sudo apt-get purge mysql-server-5.5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mysql-server-5.5*
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 197120 files and directories currently installed.)
Removing mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
Purging configuration files for mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
dpkg: warning: while removing mysql-server-5.5, directory '/etc/mysql' not empty so not removed
Now, at the end of the three purges a window showed up asking if I wanted to remove the directory /var/lib/mysql. It had two options: Yes and No but the No was the default and there was no way to switch from No to Yes because the No option was frozen. I wanted to remove ALL mySql related directories. Somehow I closed that window and then I got the final message that the directories were not removed.

What shall I do now to remove those directories?

Thanks, - ALex
 
Old 04-26-2015, 10:04 AM   #7
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
I just went to /var/lib/mysql. It is a real sucker. I cannot remove it, I cannot get inside to see what is there. It seems the only way to do something about it is to reinstall the Ubuntu.

Is there any way to removed this garbage?

- Alex
 
Old 04-26-2015, 12:00 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,269

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
If there was no other way just boot into single user mode and remove /var/lib/mysql. But I think that is not the perfect solution. You can check (with lsof) what uses that directory.
 
Old 04-26-2015, 01:01 PM   #9
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
I tried this as you suggested:

Code:
lsof > t1
The result was 32,655 lines. There was no MySql in there but plenty of SqlLite. What is this? Is it a database management system? Perhaps this is what I need. Linux has EVERYTHING!!!

I need a database to store intermediate results of massive numerical computations.

But I still want to remove that folder with MySql.

***How can I boot into a single user?*** And why is it not a perfect solution?

Thanks, - Alex

Last edited by AlexBB; 04-26-2015 at 01:06 PM.
 
Old 05-03-2015, 09:22 AM   #10
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
I still cannot delete MySql directory. I tried various options offered here and nothing worked. Pan64, a Hungarian guru dropped a "suggestion" but then disappeared and refused to answer my simple question. Before I reinstalled the Ubuntu to get rid of the sucker, I want to bring this question to your attention again. It seems to be a problem affecting other people as well.

Thanks, - Alex
 
Old 05-03-2015, 09:53 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,269

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
disappeared? refused? just search the net on that issue, and you will find a lot of different solutions, like this:
http://askubuntu.com/questions/13296...mode-from-grub

sqlite is another database engine. And actually that is the answer, if sqlite uses that directory you need that. Not all of it, but a file or dir inside.
 
1 members found this post helpful.
Old 05-03-2015, 10:55 AM   #12
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Thank you Pan64. In order to install SqlLite I need to get rid of MySql. Thanks for the pointer. I agree, I should have googled it myself.

Quote:
And actually that is the answer, if sqlite uses that directory you need that. Not all of it, but a file or dir inside.
I am very suspicious of that directory. Why is it so protected? I am quite familiar with Microsoft Sql Server (it runs on another machine of mine) and would like to have a database and the management system somewhat similar to it. That is why I began looking into MySql.

Thank you for your help. - Alex

P.S. Pan obviously stands for Pannonia, a code message :-) Lol.

Last edited by AlexBB; 05-03-2015 at 10:57 AM.
 
Old 05-03-2015, 11:09 AM   #13
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
When I installed MySql that website offered me to "configure" the database by Percona Configuration Wizard. I now regret that I agreed. I think they installed that folder/directory and I am paranoid that they "monitor" my computer :-). I want to get rid of the folder and download Oracle MySql.

Thanks, - Alex
 
Old 05-03-2015, 02:00 PM   #14
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Pan64, I've installed Grub, now I would appreciate instructions what to do next. Thanks, - Alex
 
Old 05-03-2015, 02:47 PM   #15
jkirchner
Senior Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Linux Mint
Posts: 1,009

Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
Seems to be some good advice here: how-do-i-uninstall-mysql from AskUbuntu
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble uninstalling bluetooth applications newbiesforever Linux - General 2 09-21-2008 05:46 PM
Trouble uninstalling jdk Cynthia_Samuel Linux - Newbie 5 03-05-2008 02:34 AM
Uninstalling MySQL tobycatlin Linux - Software 1 05-20-2005 04:16 AM
trouble uninstalling kgames dr_zayus69 Linux - Software 3 12-17-2004 04:22 PM
Trouble uninstalling packages bsnuggs Linux - General 7 12-31-2001 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration