无法提取 amdgpu tar.xz

无法提取 amdgpu tar.xz

我正在运行 Ubuntu 17.10,但无法提取某个 tar 文件。尝试提取文件时,我收到以下消息:

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

任何帮助,将不胜感激。

答案1

那个特定的文件有点屏蔽我怀疑您只下载了 302 错误页面。但是,下面的一行代码在我的系统上运行良好:

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

注意选项的使用--referer。看起来已经采取了一些措施来阻止人们使用来自外部AMD 网站。通过这种方式规避这个问题非常容易,而且我认为非常合理。

来自 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.

我自己的系统上的整个过程如下:

1.初始下载:

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. 后续提取:

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~$ 

所以希望这个小小的 wget 技巧能够帮助到你......

答案2

好的,我通过从 http 而不是 https 下载文件解决了这个问题。嗯……

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

我遇到了同样的问题。无论我如何下载文件,即使使用给定的 wget 命令也是如此。

$ 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: PGP\011Secret Sub-key -
amdgpu-pro-17.40-492261.tar.xz:     PGP\011Secret Sub-key -
amdgpu-pro-17.40-492261.tar.xz.1:   PGP\011Secret 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

编辑:

进一步分析发现,每次我从https url下载时,都会得到361491288字节文件的最后144219952字节。

$ 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

答案3

AMD 服务器中上传的驱动程序存档已损坏。他们尚未修复。也许我们都应该向 AMD 报告此事。

目前,您可以从这里下载该文件:https://fichiers.touslesdrivers.com/55256/amdgpu-pro-17.40-492261.tar.xz

答案4

当您通过 AMD 自己的驱动程序下载页面下载时遇到同样的错误时,这很不合理,这是 AMD 网站出了问题。在 18.50 上看到同样的问题,看到了很多关于这个问题的引用,AMD 仍然没有修复这个问题,而且像往常一样,由于这是 LINUX,他们似乎并不关心。

我拒绝再购买 AMD 是有原因的 - 多年来,他们的驱动程序情况完全是“我们不关心,忍受我们的无用”的态度。

相关内容