gpt4 book ai didi

docker - W:无法获取http://httpredir.debian.org/debian/dists/jessie-updates/InRelease找不到

转载 作者:行者123 更新时间:2023-12-02 18:43:48 24 4
gpt4 key购买 nike

我在下面的Dockerfile中找到了here:

FROM appcontainers/mysql:debian
MAINTAINER Jason C. Kwan "jason.kwan@wisc.edu"

RUN apt-get update
RUN apt-get install -y wget cpanminus build-essential libmysqlclient-dev python
RUN wget http://www.micans.org/mcl/src/mcl-latest.tar.gz
RUN tar xvf mcl-latest.tar.gz
RUN cd mcl-* && ./configure && make && make install
RUN wget http://orthomcl.org/common/downloads/software/v2.0/orthomclSoftware-v2.0.9.tar.gz
RUN tar xvf orthomclSoftware-v2.0.9.tar.gz
RUN cpanm DBI DBD::mysql
RUN mkdir diamond && cd diamond && wget http://github.com/bbuchfink/diamond/releases/download/v0.9.14/diamond-linux64.tar.gz && tar xvf diamond-linux64.tar.gz
RUN rm *.tar.gz

COPY my.cnf /etc/mysql/
COPY run_orthomcl.py /bin/
ENV PATH="/diamond:/orthomclSoftware-v2.0.9/bin:${PATH}"

在构建阶段,出现以下错误:
$ docker build -t orthomcl_docker . 
Sending build context to Docker daemon 95.23kB
Step 1/15 : FROM appcontainers/mysql:debian
debian: Pulling from appcontainers/mysql
e80d11fe101a: Pull complete
125a38e742bc: Pull complete
8900111cfb5b: Pull complete
8d736c21b481: Pull complete
3d0796a1857b: Pull complete
158bbfe64bb1: Pull complete
3e3a4a0e9680: Pull complete
ed389ac8eaad: Pull complete
8c74473c64df: Pull complete
Digest: sha256:df4892c59ffea2dee490c140fcc4a6b0e0c8f5b030d246e9a020d0713c1d986a
Status: Downloaded newer image for appcontainers/mysql:debian
---> 2f3334384d52
Step 2/15 : MAINTAINER Jason C. Kwan "jason.kwan@wisc.edu"
---> Running in 98824b90f29f
Removing intermediate container 98824b90f29f
---> 466abf48a731
Step 3/15 : RUN apt-get update
---> Running in 330f1f153798
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [7340 B]
Get:3 http://httpredir.debian.org jessie Release.gpg [2420 B]
Get:4 http://httpredir.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [829 kB]
Get:6 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 12s (838 kB/s)
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100

我错过了什么?

先感谢您,

最佳答案

我最近也遇到了同样的问题,我找到了这个solution
解决方案中的一些快速摘要:

RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update

但是,就我而言,我的 .dockerfileinstall.sh一起使用,上述解决方案给了我一个新错误:“发行文件已过期,需要添加此 extra line:
RUN echo 'Acquire::Check-Valid-Until no;' > /etc/apt/apt.conf.d/99no-check-valid-until

关于docker - W:无法获取http://httpredir.debian.org/debian/dists/jessie-updates/InRelease找不到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55911831/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com