[GH-ISSUE #397] Cannot exec "xz": No such file or directory #280

Closed
opened 2026-03-01 21:42:00 +03:00 by kerem · 3 comments
Owner

Originally created by @RomanKornev on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/397

I guess xz-utils is not installed by default? It's part of the default environment:
See https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md

[CI/build] ⭐  Run subosito/flutter-action@v1
[CI/build]   ☁  git clone 'https://github.com/subosito/flutter-action' # ref=v1
[CI/build]   🐳  docker cp src=/home/df/.cache/act/subosito-flutter-action@v1 dst=/actions/
[CI/build]   💬  ::debug::latest version from channel stable is 1.22.2
[CI/build]   💬  ::debug::isExplicit: 1.22.2-stable
[CI/build]   💬  ::debug::explicit? true
[CI/build]   💬  ::debug::checking cache: /opt/hostedtoolcache/flutter/1.22.2-stable/x64
[CI/build]   💬  ::debug::not found
[CI/build]   💬  ::debug::Downloading Flutter from Google storage https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz
[CI/build]   💬  ::debug::Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz
[CI/build]   💬  ::debug::Destination /tmp/e17275f6-785e-417c-abab-9b524448dcfc
[CI/build]   💬  ::debug::download complete
[CI/build]   💬  ::debug::Checking tar --version
[CI/build]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar x --warning=no-unknown-keyword -C /tmp/temp_775726579 -f /tmp/e17275f6-785e-417c-abab-9b524448dcfc
| tar (child): xz: Cannot exec: No such file or directory
| tar (child): Error is not recoverable: exiting now
| /bin/tar: Child returned status 2
| /bin/tar: Error is not recoverable: exiting now
[CI/build]   ❗  ::error::The process '/bin/tar' failed with exit code 2
[CI/build]   ❌  Failure - subosito/flutter-action@v1
Error: exit with `FAILURE`: 1
Originally created by @RomanKornev on GitHub (Oct 21, 2020). Original GitHub issue: https://github.com/nektos/act/issues/397 I guess `xz-utils` is not installed by default? It's part of the default environment: See https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md ```sh [CI/build] ⭐ Run subosito/flutter-action@v1 [CI/build] ☁ git clone 'https://github.com/subosito/flutter-action' # ref=v1 [CI/build] 🐳 docker cp src=/home/df/.cache/act/subosito-flutter-action@v1 dst=/actions/ [CI/build] 💬 ::debug::latest version from channel stable is 1.22.2 [CI/build] 💬 ::debug::isExplicit: 1.22.2-stable [CI/build] 💬 ::debug::explicit? true [CI/build] 💬 ::debug::checking cache: /opt/hostedtoolcache/flutter/1.22.2-stable/x64 [CI/build] 💬 ::debug::not found [CI/build] 💬 ::debug::Downloading Flutter from Google storage https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz [CI/build] 💬 ::debug::Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.2-stable.tar.xz [CI/build] 💬 ::debug::Destination /tmp/e17275f6-785e-417c-abab-9b524448dcfc [CI/build] 💬 ::debug::download complete [CI/build] 💬 ::debug::Checking tar --version [CI/build] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. | [command]/bin/tar x --warning=no-unknown-keyword -C /tmp/temp_775726579 -f /tmp/e17275f6-785e-417c-abab-9b524448dcfc | tar (child): xz: Cannot exec: No such file or directory | tar (child): Error is not recoverable: exiting now | /bin/tar: Child returned status 2 | /bin/tar: Error is not recoverable: exiting now [CI/build] ❗ ::error::The process '/bin/tar' failed with exit code 2 [CI/build] ❌ Failure - subosito/flutter-action@v1 Error: exit with `FAILURE`: 1 ```
kerem 2026-03-01 21:42:00 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@ghost commented on GitHub (Oct 30, 2020):

Please see https://github.com/nektos/act#default-runners-are-intentionally-incomplete

<!-- gh-comment-id:719620085 --> @ghost commented on GitHub (Oct 30, 2020): Please see https://github.com/nektos/act#default-runners-are-intentionally-incomplete
Author
Owner

@safarmer commented on GitHub (Dec 7, 2020):

This is not related to the runner being used. I ran with act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -j deploy and see the same issue. I noticed that actions/setup-java was working fine with the following output:

| [command]/bin/tar --version                                                                                                                                                          
| tar (GNU tar) 1.29                                                                                                                                                                   
| Copyright (C) 2015 Free Software Foundation, Inc.                                                                                                                                    
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.                                                                                                       
| This is free software: you are free to change and redistribute it.                                                                                                                   
| There is NO WARRANTY, to the extent permitted by law.                                                                                                                                
|                                                                                                                                                                                      
| Written by John Gilmore and Jay Fenlason.                                                                                                                                            
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/temp_304576007 -f /tmp/6b705aa0-116f-4025-af20-59ce0ae17d8f           

When I switched the order of setup-java and flutter-action, the first command always succeeds. This might be related to https://github.com/actions/toolkit/issues/642

<!-- gh-comment-id:740228208 --> @safarmer commented on GitHub (Dec 7, 2020): This is not related to the runner being used. I ran with `act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -j deploy` and see the same issue. I noticed that `actions/setup-java` was working fine with the following output: ``` | [command]/bin/tar --version | tar (GNU tar) 1.29 | Copyright (C) 2015 Free Software Foundation, Inc. | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/temp_304576007 -f /tmp/6b705aa0-116f-4025-af20-59ce0ae17d8f ``` When I switched the order of `setup-java` and `flutter-action`, the first command always succeeds. This might be related to https://github.com/actions/toolkit/issues/642
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:761279579 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#280
No description provided.