Code Monkey home page Code Monkey logo

Comments (10)

shin- avatar shin- commented on June 8, 2024

I think that's an issue with ubuntu and updating the dependencies of the libssl-dev package. Have you tried running apt-get update before?

Also pinging @tianon who might know more than me.

from official-images.

klaemo avatar klaemo commented on June 8, 2024

I always put a apt-get update at the beginning of my dockerfiles

from official-images.

tianon avatar tianon commented on June 8, 2024

Does it work if you add libssl1.0.0 explicitly to your install line?

from official-images.

klaemo avatar klaemo commented on June 8, 2024

nope

Reading package lists...
Building dependency tree...
Reading state information...
libssl1.0.0 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:
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu3) but 1.0.1-4ubuntu5.12 is to be installed
              Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
2014/04/10 18:04:42 The command [/bin/sh -c apt-get install -y curl libev4 libssl1.0.0 libssl-dev libev-dev] returned a non-zero code: 100

btw: with debian jessie it works

from official-images.

tianon avatar tianon commented on June 8, 2024

Which version of Ubuntu is this in? I'm testing with :latest (which is currently the same as :precise and :12.04, LTS), and it works in a fresh container with or without apt-get update, and even works without explicitly adding libssl1.0.0.

from official-images.

tianon avatar tianon commented on June 8, 2024

ie:

$ docker run -it --rm ubuntu bash -c 'apt-get update && apt-get install -y libssl-dev'
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:3 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:4 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Get:5 http://archive.ubuntu.com precise-updates/main amd64 Packages [764 kB]
Get:6 http://archive.ubuntu.com precise-updates/universe amd64 Packages [239 kB]
Get:7 http://archive.ubuntu.com precise-updates/main i386 Packages [788 kB]
Get:8 http://archive.ubuntu.com precise-updates/universe i386 Packages [244 kB]
Get:9 http://archive.ubuntu.com precise-security/main amd64 Packages [376 kB]
Get:10 http://archive.ubuntu.com precise-security/universe amd64 Packages [91.8 kB]
Get:11 http://archive.ubuntu.com precise-security/main i386 Packages [402 kB]
Get:12 http://archive.ubuntu.com precise-security/universe i386 Packages [96.5 kB]
Fetched 3101 kB in 4s (730 kB/s)                           
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils cpp cpp-4.6 gcc gcc-4.6 libc-bin libc-dev-bin libc6 libc6-dev
  libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 libssl-doc linux-libc-dev
  manpages manpages-dev zlib1g-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.6-locales gcc-multilib make autoconf automake1.9
  libtool flex bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev
  gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg
  binutils-gold glibc-doc man-browser
The following NEW packages will be installed:
  binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libgmp10 libgomp1
  libmpc2 libmpfr4 libquadmath0 libssl-dev libssl-doc linux-libc-dev manpages
  manpages-dev zlib1g-dev
The following packages will be upgraded:
  libc-bin libc6
2 upgraded, 18 newly installed, 0 to remove and 60 not upgraded.
Need to get 30.5 MB of archives.
After this operation, 64.6 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.5 [1182 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.5 [4654 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise/main libgmp10 amd64 2:5.0.2+dfsg-2ubuntu1 [238 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise/main libgomp1 amd64 4.6.3-1ubuntu5 [25.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise/main libmpfr4 amd64 3.1.0-3ubuntu2 [201 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise/main libquadmath0 amd64 4.6.3-1ubuntu5 [126 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise/main libmpc2 amd64 0.9-4 [39.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/main manpages all 3.35-0.1ubuntu1 [584 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main binutils amd64 2.22-6ubuntu1.1 [2638 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise/main cpp-4.6 amd64 4.6.3-1ubuntu5 [4836 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise/main cpp amd64 4:4.6.3-1ubuntu5 [27.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise/main gcc-4.6 amd64 4.6.3-1ubuntu5 [7572 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise/main gcc amd64 4:4.6.3-1ubuntu5 [5114 B]
Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.5 [83.9 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev amd64 3.2.0-60.91 [865 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.5 [2941 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise/main zlib1g-dev amd64 1:1.2.3.4.dfsg-3ubuntu4 [165 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev amd64 1.0.1-4ubuntu5.12 [1575 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-doc all 1.0.1-4ubuntu5.12 [1032 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ precise/main manpages-dev all 3.35-0.1ubuntu1 [1671 kB]
Fetched 30.5 MB in 19s (1535 kB/s)                                             
Preconfiguring packages ...
(Reading database ... 9737 files and directories currently installed.)
Preparing to replace libc-bin 2.15-0ubuntu10 (using .../libc-bin_2.15-0ubuntu10.5_amd64.deb) ...
Unpacking replacement libc-bin ...
Setting up libc-bin (2.15-0ubuntu10.5) ...
(Reading database ... 9737 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.5_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.5) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package libgmp10.
(Reading database ... 9737 files and directories currently installed.)
Unpacking libgmp10 (from .../libgmp10_2%3a5.0.2+dfsg-2ubuntu1_amd64.deb) ...
Selecting previously unselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package libmpfr4.
Unpacking libmpfr4 (from .../libmpfr4_3.1.0-3ubuntu2_amd64.deb) ...
Selecting previously unselected package libquadmath0.
Unpacking libquadmath0 (from .../libquadmath0_4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package libmpc2.
Unpacking libmpc2 (from .../libmpc2_0.9-4_amd64.deb) ...
Selecting previously unselected package manpages.
Unpacking manpages (from .../manpages_3.35-0.1ubuntu1_all.deb) ...
Selecting previously unselected package binutils.
Unpacking binutils (from .../binutils_2.22-6ubuntu1.1_amd64.deb) ...
Selecting previously unselected package cpp-4.6.
Unpacking cpp-4.6 (from .../cpp-4.6_4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package gcc-4.6.
Unpacking gcc-4.6 (from .../gcc-4.6_4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.6.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.15-0ubuntu10.5_amd64.deb) ...
Selecting previously unselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_3.2.0-60.91_amd64.deb) ...
Selecting previously unselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.15-0ubuntu10.5_amd64.deb) ...
Selecting previously unselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu4_amd64.deb) ...
Selecting previously unselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_1.0.1-4ubuntu5.12_amd64.deb) ...
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.1-4ubuntu5.12_all.deb) ...
Selecting previously unselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.35-0.1ubuntu1_all.deb) ...
Setting up libgmp10 (2:5.0.2+dfsg-2ubuntu1) ...
Setting up libgomp1 (4.6.3-1ubuntu5) ...
Setting up libmpfr4 (3.1.0-3ubuntu2) ...
Setting up libquadmath0 (4.6.3-1ubuntu5) ...
Setting up libmpc2 (0.9-4) ...
Setting up manpages (3.35-0.1ubuntu1) ...
Setting up binutils (2.22-6ubuntu1.1) ...
Setting up cpp-4.6 (4.6.3-1ubuntu5) ...
Setting up cpp (4:4.6.3-1ubuntu5) ...
Setting up gcc-4.6 (4.6.3-1ubuntu5) ...
Setting up gcc (4:4.6.3-1ubuntu5) ...
Setting up libc-dev-bin (2.15-0ubuntu10.5) ...
Setting up linux-libc-dev (3.2.0-60.91) ...
Setting up libc6-dev (2.15-0ubuntu10.5) ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu4) ...
Setting up libssl-dev (1.0.1-4ubuntu5.12) ...
Setting up libssl-doc (1.0.1-4ubuntu5.12) ...
Setting up manpages-dev (3.35-0.1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

from official-images.

klaemo avatar klaemo commented on June 8, 2024

Got it working now in my existing Dockerfiles as well, probably messed up something with the package sources. Not sure what exactly.

from official-images.

tianon avatar tianon commented on June 8, 2024

Glad you got it working, and thanks for reporting back. :)

from official-images.

dzlab avatar dzlab commented on June 8, 2024

@klaemo I'm having the same problem, can you share the Dockerfile where you solved this issue?

from official-images.

klaemo avatar klaemo commented on June 8, 2024

basically it came down to removing this line:
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list

You need repos like security, updates and maybe backports in your sources. Just use what comes with the image.

from official-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.