roottusk / vapi

vAPI is Vulnerable Adversely Programmed Interface which is Self-Hostable API that mimics OWASP API Top 10 scenarios through Exercises.
GNU General Public License v3.0
1.17k stars 303 forks source link

E: Unable to locate package libzip-dev #53

Open mhmmuneef opened 1 year ago

mhmmuneef commented 1 year ago

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

rgvillanueva28 commented 1 year ago

Experiencing the same.

Here's the output for reference:

$ 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
 ---> d78e61c10eb5
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 17e76026bb4d
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Ign:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [17.5 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [246 kB]
Fetched 8655 kB in 27s (326 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libzip4 zlib1g-dev
The following NEW packages will be installed:
  libzip-dev libzip4 zlib1g-dev
0 upgraded, 3 newly installed, 0 to remove and 38 not upgraded.
Need to get 409 kB of archives.
After this operation, 1071 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libzip4 amd64 1.7.3-1 [55.4 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2+deb11u2 [191 kB]
Err:3 http://deb.debian.org/debian bullseye/main amd64 libzip-dev amd64 1.7.3-1
  403  authenticationrequired [IP: 199.232.46.132 80]
Fetched 247 kB in 3s (89.3 kB/s)
E: Failed to fetch http://deb.debian.org/debian/pool/main/libz/libzip/libzip-dev_1.7.3-1_amd64.deb  403  authenticationrequired [IP: 199.232.46.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                                                                     
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
muhamad-ridwant-tech commented 8 months ago

Are u still facing the problem ? Try this one

RUN apt-get update && apt-get install -y zip libzip-dev
RUN docker-php-ext-configure zip
RUN docker-php-ext-install zip

Hope it's help you !

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

AirSupplyaLL commented 7 months ago

I am also facing this issue now. May I ask do you mean to modify the Dockerfile in this project

$ 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
 ---> d78e61c10eb5
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 17e76026bb4d
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Ign:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [17.5 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [246 kB]
Fetched 8655 kB in 27s (326 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libzip4 zlib1g-dev
The following NEW packages will be installed:
  libzip-dev libzip4 zlib1g-dev
0 upgraded, 3 newly installed, 0 to remove and 38 not upgraded.
Need to get 409 kB of archives.
After this operation, 1071 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libzip4 amd64 1.7.3-1 [55.4 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2+deb11u2 [191 kB]
Err:3 http://deb.debian.org/debian bullseye/main amd64 libzip-dev amd64 1.7.3-1
  403  authenticationrequired [IP: 199.232.46.132 80]
Fetched 247 kB in 3s (89.3 kB/s)
E: Failed to fetch http://deb.debian.org/debian/pool/main/libz/libzip/libzip-dev_1.7.3-1_amd64.deb  403  authenticationrequired [IP: 199.232.46.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                                                                     
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

Are u still facing the problem ? Try this one

RUN apt-get update && apt-get install -y zip libzip-dev
RUN docker-php-ext-configure zip
RUN docker-php-ext-install zip

Hope it's help you !

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

mhmmuneef commented 2 months ago

Please reinstall and install vapi again.

radopeti commented 1 month ago

I faced with the same issue. I wasn't able to run vapi with docker-compose on kali virtual machine. This might help: https://stackoverflow.com/questions/51034120/docker-could-not-resolve-deb-debian-org