4

I installed a 32 bit MySQL workbench packages. But I faced many problems and tried to find answers here ... then I've known that my Ubuntu is 64 bit ... and downloaded the version of MySQL for 64 bit.

When I've typed:

sudo dpkg -i mysql_64_bit.deb 

The system asked me to remove the oldest one so I typed:

teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.deb

I've gotten the following:

dpkg: error: you must specify packages by their own names, not by quoting the names of the files they come in

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !

Can anyone give me the right way to install the right one and remove the oldest one?

topless
  • 7,365
Akari
  • 481
  • 5
  • 10
  • 18

2 Answers2

6
dpkg --get-selections | grep mysql

The above command will displays all the packages that have the word mysql.From that you can find the exact one and then remove it by running,

sudo dpkg -P <packageName>

The below command does not remove the installed mysql package,

teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.deb
Avinash Raj
  • 78,556
  • the following error has been appeared with the first command : ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'accountsservice install acl install acpi-support install acpid ' at line 1 – Akari Feb 12 '14 at 14:48
  • i edited now.forgot to mention grep. – Avinash Raj Feb 12 '14 at 14:50
  • if i get "purge" then that means that the package has been removed successfully ?? – Akari Feb 12 '14 at 14:54
  • please see the following img , I think there is something error >> snapshot – Akari Feb 12 '14 at 15:00
  • run only sudo dpkg -P mysql-workbench-community:i386 and then try to install your 64 bit mysql package. – Avinash Raj Feb 12 '14 at 15:35
  • I did that and removed mysql-workbench-community:i386 but when i've installed 64 bits version i've got the same results as in 32 bits ::: please see this snapshot – Akari Feb 12 '14 at 15:45
  • I'm very sad x_____x :( – Akari Feb 12 '14 at 15:47
  • let us discuss here http://chat.stackexchange.com/rooms/11833/room-for-avinash-raj-and-whoever-wants-to-make-company – Avinash Raj Feb 12 '14 at 15:53
2

Try doing it from the apt-get tool, after you add the repository for My

sudo apt-get remove --purge mysql-workbench
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-workbench

Does it still give you errors?

topless
  • 7,365