Tag: apt get

我怎样才能在docker文件中安装Python的Python?

我有我自己的dockerfile,它使用gdal和其他几个包创build一个图像: FROM geodata/gdal:2.1.2 USER root RUN apt-get update && apt-get install -y \ build-essential \ gfortran \ libatlas-base-dev \ python-pip \ python-dev \ libxft-dev libfreetype6 libfreetype6-dev RUN apt-get install -y python-tk RUN pip install \ numpy \ matplotlib \ scipy \ click \ Pillow \ scikit-image \ Cython \ packaging RUN apt-get install -y liblas-c3 […]

在Ubuntu 16上安装R语言 – 未满足的依赖关系

按照站点上的说明安装R语言[ here ]。 在安装过程中,我使用apt-get install命令在r-base组件上收到一个错误“ unmet dependencies ”。 按照以下命令序列查看日志: apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 Executing: /tmp/tmp.QQyv0HB7mS/gpg.1.sh –keyserver keyserver.ubuntu.com –recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com gpg: key E084DAB9: "Michael Rutter <marutter@gmail.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 /data/shared/datascience# add-apt-repository 'deb [arch=s390x] https://cran.rstudio.com/bin/linux/ubuntu xenial/' apt-get update Hit:1 https://cran.rstudio.com/bin/linux/ubuntu […]

为什么在Dockerfile构build过程中apt-get exit没有错误?

出于某种原因,我一直无法完成一个docker build没有进程停止,没有提供错误。 我一直在search,没有人似乎有同样的问题。 我正在使用的Dockerfileconfiguration的第一个(和显着的)部分: FROM java:8-jre ENV DEBIAN_FRONTEND noninteractive # Install needed packages RUN apt-get update RUN apt-get install -y \ cron 我用来执行构build(build.cmd)的命令: @ECHO OFF docker –debug –log-level debug build . ^ –build-arg http_proxy=%http_proxy% ^ –build-arg https_proxy=%https_proxy% ^ –build-arg no_proxy=%no_proxy% ^ –tag "bravura/jfrog-mission-control:latest" ^ %* 运行它的结果: Sending build context to Docker daemon 133.9MB Step 1/7 […]

Docker的apt-get更新不起作用

当我运行docker run –rm ubuntu apt-get update ,我有我的笔记本电脑上的这个错误。 但命令docker run –rm debian:jessie ping -c 5 google.com工作正常。 Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.152). – connect (111: Connection refused) [IP: 91.189.88.152 80] Err:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Unable to connect to archive.ubuntu.com:http: [IP: 91.189.88.152 80] Err:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Unable to connect to archive.ubuntu.com:http: [IP: […]

恢复apt-get update(在docker容器中)

我正在与docker工作,并希望创build一个最小的新层,通过安装一个应用程序在Ubuntu的图像顶部的zip文件。 Ubuntu的映像既没有安装wget也没有解压缩,所以我通过使用apt-get来安装,这需要apt-get update docker run -it –name app_container ubuntu:latest # now i have terminal access to the fresh app_container # install wget and unzip apt-get update apt-get install wget -y apt-get install unzip -y # download and unpack the app # … # remove wget and unzip apt-get purge unzip apt-get purge wget # i […]

为什么apt-get更新在Docker容器内失败?

在这个网站上也有类似的问题,但是我的问题与OSX Docker客户端(版本1.11.1-beta13.1(build:8193)e9f58bbe60f0debccc097b7d27cad200556ec6f5)有关。 当从debian:jessie容器运行apt-get update ,我得到以下输出: Err http://httpredir.debian.org jessie InRelease Err http://httpredir.debian.org jessie-updates InRelease Err http://security.debian.org jessie/updates InRelease Err http://httpredir.debian.org jessie Release.gpg Could not resolve 'httpredir.debian.org' Err http://security.debian.org jessie/updates Release.gpg Could not resolve 'security.debian.org' Err http://httpredir.debian.org jessie-updates Release.gpg Could not resolve 'httpredir.debian.org' Reading package lists… W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease W: […]

在docker容器中安装openssh-server,g ++,gdb和gdbserver Visual C ++ for Linux Development + Docker

我想在Docker容器中安装Visual C ++ for Linux Development的依赖关系,即openssh-server , g++ , gdb和gdbserver 。 我运行一个基于Ubuntu镜像的docker容器我已经尝试过ubuntu:14.04 , ubuntu:12.04和ubuntu:latest 。 我以交互模式运行容器并使用bash尝试安装依赖项。 上面链接的Visual C ++ for Linux页面表明依赖关系可以安装在… sudo apt-get install openssh-server g++ gdb gdbserver 不过,我安装时遇到了问题。 例如,当我尝试安装gdb我得到一个错误,指出该包无法find… root@f6de8c642ffa:/# apt-get install gdb Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package gdb 我也尝试用sudo加前缀,没有运气。 我得到类似的错误的其他包,除了我相信安装的g ++。 我假设这些用于C […]

Docker RUN apt-get -y update && apt-get install -y fortune

试图build立我自己的docker,有一个小问题,这里是我在跟随在Docker的教程的日志。 FROM docker/whalesay:lateset RUN apt-get -y update && apt-get install -y fortunes CMD /usr/games/fortune -a | cowsay 运行apt-get后发生这种情况… W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_source_Sources.gz is not what the server reported 213537 7925687 W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages.gz is not what the server reported 11688 7588885 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Hash Sum mismatch W: Failed to […]

在dockerfile中绕过安assembly置

我想在Ubuntu Docker容器上安装icinga2-ido-pgsql。 我的数据库在一个单独的容器中。 要安装它,我运行 RUN apt-get install -q -y icinga2 icinga2-ido-pgsql 当安装icinga2-ido-pgsql时,它运行dbconfig-common,它提示提示。 Configure database for icinga2-ido-pgsql with dbconfig-common? [yes/no] 然后,这给我一个错误的负载,因为它是默认为是,我没有运行交互式terminal。 我想说不,手动做的事情,但我不知道如何通过我的dockerfile得到这个行为

Dockerhub无法构build我的Dockerfile

我做了一个在我的机器上效果很好的Dockerfile,但是构build在dockerhub上失败了。 dockerhub错误是: Build failed: The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl gcc libc6-dev libc6 –no-install-recommends && exit 0' returned a non-zero code: 1 该步骤可以在我的(ARM)机器上生成,但是它会产生一个警告: debconf: delaying package configuration, since apt-utils is not installed (我无法保持沉默,尝试了解其他人的修复) 。 这里是dockerhub构build(包括Dockerfile和错误): https ://hub.docker.com/r/askmike/golang-arm/builds/bnc9b3xqgedfbeboix2ezv4/ 问题1:如果有来自apt-get的警告,那么认为构build失败了吗? (我无法find返回码是什么)。 问题2:在dockerhub构build中是否有可能在我的机器上没有发生另一个错误? 如果是这样,我怎么能解决这个问题?