Ilja Leiko
Ilja Leiko

Reputation: 638

Cannot install mySQL/maridDB on Debian 7 (Wheezy)

Stackoverflow. I am struggling for a past couple of days to install mySQL on my raspberry pi 2 :/ I am not Debian 7 (Wheezy) and there is no way I can change the distribution, have to work with that. So, i need to install MySQL version 5.5 or greater, or MariaDB and i have tried installing both, but none works.
When installing MariaDB, following their documentation, when i get to the point

sudo apt-get install mariadb-server

Am getting an error:

The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.0 (= 10.0.32+maria-1~wheezy) but it is not installable

Tried googling and looking for similar cases, but can't find anything which would work.
With mySQL things are even worst. Using their documentation and MySQL APT Repository and tutorials doing following steps:

wget https://dev.mysql.com/get/mysql-apt-config_0.8.8-1_all.deb
dpkg -i mysql-apt-config_0.8.8-1_all.deb (choosing mysql 5.6)
apt-get update

It shows error:

apt-get update
Hit http://mirror.zol.co.zw wheezy Release.gpg
Hit http://mirror.zol.co.zw wheezy Release
Hit http://mirror.zol.co.zw wheezy/main Sources
Hit http://mirror.zol.co.zw wheezy/main amd64 Packages
Hit http://mirror.zol.co.zw wheezy/main i386 Packages
Ign http://mirror.zol.co.zw wheezy/main Translation-en_GB
Ign http://mirror.zol.co.zw wheezy/main Translation-en
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Get:1 http://repo.mysql.com wheezy Release.gpg [173 B]
Hit http://archive.raspberrypi.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Get:2 http://repo.mysql.com wheezy Release [24.1 kB]
Get:3 http://repo.mysql.com wheezy/mysql-5.6 Sources [859 B]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Fetched 25.2 kB in 5s (4,900 B/s)
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/wheezy/Release  Unable                                                            to find expected entry 'mysql-apt-config/binary-armhf/Packages' in Release file                                                            (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used                                                            instead.

And if i try:

apt-get install mysql-community-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-community-server

Please help, any help would be very appreciated!

Upvotes: 0

Views: 857

Answers (1)

Ambady Anand S
Ambady Anand S

Reputation: 86

There doesn't seem to be any package in official debian repo in the name mysql-community-server. I found mysql-server package instead. https://packages.debian.org/wheezy/mysql-server.

So try this:

  • Add official debian repo to your sources list (i.e. add deb http://security.debian.org/debian-security wheezy/updates main to the file /etc/apt/sources.list)
  • sudo apt-get update
  • sudo apt-get install mysql-server

Upvotes: 2

Related Questions