gzip: stdin: não no formato gzip ao tentar extrair o tarball do kernel [duplicado]

0

Eu sou novo no Ubuntu. Estou tentando instalar o kernel mais recente (4.6), para poder executar algumas funções no Surface Pro.

Eu executei estes comandos:

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.tar.xz
tar zxvf linux-4.6.tar.xz
cd linux-4.6

Mas é isso que eu recebo.

$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.tar.xz
HTTP request sent, awaiting response... 200 OK
Length: 89461728 (85M) [application/x-xz]
Saving to: ‘linux-4.6.tar.xz’

linux-4.6.tar.xz    100%[===================>]  85.32M  1.99MB/s    in 46s     

2016-05-27 11:52:02 (1.84 MB/s) - ‘linux-4.6.tar.xz’ saved [89461728/89461728]

$ tar zxvf linux-4.6.tar.xz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

$ cd linux-4.6
bash: cd: linux-4.6: No such file or directory

Eu não sei como passar este erro com tar . O que devo fazer?

    
por Jon 27.05.2016 / 06:10

1 resposta

1

Você está tentando descompactar / 'unzip' (a opção -z), mas o tar não está compactado / 'zipado'

Faça isso sem o -z e funcionará bem:

tar -xf name-of-tar

(substitua o nome do tar pelo nome real) Se você quiser mais comunicação:

tar -xfvw name-of-tar

Digite man tar para mais informações

    
por Zanna 27.05.2016 / 07:48