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

Docker installation fails #318

Open
matiaslopezd opened this issue Mar 29, 2023 · 2 comments
Open

Docker installation fails #318

matiaslopezd opened this issue Mar 29, 2023 · 2 comments

Comments

@matiaslopezd
Copy link

Hi! I'm trying to install with docker, but I don't understand if the Debian repo server it's failing now or if something is not working.

root:~/dalai$ sudo docker compose run dalai npx dalai alpaca install 7B
[+] Running 1/0
 ✔ Network dalai_default  Created                                                                         0.0s 
[+] Building 722.3s (5/10)                                                                                     
 => [internal] load .dockerignore                                                                         0.0s
 => => transferring context: 2B                                                                           0.0s
 => [internal] load build definition from Dockerfile                                                      0.0s
 => => transferring dockerfile: 681B                                                                      0.0s
 => [internal] load metadata for docker.io/library/python:3.10-slim-buster                                0.3s
 => CACHED [1/7] FROM docker.io/library/python:3.10-slim-buster@sha256:6ba3f89c82d17db0a71fc56d553e5d251  0.0s
 => ERROR [2/7] RUN apt-get update     && apt-get install -y         build-essential         curl       722.0s
------                                                                                                         
 > [2/7] RUN apt-get update     && apt-get install -y         build-essential         curl         g++  git         make         python3-venv         software-properties-common:                                             
#0 0.295 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                          
#0 30.38 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                          
#0 60.46 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                          
#0 90.52 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 120.6 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 150.7 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 180.8 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 210.9 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 240.9 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 301.1 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#0 331.1 Err:1 http://deb.debian.org/debian buster InRelease
#0 331.1   Connection failed [IP: 199.232.30.132 80]
#0 331.1 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
#0 361.2 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
#0 451.4 Err:2 http://deb.debian.org/debian-security buster/updates InRelease
#0 451.4   Connection failed [IP: 199.232.30.132 80]
#0 451.4 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 481.5 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 511.5 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 541.6 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 571.6 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 601.7 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 631.8 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 691.9 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
#0 722.0 Err:3 http://deb.debian.org/debian buster-updates InRelease
#0 722.0   Connection failed [IP: 199.232.30.132 80]
#0 722.0 Reading package lists...
#0 722.0 W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Connection failed [IP: 199.232.30.132 80]
#0 722.0 W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease  Connection failed [IP: 199.232.30.132 80]
#0 722.0 W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Connection failed [IP: 199.232.30.132 80]
#0 722.0 W: Some index files failed to download. They have been ignored, or old ones used instead.
#0 722.0 Reading package lists...
#0 722.0 Building dependency tree...
#0 722.0 Reading state information...
#0 722.0 E: Unable to locate package build-essential
#0 722.0 E: Unable to locate package curl
#0 722.0 E: Unable to locate package git
#0 722.0 E: Unable to locate package make
#0 722.0 E: Unable to locate package python3-venv
#0 722.0 E: Unable to locate package software-properties-common
------
failed to solve: process "/bin/sh -c apt-get update     && apt-get install -y         build-essential         curl         g++ \tgit         make         python3-venv         software-properties-common" did not complete successfully: exit code: 100

System info

root:~/dalai$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal

Does someone have the same issue?

@fkarg
Copy link

fkarg commented Mar 30, 2023

Hey, I had a similar issue earlier. This is a network issue, not related to dalai. I solved it by connecting with a different network. Though I didn't debug it further, I suspect it couldn't resolve / connect to some IPs due to firewall rules of the network -- your case seems similar.

@darkterminal
Copy link

I've same issue i solve with this solutions:

Specifying a DNS server for docker containers helped me.

Create a /etc/docker/daemon.json file with this content:

{
  "dns": ["8.8.8.8", "8.8.4.4"]
}

and restart the docker service:

sudo service docker restart

Ref: Docker: Temporary failure resolving 'deb.debian.org'

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

3 participants