dokku-md-plugin
dokku-md-plugin copied to clipboard
plugins-install Fails - returned a non-zero code: 100
Followed the instruction and I'm getting the following error when running "plugins-install":
The command [/bin/sh -c LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server-5.5] returned a non-zero code: 100
I am trying to setup mariadb on a DigitalOcean droplet. Not sure what's going on, I can run the "apt-get install" manually and it runs fine.
ubuntu@ip-10-0-0-169:/var/lib/dokku/plugins/mariadb/dockerfiles$ sudo docker build -t kloadut/mariadb .
Sending build context to Docker daemon 6.656 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:trusty
---> b7cf8f0d9e82
Step 1 : MAINTAINER kload "[email protected]"
---> Using cache
---> 3ecea007681f
Step 2 : RUN printf '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d; chmod +x /usr/sbin/policy-rc.d
---> Using cache
---> a10b889a03bf
Step 3 : RUN apt-get update
---> Using cache
---> d93d3b1da0d4
Step 4 : RUN apt-get install -y software-properties-common
---> Using cache
---> fb7f062506da
Step 5 : RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
---> Using cache
---> d7ef3e5748e2
Step 6 : RUN add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
---> Using cache
---> 4fa82faebaa6
Step 7 : RUN apt-get update
---> Using cache
---> 77f1c9276754
Step 8 : RUN echo mysql-server-5.5 mysql-server/root_password password 'a_stronk_password' | debconf-set-selections
---> Using cache
---> 36abb3c82ed9
Step 9 : RUN echo mysql-server-5.5 mysql-server/root_password_again password 'a_stronk_password' | debconf-set-selections
---> Using cache
---> 5adb146b8670
Step 10 : RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server-5.5
---> Running in 0a1806dfa3db
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mariadb-server-5.5 : Depends: mariadb-client-5.5 (>= 5.5.42+maria-1~trusty) but it is not going to be installed
Depends: mariadb-server-core-5.5 (>= 5.5.42+maria-1~trusty) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
INFO[0001] The command [/bin/sh -c LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server-5.5] returned a non-zero code: 100
I made the change your recommended but I'm still getting a similar error:
INFO[0001] The command [/bin/sh -c LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y mariadb-server-5.5] returned a non-zero code: 100
I ended up just using a different plugin... I was unable to get this working well. You might have some luck forking it and fixing it though, it shouldn't be too tricky.