10

Using Ubuntu 18.04.2 LTS.

sean@sean-mcmahon:~$  sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://ie.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:4 http://ie.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:5 http://ie.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                     
Ign:7 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic InRelease    
Err:8 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release     
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done                      
E: The repository 'http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

So update complete, now install

sean@sean-mcmahon:~$ sudo apt-get install mysql-workbench-community
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mysql-workbench-community
sean@sean-mcmahon:~$ 

I am following this guide. Any ideas why it cannot locate the package?

SeanJ
  • 381
  • 1
  • 5
  • 15

6 Answers6

16

If you want to install Mysql Workbench Just run this command in terminal

sudo apt install mysql-workbench

You are good to go with Mysql Workbench

For Ubuntu 20.04 or higher version:

sudo snap install mysql-workbench-community

Happy Ubuntu!

9
snap install mysql-workbench-community

the problem that all snap packages are sanboxed and need to get permission to access local files & connect to DB.

Cannot connect MySQL Workbench to MySQL server

access files

or install dbeaver which is more stable.

tabebqena
  • 221
  • 2
  • 6
2

First

sudo apt update && sudo apt upgrade

Then

sudo apt install mysql-workbench
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libreadline5 mariadb-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gdal-data libaec0 libarmadillo8 ... etc.

So it looks like community should not have been in the install statement

SeanJ
  • 381
  • 1
  • 5
  • 15
2

At the time of my wrinting it seems that only a snap version is available:

sudo snap install mysql-workbench-community

Bodo
  • 51
  • 1
    Hi karel, there is outdated information. apt install mysql-workbench and apt install mysql-workbench-community do -not- work anymore. – Bodo Jan 29 '21 at 10:41
1

This happened to me when using the native mysql repo which is there by default.

Rather, according to the same guide referred in question, download the .deb package from https://dev.mysql.com/downloads/repo/apt/

and then after installing using the instructions you can install workbench using

sudo apt-get install mysql-workbench-community

assuming you didn't touched the defaults in the installation.

mr.loop
  • 167
1

You can install MySQL Workbench by downloading the deb file corresponding to your OS version here. Check out the archive page for older versions.

Just do sudo dpkg -i path-to-file/filename.deb. Even if there are missing dependencies, the output of this command will specify the packages that need to be installed (and you can install them with sudo apt install package-name).

Note: There are 2 deb files for every OS version - one is mysql-workbench-community (which is what you need, I guess) and the other is mysql-workbench-community-dbgsym. I think you cannot install the latter without the former.