2017-10-11 83 views
0

Stackoverflow。 我在过去的几天中苦苦挣扎,在我的树莓派2上安装mySQL:/ 我不是Debian 7(Wheezy),我无法改变发行版,必须使用它。所以,我需要安装MySQL版本5.5或更高版本,或者MariaDB,并且我已经尝试安装两者,但没有任何作用。
当安装MariaDB的,跟随他们的documentation,当我去点无法在Debian 7上安装mySQL/maridDB(Wheezy)

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 

请帮帮忙,任何帮助将是非常感激!

回答

2

似乎没有在名称mysql-community-server名称在官方debian回购的任何包。我发现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
+0

哦,它显示了相同的错误... sudo apt-get安装mysql-server ... E:无法找到软件包mysql-server –

+0

请尝试按照本指南一步一步:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ –

+0

或者只需尝试:'sudo apt-get install mysql-server- 5.5' –