[Bug]: xz: (stdin): File format not recognized
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: chrome
- Local OS: Ubuntu 18.04.4
- Remote OS: Ubuntu 18.04.4
- Remote Architecture: amd64
code-server --version
: v4.4.0 Latest
Steps to Reproduce
Follow the Development workflow: https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md#development-workflow
- git clone https://github.com/coder/code-server.git
- git submodule update --init
- quilt push -a
- yarn
Expected
yarn install completed
Actual
code-server/node_modules/shellcheck: Command failed. Command: ./install.sh
xz: (stdin): File format not recognized
tar: Child returned status 1
Logs
$ yarn
yarn install v1.22.18
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @coder/logger@1.1.16" has unmet peer dependency "@google-cloud/logging@^4.5.2".
[5/5] Building fresh packages...
[1/3] ⠄ argon2
[2/3] ⠄ yarn
error /home/test/code-server/node_modules/shellcheck: Command failed.
Exit code: 2
Command: ./install.sh
Arguments:
Directory: /home/test/code-server/node_modules/shellcheck
Output:
xz: (stdin): File format not recognized
tar: Child returned status 1
Screenshot/Video
No response
Does this issue happen in VS Code?
- I cannot reproduce this in VS Code.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
$ bsdtar --version
bsdtar 3.2.2 - libarchive 3.2.2 zlib/1.2.11 liblzma/5.2.2 bz2lib/1.0.6 liblz4/1.7.1
$ tar --version
tar (GNU tar) 1.29
Issue Analytics
- State:
- Created a year ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
tar.xz extracting error "xz: (stdin): File format not recognized"
Try file file.tar.xz , this should give you a hint on the file type, unless it just says "data". – Olaf Dietsche.
Read more >extracting error “xz: (stdin): File format not recognized” #569
I believe the xz file is from llvm, which is our dependency. Not sure why it failed downloading llvm for you.
Read more >(stdin): File format not recognized" (2 Solutions!!) - YouTube
Ubuntu: tar. xz extracting error " xz : ( stdin ): File format not recognized " (2 Solutions!!)
Read more >Docker Build: xz(stdin): File format not recognized
The problem is the -O option to curl that writes to disk instead of stdout. Try with: curl -L https://...
Read more >[Fixed] Compile error LE 8.0.1, xz: (stdin): File format not ...
It saves the file as an xz file and try's to decompress it as an xz file. I couldn't see any downloads happening...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok thank you so much!
at first, I tried building code-server on latest commit
1e304b1e7d3b5cd0edb1aa35edbbe74cd79254c2
, but failed.Now I’ve git checkout
v4.4.0
and now everything succeeded on Ubuntu 20.04! the commitc96202528fc0daf1339a55c45951f40834b72c95 (HEAD, tag: v4.4.0)
works fine to me.by the way, if you guide me official Dockerfile for Ubuntu environment, it would be really helpful for the next time.
thank you so much for this amazing project. 😃