I
I
Ismail2020-05-18 13:35:43
linux
Ismail, 2020-05-18 13:35:43

Why am I getting this error with apt-get in docker?

Good time of the day. When building the project, I get an error:

RUN apt-get clean  && apt-get update

E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.


Why am I getting an error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
anikavoi, 2020-05-18
@gosugod

Because translate.google.com!
In the same English and white it says: Unsigned file is invalid
You missed this step:
Add Docker's official GPG key:
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
$ apt update
https://docs.docker.com/engine/install/debian/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question