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

Jessie debian image doesn't work anymore due to changes in the mirror network #1

Closed
Vadorequest opened this issue Apr 9, 2019 · 3 comments

Comments

@Vadorequest
Copy link

Running the following (I tried to compile for node 6.10.3):

./auto/package
+ export NODE_VERSION=6.10.3
+ NODE_VERSION=6.10.3
+ export SHA256=faddbe418064baf2226c2fcbd038c3ef4ae6f936eb952a1138c7ff8cfe862438
+ SHA256=faddbe418064baf2226c2fcbd038c3ef4ae6f936eb952a1138c7ff8cfe862438
+++ dirname ./auto/package
++ cd ./auto
++ pwd
+ DIR=/Users/vadorequest/dev/aws-lambda-node-runtime/auto
+ cd /Users/vadorequest/dev/aws-lambda-node-runtime/auto/..
+ docker-compose build
Building package
Step 1/2 : FROM node:10.14.0-slim@sha256:5aaef0bf16a700696c76e0902241aef6f4067e7e13255bddab835080b4a8ed1b
sha256:5aaef0bf16a700696c76e0902241aef6f4067e7e13255bddab835080b4a8ed1b: Pulling from library/node
a92a4af0fb9c: Pull complete
ca548e841944: Pull complete
7d9b18497123: Pull complete
f9cebcc3b850: Pull complete
93c1ded7fca2: Pull complete
Digest: sha256:5aaef0bf16a700696c76e0902241aef6f4067e7e13255bddab835080b4a8ed1b
Status: Downloaded newer image for node:10.14.0-slim@sha256:5aaef0bf16a700696c76e0902241aef6f4067e7e13255bddab835080b4a8ed1b
 ---> f7c1977f9320
Step 2/2 : RUN apt-get update && apt-get install -y p7zip-full curl xz-utils && apt-get clean all
 ---> Running in b9394694d065
Ign http://deb.debian.org jessie InRelease
Get:1 http://deb.debian.org jessie-updates InRelease [7340 B]
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:3 http://deb.debian.org jessie Release.gpg [2420 B]
Get:4 http://deb.debian.org jessie Release [148 kB]
Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [825 kB]
W: Failed to fetch http://deb.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.
Fetched 10.1 MB in 5s (1819 kB/s)
ERROR: Service 'package' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y p7zip-full curl xz-utils && apt-get clean all' returned a non-zero code: 100

The issue seems to be due to a very recent change made in March 2019, see https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository

@Vadorequest
Copy link
Author

Vadorequest commented Apr 9, 2019

Well, it seems to be related to the Docker image itself, I'm not sure how to proceed to work around the issue.

https://www.reddit.com/r/docker/comments/baunkt/failed_to_fetch/
nodejs/docker-node#1013

@Vadorequest
Copy link
Author

Vadorequest commented Apr 9, 2019

Workaround (update the Dockerfile), I basically used a new node image which benefits from the update.
I want to build a runtime for node 6.10.3, but using a node 10.15.3 image, don't know if that may cause issue, if you have any advice.

FROM node:10.15.3-jessie

RUN apt-get update && apt-get install -y p7zip-full curl xz-utils && apt-get clean all

From nodejs/docker-node#1013 (comment)

@janaz
Copy link
Owner

janaz commented Apr 9, 2019

Thanks for bringing it up! I'm pushing a fix with the new base image as you suggested

@janaz janaz closed this as completed in e660779 Apr 9, 2019
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

2 participants