Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build - issue installing vim? #1

Open
eugeneiiim opened this issue Jul 12, 2014 · 11 comments
Open

Unable to build - issue installing vim? #1

eugeneiiim opened this issue Jul 12, 2014 · 11 comments

Comments

@eugeneiiim
Copy link

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
Copy link
Author

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

@mingfang
Copy link
Owner

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

@mingfang
Copy link
Owner

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

@eugeneiiim
Copy link
Author

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
Copy link
Author

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

@mingfang
Copy link
Owner

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?

@kanikashridhar
Copy link

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

@pyotr777
Copy link

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.

@kanikashridhar
Copy link

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

@mrccao
Copy link

mrccao commented Apr 22, 2016

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
Copy link

mrccao commented Apr 22, 2016

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

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

No branches or pull requests

5 participants