valeryan / valet-wsl

A fork of Laravel Valet for Ubuntu modified to work in WSL.
MIT License
147 stars 23 forks source link

`valet use php@7.4` doesn't work #24

Open tomhayes opened 3 years ago

tomhayes commented 3 years ago

Basic info

Windows 10 Build WSL Distro WSL Verson PHP Version Valet version
Ex: 10240 Ubuntu 20.0.4 2 8.0 1.0.6

What is the problem? A description of what you think the problem is. valet use php@7.4 doesn't work.

What was supposed to happen? Valet downloads (or finds installed) php 7.4

What actually happened?

This does not affect php -v.
Stopping php8.0-fpm...
Disabling php8.0-fpm...
[phpphp@7.4-fpm] is not installed, installing it now via Apt... 🍻
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package phpphp@7.4-fpm
E: Couldn't find any package by glob 'phpphp@7.4-fpm'
E: Couldn't find any package by regex 'phpphp@7.4-fpm'

How to reproduce this? Run valet use php@7.4.

What is the solution? Looks like for some reason it's looking to install phpphp@7.4-fpm instead of php@7.4-fpm.

LTiollier commented 3 years ago

i have the same problem: you can : valet use 7.4 instead. But i got ERR_CONNECTION_TIMED_OUT after that ^^'