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

Unable to build - issue installing vim?

Open eugeneiiim opened this issue 11 years ago • 11 comments

When I run build, I get the following error:

Eugenes-MacBook-Pro.local ➜  docker-ipython git:(master) ./build
Sending build context to Docker daemon 805.9 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu
 ---> e54ca5efa2e9
Step 1 : RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list &&    echo 'deb http://archive.ubuntu.com/ubuntu precise-updates universe' >> /etc/apt/sources.list &&    apt-get update
 ---> Using cache
 ---> 49d7591781a0
Step 2 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor && mkdir -p /var/log/supervisor
 ---> Using cache
 ---> 8f53377e5cdd
Step 3 : CMD ["/usr/bin/supervisord", "-n"]
 ---> Using cache
 ---> eb5f474356e0
Step 4 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server && mkdir /var/run/sshd && echo 'root:root' |chpasswd
 ---> Using cache
 ---> 2436fc47472a
Step 5 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim less net-tools inetutils-ping curl git telnet nmap socat dnsutils netcat
 ---> Running in c676214dc7f3
Reading package lists...
Building dependency tree...
Reading state information...
net-tools is already the newest version.
less is already the newest version.
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:
 vim : Depends: vim-common (= 2:7.3.429-2ubuntu2) but 2:7.4.052-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
2014/07/12 11:57:10 The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y vim less net-tools inetutils-ping curl git telnet nmap socat dnsutils netcat] returned a non-zero code: 100

eugeneiiim avatar Jul 12 '14 18:07 eugeneiiim

Thanks! ./build works now, but when I run ./shell and then runsvdir-start&, there is no output and I can't reach localhost:49888.

#> ./shell
root@e5915a4caf65:/# runsvdir-start&
[1] 9
#> curl localhost:49888
curl: (56) Recv failure: Connection reset by peer

eugeneiiim avatar Jul 14 '14 05:07 eugeneiiim

Do you see this file, /var/log/ipython/current ? If so can you please paste the content here?

mingfang avatar Jul 14 '14 06:07 mingfang

I fixed the problem. Please pull and rebuild to try again. It's a small change so the rebuild should be very quick.

mingfang avatar Jul 14 '14 11:07 mingfang

I pulled and rebuilt. After running runsvdir-start, /var/log/ipython/current contains the following:

root@47cca48704c2:/# cat /var/log/ipython/current 2014-07-13_01:32:48.08923 2014-07-13 01:32:48.088 [NotebookApp] Created profile dir: u'/root/.ipython/profile_nbserver' 2014-07-13_01:32:48.08971 2014-07-13 01:32:48.089 [NotebookApp] WARNING | Starting all kernels in pylab mode is not recommended, 2014-07-13_01:32:48.08973 and will be disabled in a future release. 2014-07-13_01:32:48.08974 Please use the %matplotlib magic to enable matplotlib instead. 2014-07-13_01:32:48.08975 pylab implies many imports, which can have confusing side effects 2014-07-13_01:32:48.08975 and harm the reproducibility of your notebooks. 2014-07-13_01:32:48.09361 2014-07-13 01:32:48.093 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js 2014-07-13_01:32:48.10842 2014-07-13 01:32:48.108 [NotebookApp] Serving notebooks from local directory: /ipython 2014-07-13_01:32:48.10845 2014-07-13 01:32:48.108 [NotebookApp] 0 active kernels 2014-07-13_01:32:48.10853 2014-07-13 01:32:48.108 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/ 2014-07-13_01:32:48.10856 2014-07-13 01:32:48.108 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 2014-07-13_01:32:48.10905 2014-07-13 01:32:48.108 [NotebookApp] WARNING | No web browser found: could not locate runnable browser.

eugeneiiim avatar Jul 15 '14 07:07 eugeneiiim

Curling / within the container does show up in the log:

root@2b96b75bcd78:/# curl localhost:8888
root@2b96b75bcd78:/# curl localhost:8888
root@2b96b75bcd78:/# curl localhost:8888
root@2b96b75bcd78:/# cat /var/log/ipython/current
2014-07-13_01:37:05.97219 2014-07-13 01:37:05.971 [NotebookApp] Created profile dir: u'/root/.ipython/profile_nbserver'
2014-07-13_01:37:05.97325 2014-07-13 01:37:05.972 [NotebookApp] WARNING | Starting all kernels in pylab mode is not recommended,
2014-07-13_01:37:05.97328     and will be disabled in a future release.
2014-07-13_01:37:05.97329     Please use the %matplotlib magic to enable matplotlib instead.
2014-07-13_01:37:05.97330     pylab implies many imports, which can have confusing side effects
2014-07-13_01:37:05.97331     and harm the reproducibility of your notebooks.
2014-07-13_01:37:05.97756 2014-07-13 01:37:05.977 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-07-13_01:37:05.99279 2014-07-13 01:37:05.992 [NotebookApp] Serving notebooks from local directory: /ipython
2014-07-13_01:37:05.99281 2014-07-13 01:37:05.992 [NotebookApp] 0 active kernels
2014-07-13_01:37:05.99290 2014-07-13 01:37:05.992 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/
2014-07-13_01:37:05.99293 2014-07-13 01:37:05.992 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
2014-07-13_01:37:05.99332 2014-07-13 01:37:05.993 [NotebookApp] WARNING | No web browser found: could not locate runnable browser.
2014-07-13_01:37:09.71534 INFO:tornado.access:302 GET / (::1) 1.22ms
2014-07-13_01:37:33.70959 INFO:tornado.access:302 GET / (::1) 0.63ms
2014-07-13_01:37:34.37281 INFO:tornado.access:302 GET / (::1) 0.56ms
2014-07-13_01:37:34.82751 INFO:tornado.access:302 GET / (::1) 0.52ms

eugeneiiim avatar Jul 15 '14 07:07 eugeneiiim

That's strange. It looks like it's not using the correct profile. The profile is part of the git repo. It is bind mounted by the shell script to /ipython. Then in the sv/ipython/run script, it first cd /ipython to make it use the right profile.

Can you confirm that all of this is in place? Are you using the shell script to start the container?

mingfang avatar Jul 15 '14 11:07 mingfang

How did you resolve the below error ? vim : Depends: vim-common (= 2:7.3.429-2ubuntu2) but 2:7.4.052-1ubuntu3 is to be installed

kanikashridhar avatar Oct 20 '14 07:10 kanikashridhar

I had the same error (vim:Depends: ...). In my case the problem was with /etc/apt/sources.list -- I had links to repositories for different Ubuntu version.

pyotr777 avatar Nov 26 '14 08:11 pyotr777

Thanks... same was the case for me. i also had the problems with my /etc/apt/sources.list file.

kanikashridhar avatar Nov 26 '14 08:11 kanikashridhar

hi,guys Is the vim-common version depends vim-common and VIM on the installation of the system, the solution is to uninstall vim-common and then install vim to people. it's useful to me~ sudo apt-get remove vim-common sudo apt-get install vim

mrccao avatar Apr 22 '16 16:04 mrccao

Step 15 : ADD supervisord.conf /etc/supervisord.conf ---> 2399bf2be556 Removing intermediate container 5e1ca8b7ad21 Step 16 : RUN mkdir -p /etc/supervisor.conf.d && mkdir -p /var/log/supervisor ---> Running in b7e781c7d9a1 ---> daa15524bb6f Removing intermediate container b7e781c7d9a1 Step 17 : EXPOSE 22 ---> Running in 1cad496ff995 ---> 465b2b780a60 Removing intermediate container 1cad496ff995 Step 18 : ENTRYPOINT /usr/bin/supervisord -n -c /etc/supervisord.conf ---> Running in 05cdae617233 ---> 20c7d60e39d0 Removing intermediate container 05cdae617233 Successfully built 20c7d60e39d0

mrccao avatar Apr 22 '16 16:04 mrccao