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
請幫幫忙,任何幫助將是非常感激!
哦,它顯示了相同的錯誤... sudo apt-get安裝mysql-server ... E:無法找到軟件包mysql-server –
請嘗試按照本指南一步一步:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ –
或者只需嘗試:'sudo apt-get install mysql-server- 5.5' –