Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

apt-get upgrade returns an error #4

Closed
gwelr opened this issue Feb 26, 2014 · 4 comments
Closed

apt-get upgrade returns an error #4

gwelr opened this issue Feb 26, 2014 · 4 comments

Comments

@gwelr
Copy link

gwelr commented Feb 26, 2014

Tried to install riak using your procedure but it does work because apt-get upgrade returns an error and exit.
Providing below the end of the log of the apt-get upgrade. I remain available if you need further information:
Setting up initscripts (2.88dsf-13.10ubuntu11.1) ...
mount: block device /dev/shm is write-protected, mounting read-only
mount: cannot mount block device /dev/shm read-only
dpkg: error processing initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ifupdown:
ifupdown depends on initscripts (>= 2.88dsf-13.3); however:
Package initscripts is not configured yet.
dpkg: error processing ifupdown (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
dpkg: dependency problems prevent configuration of procps:
procps depends on initscripts; however:
Package initscripts is not configured yet.
dpkg: error processing procps (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of udev:
udev depends on procps; however:
Package procps is not configured yet.
dpkg: error processing udev (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of plymouth:
plymouth depends on udev (>= 166-0ubuntu4); however:
Package udev is not configured yet.
dpkg: error processing plymouth (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of mountall:
mountall depends on udev; however:
Package udev is not configured yet.
mountall depends on plymouth; however:
Package plymouth is not configured yet.
dpkg: error processing mountall (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on udev (>= 147~-5); however:
Package udev is not configured yet.
dpkg: error processing initramfs-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
ldconfig deferred processing now taking place
Errors were encountered while processing:
initscripts
ifupdown
procps
udev
plymouth
mountall
initramfs-tools

2014/02/26 11:03:09 build: The command [/bin/sh -c apt-get upgrade -y] returned a non-zero code: 255
make: *** [riak-container] Error 1

@gwelr
Copy link
Author

gwelr commented Feb 26, 2014

Followed recommendations here: moby/moby#1724
I've added the following lines in the Dockerfile (right after the Maintainer line and before apt-get update and apt-get upgrade run):

hopefully temporary work-around of http://git.io/Ke_Meg#1724

RUN apt-mark hold initscripts udev plymouth mountall
And commented the lines:

Hack for initctl

See: moby/moby#1024

RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl

which are no longer needed.

@hectcastro
Copy link
Owner

Thanks, @gwelr.

Sorry for the delayed response here. I've been working on a few changes to how the containers speak to each other here: https://github.com/hectcastro/docker-riak/tree/feature/docker-links

As soon as I get a chance, I'd like to try and incorporate some of your comments from here into that branch.

@hectcastro
Copy link
Owner

Should be fixed by 25204a9 and a77e90a.

@gwelr Can you try the feature/docker-links branch and let me know if you run into any issues?

@hectcastro
Copy link
Owner

Addressed in 05fca34.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants