libvirtd.service could not found - libvirt

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.

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

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

How to install symbolic package in Octave for ubuntu?

pkg install -forge symbolic
error: could not download file symbolic-2.6.0.tar.gz from url http://packages.octave.org/download/symbolic-2.6.0.tar.gz
error: called from
I just hit the same problem. The solution is to check if you have pip
sudo apt-cache policy python-pip
which should return either:
python-pip:
Installed: (none)
Candidate: 1.5.4-1ubuntu3
Version table:
1.5.4-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
1.5.4-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
meaning it isn't installed. Or:
python-pip:
Installed: 1.5.4-1ubuntu3
Candidate: 1.5.4-1ubuntu3
Version table:
*** 1.5.4-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
100 /var/lib/dpkg/status
1.5.4-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
if it is installed. If not installed run:
sudo apt-get install python-pip
Now you can run pip to get the new sympy
pip install --user sympy
Finally back to octave to run
pkg install -forge symbolic
or
pkg install /PATH/YOU/DOWNLOADED/TO/symbolic-2.2.4.tar.gz
if you downloaded the tar of the version you need.
Last and final step: Each time your run octave, you need to load the symbolic package,
pkg load symbolic
or you can put this command in your ~/.octaverc.

Can't install libmysqlclient-dev package when building dockerfile with ubuntu

I have the following content on my Dockerfile:
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y python-pip libmysqlclient-dev
And I got this output:
Step 4 : RUN apt-get install -y python-pip libmysqlclient-dev
---> Running in 2fb54b3107d4
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libmysqlclient-dev 
The command '/bin/sh -c apt-get install -y python-pip libmysqlclient-dev' returned a non-zero code: 100
The weird thing is that if I run the same thing using docker run over the same image, the command works fine:
$ docker run -it --rm ubuntu bash
root#5f4d0083bd31:/# apt-get update && apt-get install libmysqlclient-dev
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [1103 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [5179 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [261 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [1872 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [137 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [548 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [11.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [459 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-security/main Sources [60.7 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-security/restricted Sources [1872 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-security/universe Sources [15.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [225 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [11.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [76.9 kB]
Fetched 24.6 MB in 1min 26s (284 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libc-dev-bin libc6 libc6-dev libmysqlclient20 linux-libc-dev manpages manpages-dev mysql-common zlib1g-dev
Suggested packages:
glibc-doc man-browser
The following NEW packages will be installed:
libc-dev-bin libc6-dev libmysqlclient-dev libmysqlclient20 linux-libc-dev manpages manpages-dev mysql-common zlib1g-dev
The following packages will be upgraded:
libc6
1 upgraded, 9 newly installed, 0 to remove and 17 not upgraded.
Need to get 10.9 MB of archives.
After this operation, 35.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]
What could be wrong when using Dockerfile?
Thanks
I ran into this problem with a debian container. What fixed it was installing each package with separate commands. So instead of
RUN apt-get install -y python-pip libmysqlclient-dev
do
RUN apt-get install -y python-pip
RUN apt-get install -y libmysqlclient-dev
Use of default-libmysqlclient-dev in Dockerfile
instead of libmysqlclient-dev solved the issue for me.
For Debian releases older or equal 8, this package is named: libmysqlclient-dev
For Debian releases newer than 8, this package is named: default-libmysqlclient-dev
For Alpine you can use mariadb-dev instead of default-libmysqlclient-dev
FROM gliderlabs/alpine:3.9
RUN apk-install mariadb-dev mariadb-client
Connecting to MySQL / MariaDB
mariadb-dev default-libmysqlclient-dev

sudo apt-get update error on Ubuntu 14.10

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