2

I'm on Kubuntu (25.10) and I just tried creating a new laravel app using the laravel installer laravel new myapp and got this error

In Terminal.php line 114: stty: invalid argument '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'

new [--dev] [--git] [--branch BRANCH] [--github [GITHUB]] [--organization ORGANIZATION] [--database DATABASE] [--react] [--vue] [--livewire] [--livewire-class-components] [--workos] [--no-authentication] [--pest] [--phpunit] [--npm] [--pnpm] [--bun] [--yarn] [--boost] [--using [USING]] [-f|--force] [--]

So I used composer to install it composer create-project --prefer-dist laravel/laravel myapp and it worked but I got the same error again when I tried to create a new filament panel after installing Filament php artisan filament:install --panels:

RuntimeException 

  stty: invalid argument '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'

  at vendor/laravel/prompts/src/Terminal.php:114
    110▕         $stderr = stream_get_contents($pipes[2]);
    111▕         $code = proc_close($process);
    112▕ 
    113▕         if ($code !== 0 || $stdout === false) {
  ➜ 114▕             throw new RuntimeException(trim($stderr ?: "Unknown error (code: $code)"), $code);
    115▕         }
    116▕ 
    117▕         return $stdout;
    118▕     }

      +19 vendor frames 

  20  artisan:16
      Illuminate\Foundation\Application::handleCommand()

2 Answers 2

3

You are hitting a known bug in Kubuntu 25.10’s stty (the utility installed from the rust-coreutils package).

It breaks Laravel interactive prompts with stty: invalid argument ....

Try run:

$ sudo apt install coreutils rust-coreutils- coreutils-from-uutils-

This will install the original coreutils package and remove the rust-coreutils packages.

Then rerun laravel new / php artisan filament:install and it should work without yielding that diagnostic message.

Sign up to request clarification or add additional context in comments.

6 Comments

This returns an error: WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! coreutils-from-uutils rust-coreutils (due to coreutils-from-uutils). Error: Removing essential system-critical packages is not permitted. This might break the system.
yes remove the rust-based coreutils variant and reinstall the normal coreutils package.
if you are worried use a container / different distro for Laravel commands (e.g. official PHP Docker image, or an LTS Ubuntu VM).
This worked but what does this mean for future updates since now I removed the rust-based utils and reinstalled the original GNU ones?
on future firstly package managers donot randomly re-add packages you explicitly removed, unless a future Kubuntu metapackage explicitly pulls them back in as dependencies or recommendations.
@Silikazi: That "coreutils-from-uutils" sounds as if there could be a meta-package to opt-in/out of that, maybe you know more? Just asking, because I looked into it and compared with Opengroup stty utility description and it does not even matches that, so my educated guess would be the maintainers have made this a bit more comfortable?
0

I had this issue on Ubuntu 25, and running this was able to fix the issue for me:

sudo update-alternatives --install /usr/bin/stty stty /usr/bin/gnustty 100

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.