zed-industries/zed · error
failed to extract to
Error message
failed to extract {:?} to {:?}: {:?} What it means
install_release_linux ran `tar -xzf` to extract the downloaded update archive into a temp extraction directory and the child process exited with a non-zero status; the message embeds the archive path, destination, and exit status, meaning the tarball was corrupt, truncated, or incompatible rather than merely missing.
Solutions
- Delete the partial download and re-fetch the release archive, then retry installation
- Verify the downloaded tarball's checksum/size before extracting
- Ensure tar and gzip are installed and the temp directory has space and write permissions
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/auto_update/src/auto_update.rs:1141 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/67f38366f703470f.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update/src/auto_update.rs:1152
) -> Result<Option<PathBuf>> {
let home_dir = PathBuf::from(env::var("HOME").context("no HOME env var set")?);
let extracted = temp_dir.path().join("zed");
fs::create_dir_all(&extracted)
.await
.context("failed to create directory into which to extract update")?;
let mut cmd = new_command("tar");
cmd.arg("-xzf")
.arg(&downloaded_tar_gz)
.arg("-C")
.arg(&extracted);
let output = cmd
.output()
.await
.with_context(|| "failed to extract: {cmd}")?;
anyhow::ensure!(
output.status.success(),
"failed to extract {:?} to {:?}: {:?}",
downloaded_tar_gz,
extracted,
String::from_utf8_lossy(&output.stderr)
);
let suffix = if channel != "stable" {
format!("-{}", channel)
} else {
String::default()
};
let app_folder_name = format!("zed{}.app", suffix);
let from = extracted.join(&app_folder_name);
let mut to = home_dir.join(".local");
let expected_suffix = format!("{}/libexec/zed-editor", app_folder_name);View on GitHub (pinned to 916fc2b8cb)