
나는 docker와 항해를 사용하여 새로운 laravel 프로젝트를 만들고 있습니다. 저는 Windows 10을 사용하고 있으며 WSL 2와 문서에 필요한 모든 항목을 활성화했지만 우분투 셸(Ubuntu 20.04)에서 laravel 프로젝트를 만든 후에는 다음 명령을 사용하여 항해를 구축하십시오.
cd example-app && ./vendor/bin/sail up
나는 다음을 얻습니다 :
#7 737.3 0 upgraded, 123 newly installed, 0 to remove and 3 not upgraded.
#7 737.3 Need to get 81.6 MB of archives.
#7 737.3 After this operation, 309 MB of additional disk space will be used.
#7 789.8 Err:28 http://ppa.launchpad.net/ondrej/php/ubuntu hirsute/main amd64 php8.0-cli amd64 8.0.11-1+ubuntu21.04.1+deb.sury.org+1
#7 789.8 Undetermined Error [IP: 91.189.95.85 80]
#7 811.8 Err:34 http://ppa.launchpad.net/ondrej/php/ubuntu hirsute/main amd64 php8.0-imap amd64 8.0.11-1+ubuntu21.04.1+deb.sury.org+1
#7 811.8 Undetermined Error [IP: 91.189.95.85 80]
#7 1002.0 Get:121 http://archive.ubuntu.com/ubuntu hirsute/main amd64 pkg-config amd64 0.29.2-1ubuntu1 [46.2 kB]
#7 1002.2 Get:122 http://archive.ubuntu.com/ubuntu hirsute/main amd64 shtool all 2.0.8-10 [122 kB]
#7 1002.7 Get:123 http://archive.ubuntu.com/ubuntu hirsute/main amd64 pkg-php-tools all 1.40 [28.0 kB]
#7 1002.8 EFetched 80.0 MB in 4min 26s (301 kB/s)
#7 1002.8 : Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.0/php8.0-cli_8.0.11-1%2bubuntu21.04.1%2bdeb.sury.org%2b1_amd64.deb Undetermined Error [IP: 91.189.95.85 80]
#7 1002.8 E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.0/php8.0-imap_8.0.11-1%2bubuntu21.04.1%2bdeb.sury.org%2b1_amd64.deb Undetermined Error [IP: 91.189.95.85 80]
#7 1002.8 E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.0/php8.0-soap_8.0.11-1%2bubuntu21.04.1%2bdeb.sury.org%2b1_amd64.deb Undetermined Error [IP: 91.189.95.85 80]
#7 1002.8 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
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.0-cli php8.0-dev 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_16.x | bash - && 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
ERROR: Service 'laravel.test' failed to build : Build failed
문제는 주변에 있는 것 같습니다.
#7 830.7 Err:53 http://ppa.launchpad.net/ondrej/php/ubuntu hirsute/main amd64 php8.0-soap amd64 8.0.11-1+ubuntu21.04.1+deb.sury.org+1
#7 830.7 Undetermined Error [IP: 91.189.95.85 80]
도커에서 모든 컨테이너, 볼륨 및 이미지를 제거하고 전체 프로세스를 다시 수행해 보았지만 소용이 없었습니다.
나는 또한 명령 전에 sudo를 사용해 보았습니다.
cd example-app && sudo ./vendor/bin/sail up
하지만 같은 결과입니다.