Laravel Installer crashes on Ubuntu 25.10 due to stty output format
Installer Version
Laravel Installer 5.15.0
Description
Problem
On Ubuntu 25.10, running:
laravel new project
causes the Laravel Installer to crash when the interactive starter-kit prompt appears. The error is:
stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:...'
This happens because Ubuntu 24.04+ returns a different stty -g output format, and the Installer tries to execute it without validation, causing the terminal restore step in src/Console/Terminal.php to fail.
Steps to reproduce
- Fresh Ubuntu 25.10 install
- Run:
laravel new test
- When the starter-kit prompt appears, the installer exits with the error above.
Expected behavior
Installer should gracefully handle unsupported stty formats and not crash.
Environment
Ubuntu 25.10
PHP version: (paste output of `php -v`)
Laravel Installer version: (paste output of `composer global show laravel/installer`)
stty -g output:
(paste output)
stty -a output:
(paste output)
echo $TERM
uname -a
Notes
This only happens in interactive mode. Running:
laravel new test --no-interaction
works normally.
iksi@code:~/Documents/cetakstruk$ php -v composer global show laravel/installer stty -g stty -a echo $TERM uname -a PHP 8.4.11 (cli) (built: Aug 13 2025 01:43:48) (NTS) Copyright (c) The PHP Group Built by Ubuntu Zend Engine v4.4.11, Copyright (c) Zend Technologies with Zend OPcache v8.4.11, Copyright (c), by Zend Technologies Changed current directory to /home/fiksi/.config/composer name : laravel/installer descrip. : Laravel application installer. keywords : laravel versions : * v5.15.0 released : 2025-05-20, 6 months ago type : library license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText homepage : source : [git] https://github.com/laravel/installer.git 0dc17fbef4f7ef13cd28858648deac7cfa4bdddc dist : [zip] https://api.github.com/repos/laravel/installer/zipball/0dc17fbef4f7ef13cd28858648deac7cfa4bdddc 0dc17fbef4f7ef13cd28858648deac7cfa4bdddc path : /home/fiksi/.config/composer/vendor/laravel/installer names : laravel/installer
support issues : https://github.com/laravel/installer/issues source : https://github.com/laravel/installer/tree/v5.15.0
autoload psr-4 Laravel\Installer\Console\ => src/
requires illuminate/filesystem ^10.20|^11.0|^12.0 illuminate/support ^10.20|^11.0|^12.0 laravel/prompts ^0.1.18|^0.2.0|^0.3.0 php ^8.2 symfony/console ^6.2|^7.0 symfony/polyfill-mbstring ^1.31 symfony/process ^6.2|^7.0
requires (dev)
phpstan/phpstan ^2.1
phpunit/phpunit ^10.4
4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
speed 38400 baud; rows 21; columns 80; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol =
Steps To Reproduce
Steps To Reproduce
-
Install a fresh Ubuntu 25.10 system
-
Install PHP and Composer
-
Install Laravel Installer globally:
composer global require laravel/installer -
Create a new Laravel project:
laravel new test -
When the interactive starter-kit selection appears, the installer immediately crashes and shows:
stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:...'
Related to https://github.com/laravel/prompts/issues/206