tar: 이전 오류로 인해 실패하여 종료되었습니다.

tar: 이전 오류로 인해 실패하여 종료되었습니다.

난 달린다

$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

안타깝게도 xz 파일을 추출할 수 없습니다.

$ wget -c https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.5-stable.tar.xz
--2024-04-17 11:21:57--  https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.5-stable.tar.xz
Resolving storage.googleapis.com (storage.googleapis.com)... 172.217.167.91, 142.250.71.91, 142.250.66.251, ...
Connecting to storage.googleapis.com (storage.googleapis.com)|172.217.167.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 665630904 (635M) [application/x-tar]
Saving to: ‘flutter_linux_3.19.5-stable.tar.xz’

flutter_linux_3.19.5-stable.tar.xz   100%[===================================================================>] 634.79M  6.06MB/s    in 1m 55s  

2024-04-17 11:23:53 (5.51 MB/s) - ‘flutter_linux_3.19.5-stable.tar.xz’ saved [665630904/665630904]

$ tar xf flutter_linux_3.19.5-stable.tar.xz /usr/bin/
tar: /usr/bin: Not found in archive
tar: Exiting with failure status due to previous errors

$ sudo tar xf flutter_linux_3.19.5-stable.tar.xz /usr/bin/
tar: /usr/bin: Not found in archive
tar: Exiting with failure status due to previous errors

$ sudo tar -xf flutter_linux_3.19.5-stable.tar.xz /usr/bin/
tar: /usr/bin: Not found in archive
tar: Exiting with failure status due to previous errors

내가 놓친 게 무엇입니까?

답변1

-C사라졌다sudo tar -xf flutter_linux_3.19.5-stable.tar.xz -C /usr/bin/

관련 정보