Skip to content

E: Unable to locate package libzip-dev #53

Open

Description

@mhmmuneef

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

Activity

  1. rgvillanueva28 commented on Sep 15, 2023

    @rgvillanueva28

    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
    
  2. ridwan-muhamad commented on Feb 10, 2024

    @ridwan-muhamad

    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

  3. AirSupplyaLL commented on Mar 17, 2024

    @AirSupplyaLL

    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

  4. mhmmuneef commented on Aug 16, 2024

    @mhmmuneef
    Author

    Please reinstall and install vapi again.

  5. radopeti commented on Sep 14, 2024

    @radopeti

    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

  6. shivachaitanyareddy commented on Apr 1, 2025

    @shivachaitanyareddy

    When i try to compose the docker file, it up with below response:

    sudo docker-compose up -d
    [sudo] password for kali:
    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.
    Creating network "vapi_default" with the default driver
    Creating vapi_db_1 ... done
    Creating vapi_phpmyadmin_1 ... done
    Creating vapi_www_1 ... done

    When i access the localhost/vapi -----> i face an error as (SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 3 of the JSON data)

    localhost:8000/

    All the above are not working to get the documentation, can someone help me out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions