生成错误。无法获取http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages [英] Build Error. Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages

查看:2628
本文介绍了生成错误。无法获取http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法找到jq的构建错误。

Build Errors unable to find jq.

Err http:/ /deb.debian.org jessie / main amd64软件包
404未找到
错误 http: //deb.debian.org jessie-updates / main amd64软件包
404未找到
以2s的速度获取了723 kB(357 kB / s)
W:无法获取< a href = http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages rel = noreferrer> http://deb.debian.org/debian/dists/jessie/ main / binary-amd64 / Packages 404未找到

Err http://deb.debian.org jessie/main amd64 Packages 404 Not Found Err http://deb.debian.org jessie-updates/main amd64 Packages 404 Not Found Fetched 723 kB in 2s (357 kB/s) W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found

W:未能获取 http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 找不到404

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found

E:某些索引文件下载失败。

$ apt-get install jq

阅读软件包列表...

建立依赖关系树...

读取状态信息...

E:无法找到软件包jq

错误:作业失败:退出代码1

E: Some index files failed to download. They have been ignored, or old ones used instead.
$ apt-get install jq
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package jq
ERROR: Job failed: exit code 1

推荐答案

@codinghaus在另一个线程中提到:

@codinghaus mentioned in another thread:


这是由于事实上,作为Wheezy和Jessie的
最近已集成到archive.debian.org结构中,我们从今天开始从镜像网络中删除Jessie的所有Wheezy和所有非LTS架构。

This is due to the fact that as Wheezy and Jessie have been integrated into the archive.debian.org structure recently, we are now removing all of Wheezy and all non-LTS architectures of Jessie from the mirror network starting today.

一种解决方案(根据 https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476616579 )是在调用任何apt之前将以下命令添加到Dockerfile中-获取更新时间使用debian:jessie。

A solution (according to https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476616579) is to add the following command into your Dockerfile before calling any apt-get update when using debian:jessie.

RUN sed -i '/jessie-updates/d' /etc/apt/sources.list  # Now archived

这将从sources.list中删除jessie-updates存储库(现在会导致404)。 。

This will remove the jessie-updates repository (which now causes the 404) from sources.list.

FROM debian:jessie
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list  # Now archived
RUN apt-get update
CMD /bin/sh

这篇关于生成错误。无法获取http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆