1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSL2環境のLaravel-sailビルド中に、gpgキーの生成で止まってしまう場合の対処

Last updated at Posted at 2022-12-09

問題

Laravel Sailビルドしようとしたら
RUN apt-get update 中の

# gpg: keybox '/root/.gnupg/pubring.kbx' created

のあたりで止まってしまう。

結論

GPGコマンドのキーサーバーURLから、ポート指定 :80 を外す

手順

php artisan sail:install でDocker関連のファイルをプロジェクト内に出力したのち、
使用するPHPバージョンのDockerfileを修正する

例)PHP8.1の場合

./docker/8.1/Dockerfile:21行目
    && echo "keyserver hkp://keyserver.ubuntu.com:80" >> ~/.gnupg/dirmngr.conf \

  ↓ ↓ ↓

    && echo "keyserver hkp://keyserver.ubuntu.com" >> ~/.gnupg/dirmngr.conf \

参考

https://stackoverflow.com/questions/74650090/laravel-sail-up-never-finishes-building-during-gpg-command
https://github.com/laravel/sail/issues/503#issuecomment-1336273951

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?