moby: 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file

Description

Following the install instructions , I cannot get passed the apt-get updatestep. The update consistently fail with this error: W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.

Here is the relevant part of the output. Notice bad header line.

Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Err:11 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
  Bad header line
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Reading package lists... Done
W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/Packages  Bad header line
E: Some index files failed to download. They have been ignored, or old ones used instead.

I’ve spent hours crawling through the other similar issues online, nothing helped. The part that is unique to my issue, from what I’ve seen online, is the “bad header line” part

I’ve tried on fresh Aliyun Ubuntu 14.04 and 16.04 instances. All yield the same results.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (8 by maintainers)

Most upvoted comments

I got the same problem, and also on Aliyun Ubuntu 16.04 amd64.

It seems it is the problem with aliyun mirror, and I solved this problem by removing Acquire::http::Proxy "http://mirrors.aliyun.com/"; in /etc/apt/apt.conf

Reference: https://gist.github.com/llgxvi/19d1666a7f0b5d8d9237707daf479120

I think it’s accessible without SSL as well (there’s also a mirror in china that’s provided by Azure; https://github.com/docker/docker/blob/v1.13.1/hack/install.sh#L37-L56 - see https://github.com/docker/docker/pull/27005)