0

堆栈溢出。在过去的几天里,我一直在努力在我的树莓派 2 上安装 mySQL:/ 我不是 Debian 7 (Wheezy),我无法更改发行版,必须使用它。所以,我需要安装 MySQL 5.5 或更高版本,或者 MariaDB,我已经尝试安装两者,但都没有。
在安装 MariaDB 时,按照他们的文档,当我说到重点时

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 情况更糟。使用他们的文档和 MySQL APT 存储库和教程执行以下步骤:

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

请帮助,任何帮助将不胜感激!

4

1 回答 1

2

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

所以试试这个:

  • 将官方 debian repo 添加到您的源列表(即添加deb http://security.debian.org/debian-security wheezy/updates main到文件中/etc/apt/sources.list
  • sudo apt-get update
  • sudo apt-get install mysql-server
于 2017-10-11T06:09:04.267 回答