13

Can't solve the problem because nothing helps. Try to install mysql but package is not found. gedit and some other packages looks the same.

Firstly repositories were with subdomain 'by.' (because of regional settings). But I changed them to main server without subdomain. Maybe this caused problems?

I use xubuntu 16.04 xenial xerus.

source.list is

# deb cdrom:[Xubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main multiverse restricted universe

deb http://archive.ubuntu.com/ubuntu xenial main restricted    
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted    
deb http://archive.ubuntu.com/ubuntu xenial universe    
deb http://archive.ubuntu.com/ubuntu xenial-updates universe    
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse   
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse    
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner    
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted    
deb http://archive.ubuntu.com/ubuntu xenial-security universe    
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse

apt-get update, apt-get upgrade doesn't help

1

3 Answers 3

23

There is no package with the name of 'mysql' in the repositories.

If you would like to to connect other mysql servers, you need the mysql-client package: sudo apt-get install mysql-client.

If you want to host a database you need the mysql-server package: sudo apt-get install mysql-server.

Installation guide: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

1
  • 1
    This was immensly helpful. For those that didn't catch it: mysql-client is what you want if you want to use mysql, but while connected to a different database server. mysql-server actually runs the database on your current server. This is what I needed, i didn't want to install the whole mysql-server just to connect to an external database server, but i needed the mysql cli. Thank you.
    – jacurtis
    Jul 5, 2018 at 16:51
2

sudo apt-get update && sudo apt-get dist-upgrade

then

sudo apt-get install mysql-server

-1

Try using deb http://kali.download/kali/ kali-rolling main contrib non-free in your sources.list file.

Then run

apt update & upgrade

then run

apt install mysql-server
2
  • This sounds like a very bad solution - you're not installing the correct ubuntu package. Instead you're installing packages from an different Linux distribution.
    – DavidW
    Aug 8, 2022 at 8:39
  • Using a ppa is fine, but mixing in a whole repository for a different distribution will cause mayhem and you will run into dependency problems sooner than later.
    – FalcoGer
    Aug 10, 2022 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.