laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 470 forks source link

E: Unable to locate package postgresql-client-15 #679

Closed abanoubha closed 6 months ago

abanoubha commented 6 months ago

Sail Version

1.18

Laravel Version

10.10

PHP Version

8.1

Operating System

macOS

OS Version

12.7.4

Description

Created a new project using this command curl -s "https://laravel.build/example-app" | bash from docs, but I faced this error.

1431.8 E: Unable to locate package postgresql-client-15

things I did to fix it on my case

I run the sail up -d then published by sail artisan sail:publish then I downgraded the postgresql version from15 to 14 in the Dockerfile. This make it work fine. There is a video fixing the error by these steps on YouTube.

Steps To Reproduce

use curl -s "https://laravel.build/example-app" | bash to create a new project on mac os 12.7.4

SamuelMwangiW commented 6 months ago

Kindly updgrade your sail version and try again. I was able to build successfully on laravel/sail: "^1.28.2" and switching to php 8.1 runtime.

driesvints commented 6 months ago

Thanks @SamuelMwangiW