我正在尝试为实验室安装 Vapi,但出现了此错误。安装了 docker 并尝试了一些页面来解决问题。不起作用。
sudo docker-compose up -d
WARNING: The APP_NAME variable is not set. Defaulting to a blank string.
WARNING: The PUSHER_APP_KEY variable is not set. Defaulting to a blank string.
WARNING: The PUSHER_APP_CLUSTER variable is not set. Defaulting to a blank string.
Building www
Sending build context to Docker daemon 74.49MB
Step 1/9 : FROM php:7.4-apache
---> 20a3732f422b
Step 2/9 : RUN docker-php-ext-install mysqli pdo_mysql
---> Using cache
---> f44840befe91
Step 3/9 : RUN apt-get update && apt-get install -y libzip-dev && apt-get install -y zlib1g-dev && rm -rf /var/lib/apt/lists/* && docker-php-ext-install zip
---> Running in 8a38439962a0
Err:1 http://deb.debian.org/debian bullseye InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bullseye-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libzip-dev
The command '/bin/sh -c apt-get update && apt-get install -y libzip-dev && apt-get install -y zlib1g-dev && rm -rf /var/lib/apt/lists/* && docker-php-ext-install zip' returned a non-zero code: 100
ERROR: Service 'www' failed to build : Build failed
有什么想法可以解决此问题吗?我该如何安装 Vapi?:D
答案1
我发布这个只是因为有些人可能需要它。重新启动docker服务并确保你的DNS是8.8.8.8
要重新启动docker,请使用:
sudo service docker restart