Support the ongoing development of Laravel.io →
Laravel Sail Installation

I'm creating a new Laravel project using docker and sail, I'm on Windows 10, I have enabled WSL 2 and all that was required in the docs, but after I create the Laravel project in the ubuntu shell (Ubuntu 20.04), and build sail using the following command:

./vendor/bin/sail up

I get the following:

[+] Running 0/1
 ⠿ laravel.test Error                                                                                                      10.8s
[+] Building 223.2s (9/16)
 => [internal] load build definition from Dockerfile                                                                        0.5s
 => => transferring dockerfile: 32B                                                                                         0.1s
 => [internal] load .dockerignore                                                                                           0.7s
 => => transferring context: 2B                                                                                             0.0s
 => [internal] load metadata for docker.io/library/ubuntu:21.04                                                            17.2s
 => [auth] library/ubuntu:pull token for registry-1.docker.io                                                               0.0s
 => [ 1/11] FROM docker.io/library/ubuntu:21.04@sha256:ba394fabd516b39ccf8597ec656a9ddd7d0a2688ed8cb373ca7ac9b6fe67848f   114.9s
 => => resolve docker.io/library/ubuntu:21.04@sha256:ba394fabd516b39ccf8597ec656a9ddd7d0a2688ed8cb373ca7ac9b6fe67848f       0.3s
 => => sha256:ba394fabd516b39ccf8597ec656a9ddd7d0a2688ed8cb373ca7ac9b6fe67848f 1.42kB / 1.42kB                              0.0s
 => => sha256:cb92f03e258f965442b883f5402b310dd7a5ea0a661a865ad02a42bc21234bf7 529B / 529B                                  0.0s
 => => sha256:7cc39f89fa5894d41b5fe108edc8d606ff850fc93ebb1727e25368cf76455004 1.46kB / 1.46kB                              0.0s
 => => sha256:6f172cdbcbefcebd1e06708f01ce8850613686821fc603db67efc9832d59ae35 31.70MB / 31.70MB                          110.2s
 => => extracting sha256:6f172cdbcbefcebd1e06708f01ce8850613686821fc603db67efc9832d59ae35                                   2.4s
 => [internal] load build context                                                                                           1.0s
 => => transferring context: 870B                                                                                           0.1s
 => [ 2/11] WORKDIR /var/www/html                                                                                           2.0s
 => [ 3/11] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone                                  4.2s
 => ERROR [ 4/11] RUN apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor s  82.7s
------
 > [ 4/11] RUN apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2     && mkdir -p ~/.gnupg     && chmod 600 ~/.gnupg     && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C     && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list     && apt-get update     && apt-get install -y php8.1-cli php8.1-dev        php8.1-pgsql php8.1-sqlite3 php8.1-gd        php8.1-curl        php8.1-imap php8.1-mysql php8.1-mbstring        php8.1-xml php8.1-zip php8.1-bcmath php8.1-soap        php8.1-intl php8.1-readline        php8.1-ldap        php8.1-msgpack php8.1-igbinary php8.1-redis php8.1-swoole        php8.1-memcached php8.1-pcov php8.1-xdebug     && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer     && curl -sL https://deb.nodesource.com/setup_16.x | bash -     && apt-get install -y nodejs     && npm install -g npm     && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install -y yarn     && apt-get install -y mysql-client     && apt-get install -y postgresql-client     && apt-get -y autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*:
#8 3.613 Get:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]
#8 4.564 Get:2 http://archive.ubuntu.com/ubuntu hirsute InRelease [269 kB]
#8 4.694 Get:3 http://security.ubuntu.com/ubuntu hirsute-security/restricted amd64 Packages [122 kB]
#8 5.177 Get:4 http://security.ubuntu.com/ubuntu hirsute-security/multiverse amd64 Packages [3643 B]
#8 5.178 Get:5 http://security.ubuntu.com/ubuntu hirsute-security/universe amd64 Packages [287 kB]
#8 5.677 Get:6 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]
#8 8.838 Get:7 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]
#8 9.344 Get:8 http://security.ubuntu.com/ubuntu hirsute-security/main amd64 Packages [250 kB]
#8 19.47 Get:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages [16.8 MB]
#8 58.56 Ign:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.53 Ign:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.67 Ign:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.70 Ign:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.70 Ign:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.71 Ign:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 81.72 Ign:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 81.72 Ign:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 81.73 Ign:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 81.74 Ign:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.75 Ign:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.75 Ign:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.77 Ign:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.78 Ign:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.78 Ign:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 81.79 Ign:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 81.80 Ign:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 81.80 Ign:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 81.81 Ign:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.81 Ign:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.82 Ign:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.82 Ign:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.84 Ign:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.85 Ign:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 81.87 Ign:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 81.88 Ign:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 81.88 Ign:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 81.89 Ign:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.89 Ign:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.91 Ign:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.91 Ign:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.92 Ign:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.92 Ign:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 81.92 Ign:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 81.92 Ign:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 81.93 Ign:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 81.93 Ign:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.94 Ign:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.95 Ign:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.95 Ign:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.95 Ign:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.96 Ign:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 81.97 Ign:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 81.97 Ign:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 81.98 Ign:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 81.98 Err:9 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
#8 81.98   Error reading from server. Remote end closed connection [IP: 91.189.88.142 80]
#8 81.98 Err:10 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
#8 81.98   Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.88.142). - connect (111: Connection refused) [IP: 91.189.88.152 80]
#8 81.99 Err:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
#8 81.99   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 81.99 Err:12 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
#8 81.99   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 81.99 Err:13 http://archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
#8 81.99   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.02 Err:14 http://archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
#8 82.02   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.02 Err:15 http://archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
#8 82.03   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.03 Err:16 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
#8 82.03   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.04 Err:17 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 Packages
#8 82.04   Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.04 Fetched 1258 kB in 1min 19s (15.9 kB/s)
#8 82.04 Reading package lists...
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute/universe/binary-amd64/Packages  Error reading from server. Remote end closed connection [IP: 91.189.88.142 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute/multiverse/binary-amd64/Packages  Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.88.142). - connect (111: Connection refused) [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute/main/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute/restricted/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute-updates/universe/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute-updates/multiverse/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute-updates/restricted/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute-updates/main/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hirsute-backports/universe/binary-amd64/Packages  Unable to connect to archive.ubuntu.com:80: [IP: 91.189.88.152 80]
#8 82.11 W: Some index files failed to download. They have been ignored, or old ones used instead.
#8 82.13 Reading package lists...
#8 82.17 Building dependency tree...
#8 82.18 Reading state information...
#8 82.18 Package libpng-dev is not available, but is referred to by another package.
#8 82.18 This may mean that the package is missing, has been obsoleted, or
#8 82.18 is only available from another source
#8 82.18
#8 82.18 Package libcap2-bin is not available, but is referred to by another package.
#8 82.18 This may mean that the package is missing, has been obsoleted, or
#8 82.18 is only available from another source
#8 82.18
#8 82.18 Package git is not available, but is referred to by another package.
#8 82.18 This may mean that the package is missing, has been obsoleted, or
#8 82.18 is only available from another source
#8 82.18
#8 82.18 Package gnupg is not available, but is referred to by another package.
#8 82.18 This may mean that the package is missing, has been obsoleted, or
#8 82.18 is only available from another source
#8 82.18
#8 82.18 Package unzip is not available, but is referred to by another package.
#8 82.18 This may mean that the package is missing, has been obsoleted, or
#8 82.18 is only available from another source
#8 82.18
#8 82.18 E: Package 'gnupg' has no installation candidate
#8 82.18 E: Unable to locate package gosu
#8 82.18 E: Unable to locate package zip
#8 82.18 E: Package 'unzip' has no installation candidate
#8 82.18 E: Package 'git' has no installation candidate
#8 82.18 E: Unable to locate package supervisor
#8 82.18 E: Unable to locate package sqlite3
#8 82.18 E: Package 'libcap2-bin' has no installation candidate
#8 82.18 E: Package 'libpng-dev' has no installation candidate
#8 82.18 E: Unable to locate package python2
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2     && mkdir -p ~/.gnupg     && chmod 600 ~/.gnupg     && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C     && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list     && apt-get update     && apt-get install -y php8.1-cli php8.1-dev        php8.1-pgsql php8.1-sqlite3 php8.1-gd        php8.1-curl        php8.1-imap php8.1-mysql php8.1-mbstring        php8.1-xml php8.1-zip php8.1-bcmath php8.1-soap        php8.1-intl php8.1-readline        php8.1-ldap        php8.1-msgpack php8.1-igbinary php8.1-redis php8.1-swoole        php8.1-memcached php8.1-pcov php8.1-xdebug     && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer     && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash -     && apt-get install -y nodejs     && npm install -g npm     && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install -y yarn     && apt-get install -y mysql-client     && apt-get install -y postgresql-client     && apt-get -y autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*]: exit code: 100

I'm running Windows 10, I've tried searching on different forums, but they are mostly MacOS related.

Last updated by @instabash 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jude lobo instabash Joined 4 Feb 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.