sudo apt-get update error on Ubuntu 14.10 - apt-get

I've just got a fresh server running Ubuntu 14.10 in a data center. I tried to install FTP with sudo apt-get install vsftpd this gave me an error that it couldn't fetch and it told me to run sudo apt-get update. So I tried to do that and then I got the following error message.
csvuser#k2521s002:~$ sudo apt-get update
Ign http://security.ubuntu.com utopic-security InRelease
Ign http://archive.ubuntu.com utopic InRelease
Ign http://security.ubuntu.com utopic-security Release.gpg
Ign http://archive.ubuntu.com utopic-updates InRelease
Ign http://security.ubuntu.com utopic-security Release
Ign http://archive.ubuntu.com utopic Release.gpg
Ign http://archive.ubuntu.com utopic-updates Release.gpg
Ign http://archive.ubuntu.com utopic Release
Ign http://security.ubuntu.com utopic-security/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com utopic-updates Release
Ign http://security.ubuntu.com utopic-security/universe amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com utopic/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com utopic/universe amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com utopic-updates/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com utopic-updates/universe amd64 Packages/DiffIndex
Err http://security.ubuntu.com utopic-security/main Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://security.ubuntu.com utopic-security/universe Sources
404 Not Found [IP: 91.189.91.13 80]
Ign http://security.ubuntu.com utopic-security/main Translation-en_US
Ign http://security.ubuntu.com utopic-security/main Translation-en
Ign http://security.ubuntu.com utopic-security/universe Translation-en_US
Ign http://security.ubuntu.com utopic-security/universe Translation-en
Err http://security.ubuntu.com utopic-security/main amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
Err http://security.ubuntu.com utopic-security/universe amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
Err http://archive.ubuntu.com utopic/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com utopic/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Ign http://archive.ubuntu.com utopic/main Translation-en_US
Ign http://archive.ubuntu.com utopic/main Translation-en
Ign http://archive.ubuntu.com utopic/universe Translation-en_US
Ign http://archive.ubuntu.com utopic/universe Translation-en
Err http://archive.ubuntu.com utopic-updates/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com utopic-updates/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Ign http://archive.ubuntu.com utopic-updates/main Translation-en_US
Ign http://archive.ubuntu.com utopic-updates/main Translation-en
Ign http://archive.ubuntu.com utopic-updates/universe Translation-en_US
Ign http://archive.ubuntu.com utopic-updates/universe Translation-en
Err http://archive.ubuntu.com utopic/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com utopic/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com utopic-updates/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com utopic-updates/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/utopic-security/main/source/Sources 404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/utopic-security/universe/source/Sources 404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/utopic-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic-updates/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/utopic-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I did some research but couldn't really find a solution.
Thanks!
EDIT 1:
Everything I try to install gives me this
404 Not Found [IP: 91.189.88.149 80]
error. It can't find certain files on the ubuntu website.

You may want to edit /etc/apt/sources.list and replace all occurances of "archive." or "security." in the defined URLs by "old-archives." - then run sudo apt-get update and it should work fine.
Source for this advice

Related

Error when trying to install MySQL on Ubuntu 21.10

I have tried installing MySQL on my Ubuntu 21.10 VPS server.
It's hosted with Contabo but I've tried different methods for fixing it. Anyone who knows how to fix?
Thank you in advance!
First I tried this command:
apt install mariadb-server mariadb-client -y && mysql_secure_installation
I've included my logs from PuTTY & my sources list.
Logs from PuTTY:
The following NEW packages will be installed:
libcgi-fast-perl libcgi-pm-perl libclone-perl libevent-core-2.1-7
libevent-pthreads-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl
libhtml-parser-perl libhtml-template-perl libhttp-message-perl libmecab2
libprotobuf-lite23 liburi-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils
mysql-client-8.0 mysql-client-core-8.0 mysql-server mysql-server-8.0
mysql-server-core-8.0
0 upgraded, 22 newly installed, 0 to remove and 3 not upgraded.
Need to get 21.8 MB/28.6 MB of archives.
After this operation, 240 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-client-core-8.0 amd64 8.0.29-0ubuntu0.21.10.2
Ign:2 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-client-8.0 amd64 8.0.29-0ubuntu0.21.10.2
Err:3 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libevent-core-2.1-7 amd64 2.1.12-stable-1
404 Not Found [IP: 213.136.72.159 80]
Err:4 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libevent-pthreads-2.1-7 amd64 2.1.12-stable-1
404 Not Found [IP: 213.136.72.159 80]
Err:5 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libmecab2 amd64 0.996-14build4
404 Not Found [IP: 213.136.72.159 80]
Err:6 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libprotobuf-lite23 amd64 3.12.4-1ubuntu3
404 Not Found [IP: 213.136.72.159 80]
Ign:7 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server-core-8.0 amd64 8.0.29-0ubuntu0.21.10.2
Ign:8 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server-8.0 amd64 8.0.29-0ubuntu0.21.10.2
Err:9 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 liburi-perl all 5.08-1
404 Not Found [IP: 213.136.72.159 80]
Err:10 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libhtml-parser-perl amd64 3.76-1
404 Not Found [IP: 213.136.72.159 80]
Err:11 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libcgi-pm-perl all 4.51-1
404 Not Found [IP: 213.136.72.159 80]
Err:12 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libfcgi0ldbl amd64 2.4.2-2build1
404 Not Found [IP: 213.136.72.159 80]
Err:13 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libfcgi-perl amd64 0.79+ds-2build1
404 Not Found [IP: 213.136.72.159 80]
Err:14 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libclone-perl amd64 0.45-1build1
404 Not Found [IP: 213.136.72.159 80]
Err:15 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libfcgi-bin amd64 2.4.2-2build1
404 Not Found [IP: 213.136.72.159 80]
Err:16 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 libhttp-message-perl all 6.29-1
404 Not Found [IP: 213.136.72.159 80]
Err:17 http://asi-fs-d.contabo.net/ubuntu impish/main amd64 mecab-utils amd64 0.996-14build4
404 Not Found [IP: 213.136.72.159 80]
Ign:18 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server all 8.0.29-0ubuntu0.21.10.2
Err:1 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-client-core-8.0 amd64 8.0.29-0ubuntu0.21.10.2
404 Not Found [IP: 213.136.72.159 80]
Err:2 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-client-8.0 amd64 8.0.29-0ubuntu0.21.10.2
404 Not Found [IP: 213.136.72.159 80]
Err:7 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server-core-8.0 amd64 8.0.29-0ubuntu0.21.10.2
404 Not Found [IP: 213.136.72.159 80]
Err:8 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server-8.0 amd64 8.0.29-0ubuntu0.21.10.2
404 Not Found [IP: 213.136.72.159 80]
Err:18 http://asi-fs-d.contabo.net/ubuntu impish-updates/main amd64 mysql-server all 8.0.29-0ubuntu0.21.10.2
404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mysql-8.0/mysql-client-core-8.0_8.0.29-0ubuntu0.21.10.2_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mysql-8.0/mysql-client-8.0_8.0.29-0ubuntu0.21.10.2_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libe/libevent/libevent-core-2.1-7_2.1.12-stable-1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libe/libevent/libevent-pthreads-2.1-7_2.1.12-stable-1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mecab/libmecab2_0.996-14build4_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/p/protobuf/libprotobuf-lite23_3.12.4-1ubuntu3_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mysql-8.0/mysql-server-core-8.0_8.0.29-0ubuntu0.21.10.2_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mysql-8.0/mysql-server-8.0_8.0.29-0ubuntu0.21.10.2_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libu/liburi-perl/liburi-perl_5.08-1_all.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libh/libhtml-parser-perl/libhtml-parser-perl_3.76-1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libc/libcgi-pm-perl/libcgi-pm-perl_4.51-1_all.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libf/libfcgi/libfcgi0ldbl_2.4.2-2build1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libf/libfcgi-perl/libfcgi-perl_0.79%2bds-2build1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libc/libclone-perl/libclone-perl_0.45-1build1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libf/libfcgi/libfcgi-bin_2.4.2-2build1_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/libh/libhttp-message-perl/libhttp-message-perl_6.29-1_all.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mecab/mecab-utils_0.996-14build4_amd64.deb 404 Not Found [IP: 213.136.72.159 80]
E: Failed to fetch http://asi-fs-d.contabo.net/ubuntu/pool/main/m/mysql-8.0/mysql-server_8.0.29-0ubuntu0.21.10.2_all.deb 404 Not Found [IP: 213.136.72.159 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Here is my sources list:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://asi-fs-d.contabo.net/ubuntu impish main restricted
# deb-src http://asi-fs-d.contabo.net/ubuntu impish main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://asi-fs-d.contabo.net/ubuntu impish-updates main restricted
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://asi-fs-d.contabo.net/ubuntu impish universe
# deb-src http://asi-fs-d.contabo.net/ubuntu impish universe
deb http://asi-fs-d.contabo.net/ubuntu impish-updates universe
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://asi-fs-d.contabo.net/ubuntu impish multiverse
# deb-src http://asi-fs-d.contabo.net/ubuntu impish multiverse
deb http://asi-fs-d.contabo.net/ubuntu impish-updates multiverse
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://asi-fs-d.contabo.net/ubuntu impish-backports main restricted universe multiverse
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu impish partner
# deb-src http://archive.canonical.com/ubuntu impish partner
deb http://asi-fs-d.contabo.net/ubuntu impish-security main restricted
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-security main restricted
deb http://asi-fs-d.contabo.net/ubuntu impish-security universe
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-security universe
deb http://asi-fs-d.contabo.net/ubuntu impish-security multiverse
# deb-src http://asi-fs-d.contabo.net/ubuntu impish-security multiverse
I've also tried these without luck:
sudo systemctl stop mysql
sudo apt clean
sudo apt purge mysql*
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
sudo apt autoremove
sudo apt autoclean
sudo apt update
sudo apt dist-upgrade
sudo apt install -f
sudo apt install mysql-server

libvirtd.service could not found

when I try to start libvirt using sudo systemctl start libvirtd
Failed to start libvirtd.service: Unit libvirtd.service not found. occured.
And when i try to apt list to detect is here libvirt
apt list | grep libvirt results is that
gir1.2-libvirt-glib-1.0/focal 3.0.0-1 amd64
gir1.2-libvirt-sandbox-1.0/focal 0.5.1+git20160404-1ubuntu2 amd64
libnss-libvirt/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-clients/focal-updates,now 6.0.0-0ubuntu8.14 amd64 [installed]
libvirt-daemon-driver-lxc/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-qemu/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-storage-gluster/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-storage-rbd/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-storage-zfs/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-vbox/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-driver-xen/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-system-systemd/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-system-sysv/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon-system/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-daemon/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-dbus/focal-updates,focal-security 1.3.0-1ubuntu1 amd64
libvirt-dev/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-doc/focal-updates 6.0.0-0ubuntu8.14 all
libvirt-glib-1.0-0/focal 3.0.0-1 amd64
libvirt-glib-1.0-dev/focal 3.0.0-1 amd64
libvirt-ocaml-dev/focal 0.6.1.5-1build1 amd64
libvirt-ocaml/focal 0.6.1.5-1build1 amd64
libvirt-sandbox-1.0-5/focal 0.5.1+git20160404-1ubuntu2 amd64
libvirt-sandbox-1.0-dev/focal 0.5.1+git20160404-1ubuntu2 amd64
libvirt-sanlock/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt-wireshark/focal-updates 6.0.0-0ubuntu8.14 amd64
libvirt0/focal-updates,now 6.0.0-0ubuntu8.14 amd64 [installed,automatic]
libvirtodbc0/focal 6.1.6+repack-0ubuntu10 amd64
libvirtualpg-dev/focal 2.0.0~rc0-1 amd64
libvirtualpg0/focal 2.0.0~rc0-1 amd64
libvirtuoso5.5-cil/focal 6.1.6+repack-0ubuntu10 amd64
nbdkit-plugin-libvirt/focal 1.16.2-1ubuntu3 amd64
nova-compute-libvirt/focal-updates 2:21.2.2-0ubuntu1 all
php-libvirt-php/focal 0.5.5-1 amd64
python3-libvirt/focal 6.1.0-1 amd64
ruby-fog-libvirt/focal 0.6.0-1 all
ruby-libvirt/focal 0.7.1-1build1 amd64
uvtool-libvirt/focal 0~git169-0ubuntu1 all
vagrant-libvirt/focal 0.0.45-2 all
I don't know what is the this problem and how to i fix it?
Refer to Ubuntu documents:
# To install the necessary packages, from a terminal prompt enter:
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system
You should check and follow some necessary steps or configures according to the document.

How to install mysql on ubuntu 15.10

I am running a Ubuntu 15.10.
I know it's not supported anymore but still is there a way to install mysql 5.6 on it?
I have found any post that could help me.
[UPDATE]
here is the error I get:
Like 15.10 is not supported anymore I guess the repos doesn't exist anymore...?
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libaio1 amd64 0.3.110-1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily-updates/main mysql-common all 5.6.31-0ubuntu0.15.10.1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libdbi-perl amd64 1.633-1
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libdbd-mysql-perl amd64 4.028-2
404 Not Found [IP : 194.158.119.186 80]
Err http://fr.archive.ubuntu.com/ubuntu/ wily/main libterm-readkey-perl amd64 2.33-1
404 Not Found [IP : 194.158.119.186 80]
Err http://security.ubuntu.com/ubuntu/ wily-security/main mysql-common all 5.6.31-0ubuntu0.15.10.1
To overcome such problems easily, there is containerization technology.
If it is possible to install docker on the system, you could start a docker container with the desired version of mySQL:
mkdir /my/own/datadir
docker run -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql:5.6
This will start an mySQL instance in a docker container with port 3306 exposed (default mySQL port), and mounts the data volume to /my/own/datadir (please change this).
Please note that there are more elegant ways to start this container, this is just an example.
See here for a docker primer: https://docs.docker.com/get-started/
See here for the official mysql images: https://hub.docker.com/_/mysql/
Install MySQL on Linux Ubuntu 15 issue the following command
sudo apt-get install mysql-server

Cannot install mySQL/maridDB on Debian 7 (Wheezy)

Stackoverflow.
I am struggling for a past couple of days to install mySQL on my raspberry pi 2 :/
I am not Debian 7 (Wheezy) and there is no way I can change the distribution, have to work with that. So, i need to install MySQL version 5.5 or greater, or MariaDB and i have tried installing both, but none works.
When installing MariaDB, following their documentation, when i get to the point
sudo apt-get install mariadb-server
Am getting an error:
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.0 (= 10.0.32+maria-1~wheezy) but it is not installable
Tried googling and looking for similar cases, but can't find anything which would work.
With mySQL things are even worst. Using their documentation and MySQL APT Repository and tutorials doing following steps:
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
It shows error:
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.
And if i try:
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
Please help, any help would be very appreciated!
There doesn't seem to be any package in official debian repo in the name mysql-community-server. I found mysql-server package instead.
https://packages.debian.org/wheezy/mysql-server.
So try this:
Add official debian repo to your sources list (i.e. add deb http://security.debian.org/debian-security wheezy/updates main to the file /etc/apt/sources.list)
sudo apt-get update
sudo apt-get install mysql-server

Debian Jessie mysql-shell installation

I am trying to install mysql-shell on a debian jessie distribution.
I have successfully installed and configure mysql-apt-config, then mysql 5.7 server.
I have followed instructions on mysql official website.
But apt is not able to find mysql-shell package.
Something strange was displayed during apt-get update:
Ign http://repo.mysql.com jessie/mysql-5.7 Translation-fr_FR
Ign http://repo.mysql.com jessie/mysql-5.7 Translation-fr
Ign http://repo.mysql.com jessie/mysql-5.7 Translation-en
Ign http://repo.mysql.com jessie/mysql-apt-config Translation-fr_FR
Ign http://repo.mysql.com jessie/mysql-apt-config Translation-fr
Ign http://repo.mysql.com jessie/mysql-apt-config Translation-en
Ign http://repo.mysql.com jessie/mysql-tools Translation-fr_FR
Ign http://repo.mysql.com jessie/mysql-tools Translation-fr
Ign http://repo.mysql.com jessie/mysql-tools Translation-en
Ign http://repo.mysql.com jessie/mysql-tools-preview Translation-fr_FR
Ign http://repo.mysql.com jessie/mysql-tools-preview Translation-fr
Ign http://repo.mysql.com jessie/mysql-tools-preview Translation-en
I see this "Ign" prefix and download for each Ign line seems to by very quick. So i am wondering if apt-get install takes care of those repositories...
But, mysql 5.7 has been successfully installed...
Any Idea ?
Thanks
You needn't to worry this. In my opinion this operation need more time to connect with repository. When I ping repo.mysql.com I must wait 2-3 second to any respond. For you - I check this on my server. Take a look:
Answer for: http://repo.mysql.com/apt/debian/dists/jessie/mysql-apt-config`/i18n/Translation-en_GB.lzma
HTTP/1.1 404 Not Found
Server: Apache
Content-Type: text/html; charset=iso-8859-1
Content-Length: 16
Date: Sat, 17 Sep 2016 10:48:26 GMT
Connection: keep-alive
GET /apt/debian/dists/jessie/mysql-apt-config/i18n/Translation-en.lzma HTTP/1.1
Host: repo.mysql.com
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (1.0.9.8.3)
If you check http://repo.mysql.com/apt/debian/dist/jessie - you can find full path to any file and you can answer to your question. The server redirect to right path.