Não é possível extrair o amdgpu tar.xz

3

Estou executando o Ubuntu 17.10 e não consigo extrair um determinado arquivo tar. Ao tentar extrair o arquivo, recebo a seguinte mensagem:

There was an error while extracting”amdgpu-pro-17.40-492261.tar.xz”
“Not an archive”

Qualquer ajuda seria apreciada.

    
por user758623 11.11.2017 / 05:30

3 respostas

7

Esse arquivo em particular é um pouco blindado e suspeito que você tenha baixado apenas uma página de erro 302. No entanto, o seguinte liner funciona bem o suficiente no meu sistema:

wget --referer http://support.amd.com \
https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz

Observe o uso da opção --referer . Parece que algum esforço foi feito para impedir que as pessoas usem links de fora do site da AMD. Isso é bastante fácil, e bastante razoável, eu acredito, para contornar dessa maneira.

Nas páginas do manual do wget:

--referer=url
   Include 'Referer: url' header in HTTP request.  Useful for retrieving
   documents with server-side processing that assume they are always being
   retrieved by interactive web browsers and only come out properly when
   Referer is set to one of the pages that point to them.

O processo completo no meu próprio sistema funcionou da seguinte forma:

1. Download inicial:

andrew@illium~$ wget --referer http://support.amd.com \
> https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz
--2017-11-11 16:09:04--  https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz
Resolving www2.ati.com (www2.ati.com)... 23.7.24.254
Connecting to www2.ati.com (www2.ati.com)|23.7.24.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 361491288 (345M) [application/x-tar]
Saving to: ‘amdgpu-pro-17.40-492261.tar.xz’

amdgpu-pro-17.40-492261 100%[=============================>] 344.74M   794KB/s    in 7m 27s  

2017-11-11 16:16:32 (789 KB/s) - ‘amdgpu-pro-17.40-492261.tar.xz’ saved [361491288/361491288]

2. Extração subseqüente:

andrew@illium~$ tar xvf amdgpu-pro-17.40-492261.tar.xz 
amdgpu-pro-17.40-492261/
amdgpu-pro-17.40-492261/Packages
amdgpu-pro-17.40-492261/xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/opencl-amdgpu-pro-icd_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/amdgpu-pro-lib32_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-base_17.40-492261_all.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-ext_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgles2-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-ext_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/gst-omx-amdgpu-pro_1.0.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-ext-amdgpu-pro-finalize_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/libllvm5.0-amdgpu-pro_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-glx_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-ext-amdgpu-pro-image_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro-install
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-appprofiles_17.40-492261_all.deb
amdgpu-pro-17.40-492261/amdgpu-pro-core_17.40-492261_all.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-dev_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libvdpau-amdgpu-pro_17.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/clinfo-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-dev_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-dev_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/vulkan-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libegl1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libopencl1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-opencl-dev_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-opencl_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/rocr-amdgpu-pro-dev_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-amdgpu-pro_1.3.99-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-radeon1_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/hsa-runtime-tools-amdgpu-pro_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libegl1-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-runtime_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/hsa-runtime-tools-amdgpu-pro-dev_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/vulkan-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-doc_5.0-492261_all.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-utils_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro-icd_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/opencl-amdgpu-pro-icd_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-glx_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libllvm5.0-amdgpu-pro_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/rocm-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/clinfo-amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libvdpau-amdgpu-pro_17.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/roct-amdgpu-pro-dev_1.0.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-dri_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro-dkms_17.40-492261_all.deb
amdgpu-pro-17.40-492261/libgl1-amdgpu-pro-dri_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/gst-omx-amdgpu-pro_1.0.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-runtime_5.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-dev_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/ids-amdgpu-pro_1.0.0-492261_all.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-runtime_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/libopencl1-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/rocr-amdgpu-pro_1.1.6-492261_amd64.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-utils_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm2-amdgpu-pro_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/mesa-amdgpu-pro-omx-drivers_17.0.1-492261_amd64.deb
amdgpu-pro-17.40-492261/libglamor-amdgpu-pro-dev_1.19.0-492261_i386.deb
amdgpu-pro-17.40-492261/amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro-17.40-492261/libgbm1-amdgpu-pro-dev_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-dev_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-5.0-dev_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/Release
amdgpu-pro-17.40-492261/xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/xserver-xorg-video-amdgpu-pro_1.3.99-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-radeon1_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro-runtime_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/mesa-amdgpu-pro-omx-drivers_17.0.1-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_amd64.deb
amdgpu-pro-17.40-492261/roct-amdgpu-pro_1.0.6-492261_amd64.deb
amdgpu-pro-17.40-492261/amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/libglamor-amdgpu-pro-dev_1.19.0-492261_amd64.deb
amdgpu-pro-17.40-492261/libgles2-amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-17.40-492261/llvm-amdgpu-pro_5.0-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm-amdgpu-pro-dev_2.4.82-492261_i386.deb
amdgpu-pro-17.40-492261/libdrm2-amdgpu-pro_2.4.82-492261_amd64.deb
andrew@illium~$ 

Espero que este pequeno truque seja útil para você ...

    
por andrew.46 11.11.2017 / 06:13
1

Ok, corrigi-lo baixando o arquivo de http em vez de https. Hmmm ...

wget --referer http://support.amd.com http://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz

Estou tendo o mesmo problema. Não importa como eu baixei o arquivo, mesmo com o comando wget fornecido.

$ ls -l amd*
-rw-rw-r-- 1 brain brain 144219952 Nov 12 12:19 amdgpu-pro-17.40-492261.tar (1).xz
-rw-rw-r-- 1 brain brain 144219952 Nov 12 12:15 amdgpu-pro-17.40-492261.tar.xz
-rw-rw-r-- 1 brain brain 144219952 Oct 25 19:06 amdgpu-pro-17.40-492261.tar.xz.1

$ md5sum amd*
c041f34ae4c55e71641d15f0552df609  amdgpu-pro-17.40-492261.tar (1).xz
c041f34ae4c55e71641d15f0552df609  amdgpu-pro-17.40-492261.tar.xz
c041f34ae4c55e71641d15f0552df609  amdgpu-pro-17.40-492261.tar.xz.1

$ file amd*
amdgpu-pro-17.40-492261.tar (1).xz: PGP1Secret Sub-key -
amdgpu-pro-17.40-492261.tar.xz:     PGP1Secret Sub-key -
amdgpu-pro-17.40-492261.tar.xz.1:   PGP1Secret Sub-key -

$ tar xvf amdgpu-pro-17.40-492261.tar.xz 
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now

$ tar xJf amdgpu-pro-17.40-492261.tar.xz 
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now

$ cat amdgpu-pro-17.40-492261.tar.xz | xz --decompress
xz: (stdin): File format not recognized

EDITAR:

Em uma análise mais aprofundada, toda vez que eu fiz o download do URL https, obtive os últimos 144219952 bytes do arquivo de bytes 361491288.

$ ls -l amd*
-rw-rw-r-- 1 brain brain 144219952 Nov 12 12:19 amdgpu-pro-17.40-492261.tar (1).xz
-rw-rw-r-- 1 brain brain 144219952 Nov 12 12:15 amdgpu-pro-17.40-492261.tar.xz
-rw-rw-r-- 1 brain brain 144219952 Oct 25 19:06 amdgpu-pro-17.40-492261.tar.xz.1
-rw-rw-r-- 1 brain brain 361491288 Oct 25 19:06 amdgpu-pro-17.40-492261.tar.xz.2
    
por BrianV 12.11.2017 / 19:27
0

O arquivo do driver carregado nos servidores da AMD está corrompido. Eles ainda não consertaram. Pode ser, todos nós devemos relatar isso à AMD.

Você pode baixar o arquivo aqui, por enquanto: link

    
por Confguy2016 17.11.2017 / 04:28

Tags