Couldn't find any package by glob 'php8.2'

Hey there, I’m new to Fly.io. I’m trying to deploy my Laravel app for the first time, and it failed with these errors:

Reading package lists...

Building dependency tree...

Reading state information...

E: Unable to locate package php8.2

E: Couldn't find any package by glob 'php8.2'

E: Unable to locate package php8.2-curl

E: Couldn't find any package by glob 'php8.2-curl'

E: Unable to locate package php8.2-mbstring

E: Couldn't find any package by glob 'php8.2-mbstring'

E: Unable to locate package php8.2-xml

E: Couldn't find any package by glob 'php8.2-xml'

unsuccessful command 'apt install --no-install-recommends -y php8.2 php8.2-curl php8.2-mbstring php8.2-xml'

I’m not sure what I can personally do about it. Do I have to downgrade my apps PHP version? Or wait for Fly.io to upgrade theirs?

Does it work locally?

What exactly? My website can run locally and everything works, if that’s what you mean

i think what he mean can you try run docker build on your local computer

I’m not using docker

iirc there were some issues w/ Laravel, try searching this forum.

You’ll find that for any serious application development, you should be building locally in Docker. This follows the maxim that if it doesn’t work in production, you need to replicate the same failure locally, so you can then do some quick fix-retry loops until it is resolved. Running an application in Docker is very easy, so I would urge you to set aside some time to try it.

In the meantime, show us your Dockerfile, so we can advise. Please ensure you wrap that text in code fences, so it is readable in this forum (the </> button in the toolbar can also do it).

No, in both cases. Fly can run anything for which you can find a matching Linux operating system.