Skip to content

Connection failed #2

@yonghui-git

Description

@yonghui-git

By following the README.md and running the docker build command docker build . -f .\wslsp.Dockerfile -t wslsp, there are multiple failures which seem caused by connecting to http://security.ubuntu.com/ubuntu. Can anyone share ideas how to debug/resolve this failure?

The build log message is below:

628.2 Get:565 http://archive.ubuntu.com/ubuntu focal/universe amd64 node-slide all 1.1.6-2 [6328 B]
643.3 Get:566 http://archive.ubuntu.com/ubuntu focal/universe amd64 npm all 6.14.4+ds-1ubuntu2 [583 kB]
643.3 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.31-0ubuntu9.16_amd64.deb  Connection failed [IP: 185.125.190.81 80]
643.3 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jre-headless_11.0.25+9-1ubuntu1~20.04_amd64.deb  Connection failed [IP: 185.125.190.82 80]
643.3 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
643.3 Fetched 213 MB in 10min 40s (332 kB/s)
------

 1 warning found (use docker --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 34)
wslsp.Dockerfile:7
--------------------
   5 |     RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
   6 |     RUN apt-get update
   7 | >>> RUN apt-get -y install default-jdk dos2unix nodejs npm
   8 |
   9 |     # Create directory
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -y install default-jdk dos2unix nodejs npm" did not complete successfully: exit code: 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions