rogaha / docker-desktop

Docker Desktop enables you to create virtual desktops that can be accessed remotely. It comes with Firefox and Libreoffice already installed!
1.15k stars 287 forks source link

Build failing on Ubuntu 13.10 #12

Closed pallix closed 10 years ago

pallix commented 10 years ago

The build is failing on Ubuntu 13.10.

λ sudo docker build -t pal2/docker-desktop .
Uploading context 9.615 MB
Uploading context 
Step 1 : FROM ubuntu:12.10
 ---> 426130da57f7
Step 2 : MAINTAINER Roberto G. Hashioka "roberto_hashioka@hotmail.com"
 ---> Using cache
 ---> 2748c39ec5f5
Step 3 : RUN apt-get update
 ---> Using cache
 ---> 70b9561ec549
Step 4 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> b6e730018b28
Step 5 : RUN apt-get install -y xpra rox-filer ssh pwgen xserver-xephyr xdm fluxbox
 ---> Using cache
 ---> 43d04d984428
Step 6 : RUN sed -i 's/DisplayManager.requestPort/!DisplayManager.requestPort/g' /etc/X11/xdm/xdm-config
 ---> Using cache
 ---> 8d2e55b74d71
Step 7 : RUN sed -i '/#any host/c\*' /etc/X11/xdm/Xaccess
 ---> Using cache
 ---> ba6d1dff4c93
Step 8 : RUN ln -s /usr/bin/Xorg /usr/bin/X
 ---> Using cache
 ---> 660e100526b5
Step 9 : RUN echo X11Forwarding yes >> /etc/ssh/ssh_config
 ---> Using cache
 ---> a53b01f6e6fd
Step 10 : RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
 ---> Running in f8d47ce1f837
Leaving 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
: File exists
2014/01/30 12:54:29 The command [/bin/sh -c dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl] returned a non-zero code: 255
phord commented 10 years ago

I "fixed" this by completely removing that line from the Dockerfile. Not sure if that's the right thing. It seems to be added as a workaround in the first place, and perhaps the issue being worked-around is already fixed.

rogaha commented 10 years ago

Hi @phord,

Sorry for the late reply. I'll try to replicate your problem today! I'm glad that you fixed it. But let's see if I can fix it without removing that line which is related to the libre-office!

Thanks

phord commented 10 years ago

@rogaha No problemo for me. But fyi, I also had to remove the install of ubuntu-restricted-extras. Not sure why, since I already have them installed on my machine.

Step 12 : RUN apt-get install -y libreoffice-base firefox libreoffice-gtk libreoffice-calc xterm ubuntu-restricted-extras
 ---> Running in aec120291fc6

: Unable to locate package ubuntu-restricted-extras
2014/02/10 13:09:07 build: The command [/bin/sh -c apt-get install -y libreoffice-base firefox libreoffice-gtk libreoffice-calc xterm ubuntu-restricted-extras] returned a non-zero code: 255

Let me know if you want me to open a separate issue on that.

silarsis commented 10 years ago

The initctl, as far as I can tell, is already linked to /bin/true - but I use the following line:

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

I also found that this was required for 13.10:

RUN sed 's/session required pam_loginuid.so/session optional pam_loginuid.so/' -i /etc/pam.d/sshd

I have that after the X11Forwarding line - it fixes an issue with PAM noted on docker's web pages about ssh.

Note, both those changes are 12.04 friendly, so shouldn't cause any issues applied to the existing Dockerfile.

rogaha commented 10 years ago

It should be fixed with the latest version! I'm closing this issue for now. Please feel free to reopen it if it happens again!