docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

The docker file not work anymore

Open HackToday opened this issue 9 years ago • 1 comments

when tried with

# docker build github.com/creack/docker-firefox
Sending build context to Docker daemon 56.83 kB
Step 1 : FROM ubuntu:12.04
 ---> 8b1548cecef1
Step 2 : RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
 ---> Using cache
 ---> 89d77cb4b63e
Step 3 : RUN apt-get update
 ---> Using cache
 ---> cd538500687d
Step 4 : RUN apt-get install -y x11vnc xvfb firefox
 ---> Running in 0c06ca61275d
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:
 firefox : Depends: lsb-release but it is not going to be installed
           Recommends: xul-ext-ubufox but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y x11vnc xvfb firefox' returned a non-zero code: 100

HackToday avatar Jan 20 '16 08:01 HackToday

I don’t even understand why one ever needed the line, but just removing

-# make sure the package repository is up to date
-run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list

solves it.

As a note, I also needed to change

-run x11vnc -storepasswd 1234 ~/.vnc/passwd
+run x11vnc -storepasswd 1234 /.vnc/passwd

Anyway ubuntu:12.04 is so old, I’m still looking for a solution with a recent version, but for some reasons, VNC client (I’m using remmina) immediately crashes when I connect with x11vnc running on either trusty (0.9.13-1.1), xenial (0.9.13-1.2build1) or debian:stretch (0.9.13-2), whilst manually sending individual commands using vncdo does succeed.

yuwash avatar Oct 05 '17 20:10 yuwash