installer icon indicating copy to clipboard operation
installer copied to clipboard

Laravel Installer crashes on Ubuntu 25.10 due to stty output format

Open 09dian opened this issue 1 month ago • 1 comments

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

  1. Fresh Ubuntu 25.10 install
  2. Run:
laravel new test
  1. 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 = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixoff -tandem ixon -ixany -imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -tostop -echoprt echoctl echoke -flusho -extproc xterm-256color Linux code 6.17.0-6-generic #6-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 7 13:34:17 UTC 2025 x86_64 GNU/Linux fiksi@code:~/Documents/cetakstruk$

Steps To Reproduce

Steps To Reproduce

  1. Install a fresh Ubuntu 25.10 system

  2. Install PHP and Composer

  3. Install Laravel Installer globally:

    composer global require laravel/installer
    
  4. Create a new Laravel project:

    laravel new test
    
  5. 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:...'
    

09dian avatar Nov 21 '25 09:11 09dian

Related to https://github.com/laravel/prompts/issues/206

pushpak1300 avatar Nov 21 '25 10:11 pushpak1300