Skip to content

Use Debian instead of Ubuntu (Docker build fail: ubuntu:eoan got apt 404) #2114

@huan

Description

@huan
$ docker build --rm -t wechaty:artifact .
Sending build context to Docker daemon  12.21MB
Step 1/22 : FROM ubuntu:eoan
 ---> dcbcfdcd50bb
Step 2/22 : LABEL maintainer="Huan LI (李卓桓) <zixia@zixia.net>"
 ---> Using cache
 ---> b2af5f978513
Step 3/22 : ENV DEBIAN_FRONTEND     noninteractive
 ---> Using cache
 ---> 952d16787965
Step 4/22 : ENV WECHATY_DOCKER      1
 ---> Using cache
 ---> 33dc97906e2a
Step 5/22 : ENV LC_ALL              C.UTF-8
 ---> Using cache
 ---> 23b9c85cffbd
Step 6/22 : ENV NODE_ENV            $NODE_ENV
 ---> Using cache
 ---> c861f5f45fb1
Step 7/22 : ENV NPM_CONFIG_LOGLEVEL warn
 ---> Using cache
 ---> 16d5028e244d
Step 8/22 : RUN apt-get update   && apt-get install -y --no-install-recommends     apt-utils     autoconf     automake     bash     build-essential     ca-certificates     curl     coreutils     ffmpeg     figlet     git     gnupg2     jq     libgconf-2-4     libtool     moreutils     python-dev     shellcheck     sudo     tzdata     vim     wget     libxtst6   && apt-get purge --auto-remove   && rm -rf /tmp/* /var/lib/apt/lists/*
 ---> Running in 3ac001fcb72c
Ign:1 http://archive.ubuntu.com/ubuntu eoan InRelease
Ign:2 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
Ign:3 http://security.ubuntu.com/ubuntu eoan-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
Err:5 http://security.ubuntu.com/ubuntu eoan-security Release
  404  Not Found [IP: 91.189.91.38 80]
Err:6 http://archive.ubuntu.com/ubuntu eoan Release
  404  Not Found [IP: 91.189.88.142 80]
Err:7 http://archive.ubuntu.com/ubuntu eoan-updates Release
  404  Not Found [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu eoan-backports Release
  404  Not Found [IP: 91.189.88.142 80]
Reading package lists...
E: The repository 'http://security.ubuntu.com/ubuntu eoan-security Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan-backports Release' does not have a Release file.
The command '/bin/sh -c apt-get update   && apt-get install -y --no-install-recommends     apt-utils     autoconf     automake     bash     build-essential     ca-certificates     curl     coreutils     ffmpeg     figlet     git     gnupg2     jq     libgconf-2-4     libtool     moreutils     python-dev     shellcheck     sudo     tzdata     vim     wget     libxtst6   && apt-get purge --auto-remove   && rm -rf /tmp/* /var/lib/apt/lists/*' returned a non-zero code: 100

Related Links:

  1. https://stackoverflow.com/q/62028180/1123955
  2. https://github.com/wechaty/wechaty/runs/1563113647?check_suite_focus=true#step:6:66

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions