Seems alot of people are getting that error these past 2 days. Check for other posts about sail and you will see the same error. No one has found a fix yet
sail build fails
hi guys, when i run sail build --no-cache i get the following error, does anyone know what Im doing wrong?keep in my mind that i've built the docker image with sail successfully on this project many times, I tried to do a new build because I wanted to change the host address and port, but even reverting back to the old values, it still wont build
#7 115.5 Reading state information...
#7 116.0 E: Unable to locate package php8.0-cli
#7 116.0 E: Couldn't find any package by glob 'php8.0-cli'
#7 116.0 E: Couldn't find any package by regex 'php8.0-cli'
#7 116.0 E: Unable to locate package php8.0
#7 116.0 E: Couldn't find any package by glob 'php8.0'
#7 116.0 E: Couldn't find any package by regex 'php8.0'
#7 116.0 E: Unable to locate package php8.0-pgsql
#7 116.0 E: Couldn't find any package by glob 'php8.0-pgsql'
#7 116.0 E: Couldn't find any package by regex 'php8.0-pgsql'
#7 116.0 E: Unable to locate package php8.0-sqlite3
#7 116.0 E: Couldn't find any package by glob 'php8.0-sqlite3'
#7 116.0 E: Couldn't find any package by regex 'php8.0-sqlite3'
#7 116.0 E: Unable to locate package php8.0-gd
#7 116.0 E: Couldn't find any package by glob 'php8.0-gd'
#7 116.0 E: Couldn't find any package by regex 'php8.0-gd'
#7 116.0 E: Unable to locate package php8.0-curl
#7 116.0 E: Couldn't find any package by glob 'php8.0-curl'
#7 116.0 E: Couldn't find any package by regex 'php8.0-curl'
#7 116.0 E: Unable to locate package php8.0-memcached
#7 116.0 E: Couldn't find any package by glob 'php8.0-memcached'
#7 116.0 E: Couldn't find any package by regex 'php8.0-memcached'
#7 116.0 E: Unable to locate package php8.0-imap
#7 116.0 E: Couldn't find any package by glob 'php8.0-imap'
#7 116.0 E: Couldn't find any package by regex 'php8.0-imap'
#7 116.0 E: Unable to locate package php8.0-mysql
#7 116.0 E: Couldn't find any package by glob 'php8.0-mysql'
#7 116.0 E: Couldn't find any package by regex 'php8.0-mysql'
#7 116.0 E: Unable to locate package php8.0-mbstring
#7 116.0 E: Couldn't find any package by glob 'php8.0-mbstring'
#7 116.0 E: Couldn't find any package by regex 'php8.0-mbstring'
#7 116.0 E: Unable to locate package php8.0-xml
#7 116.0 E: Couldn't find any package by glob 'php8.0-xml'
#7 116.0 E: Couldn't find any package by regex 'php8.0-xml'
#7 116.0 E: Unable to locate package php8.0-zip
#7 116.0 E: Couldn't find any package by glob 'php8.0-zip'
#7 116.0 E: Couldn't find any package by regex 'php8.0-zip'
#7 116.0 E: Unable to locate package php8.0-bcmath
#7 116.0 E: Couldn't find any package by glob 'php8.0-bcmath'
#7 116.0 E: Couldn't find any package by regex 'php8.0-bcmath'
#7 116.0 E: Unable to locate package php8.0-soap
#7 116.0 E: Couldn't find any package by glob 'php8.0-soap'
#7 116.0 E: Couldn't find any package by regex 'php8.0-soap'
#7 116.0 E: Unable to locate package php8.0-intl
#7 116.0 E: Couldn't find any package by glob 'php8.0-intl'
#7 116.0 E: Couldn't find any package by regex 'php8.0-intl'
#7 116.0 E: Unable to locate package php8.0-readline
#7 116.0 E: Couldn't find any package by glob 'php8.0-readline'
#7 116.0 E: Couldn't find any package by regex 'php8.0-readline'
#7 116.0 E: Unable to locate package php8.0-pcov
#7 116.0 E: Couldn't find any package by glob 'php8.0-pcov'
#7 116.0 E: Couldn't find any package by regex 'php8.0-pcov'
#7 116.0 E: Unable to locate package php8.0-msgpack
#7 116.0 E: Couldn't find any package by glob 'php8.0-msgpack'
#7 116.0 E: Couldn't find any package by regex 'php8.0-msgpack'
#7 116.0 E: Unable to locate package php8.0-igbinary
#7 116.0 E: Couldn't find any package by glob 'php8.0-igbinary'
#7 116.0 E: Couldn't find any package by regex 'php8.0-igbinary'
#7 116.0 E: Unable to locate package php8.0-ldap
#7 116.0 E: Couldn't find any package by glob 'php8.0-ldap'
#7 116.0 E: Couldn't find any package by regex 'php8.0-ldap'
#7 116.0 E: Unable to locate package php8.0-redis
#7 116.0 E: Couldn't find any package by glob 'php8.0-redis'
#7 116.0 E: Couldn't find any package by regex 'php8.0-redis'
#7 116.0 E: Unable to locate package php8.0-swoole
#7 116.0 E: Couldn't find any package by glob 'php8.0-swoole'
#7 116.0 E: Couldn't find any package by regex 'php8.0-swoole'
#7 116.0 E: Unable to locate package php8.0-xdebug
#7 116.0 E: Couldn't find any package by glob 'php8.0-xdebug'
#7 116.0 E: Couldn't find any package by regex 'php8.0-xdebug'
------
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 wget && 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/source
s.list.d/ppa_ondrej_php.list && apt-get update && apt-get install -y php8.0-cli php8.0 php8.0-pgsql php8.0-sqlite3 php8.0-gd php8.0-curl php8.0-memcached php8.0-imap php8.0-mysql php8.0-mbstring php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap php8.0
-intl php8.0-readline php8.0-pcov php8.0-msgpack php8.0-igbinary php8.0-ldap php8.0-redis php8.0-swoole php8.0-xdebug && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && curl -sL https://deb.nodesource.com/setup_$NODE_VE
RSION.x | bash - && wget http://pear.php.net/go-pear.phar && php go-pear.phar && pecl channel-update pecl.php.net && apt-get install -y nodejs && 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 had a similar problem. The reason was that I have previously ran artisan sail:publish and thus copied the Docker files from vendor folder to my docker folder. Now even though the Docker files got updated in the vendor folder they didn't get updated in the docker folder and I used them. So after running composer update laravel/sail I just copied the changes in the Docker files to the corresp. files in my docker folder. Then the sail build command ran smoothly.
These were the changes in my case:
-FROM ubuntu:21.04
+FROM ubuntu:21.10
- && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
+ && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu impish main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
- && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
+ && php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
Please or to participate in this conversation.