无法在 Debian 7 (Wheezy) 上安装 mySQL/maridDB

Cannot install mySQL/maridDB on Debian 7 (Wheezy)

计算器溢出。 在过去的几天里,我一直在努力在我的 raspberry pi 2 上安装 mySQL:/ 我不是 Debian 7 (Wheezy),我无法更改发行版,必须使用它。所以,我需要安装 MySQL 版本 5.5 或更高版本,或者 MariaDB,我已经尝试安装两者,但 none 有效。
安装 MariaDB 时,按照他们的 documentation,当我到了

sudo apt-get install mariadb-server

出现错误:

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

尝试使用谷歌搜索并寻找类似的案例,但找不到任何有用的东西。
mySQL 情况更糟。使用他们的 documentation and MySQL APT Repository and tutorials 执行以下步骤:

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

显示错误:

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.

如果我尝试:

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

请帮忙,我们将不胜感激!

官方 debian 仓库中似乎没有名称为 mysql-community-server 的任何软件包。我找到了 mysql-server 包。 https://packages.debian.org/wheezy/mysql-server.

所以试试这个:

  • 将官方 debian 仓库添加到您的源列表中(即将 deb http://security.debian.org/debian-security wheezy/updates main 添加到文件 /etc/apt/sources.list
  • sudo apt-get update
  • sudo apt-get install mysql-server