#1。
在过去的几天里我一直在努力在我的覆盆子pi 2上安装mySQL:/
我不是Debian 7(Wheezy),我无法改变发行版,必须使用它。所以,我需要安装MySQL 5.5或更高版本,或MariaDB,我已经尝试安装两者,但没有一个工作。
当安装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和MySQL APT存储库以及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
请帮助,非常感谢任何帮助!
答案 0 :(得分:2)
在mysql-community-server
名称的官方debian回购中似乎没有任何包。我找到了mysql-server
包。
https://packages.debian.org/wheezy/mysql-server
所以试试这个:
deb http://security.debian.org/debian-security wheezy/updates main
添加到文件/etc/apt/sources.list
)sudo apt-get update
sudo apt-get install mysql-server