Error is not recoverable exiting now ubuntu

when I untar doctrine -rw-r--r-- 1 root root 660252 2010-10-16 23:06 Doctrine-1.2.0.tgz I always get this error messages root@X100e:/usr/local/lib/Doctrine/stable# tar -xvzf Doctrine-1.2.0.tgz ...

when I untar doctrine

-rw-r--r-- 1 root root 660252 2010-10-16 23:06 Doctrine-1.2.0.tgz

I always get this error messages

root@X100e:/usr/local/lib/Doctrine/stable# tar -xvzf Doctrine-1.2.0.tgz

.
.
.

Doctrine-1.2.0/tests/ViewTestCase.php
Doctrine-1.2.0/CHANGELOG

gzip: stdin: decompression OK, trailing garbage ignored
Doctrine-1.2.0/COPYRIGHT
Doctrine-1.2.0/LICENSE
tar: Child returned status 2
tar: Error is not recoverable: exiting now

The untar operation works, but I always get this error messages.

Any clues what I do wrong?

Paulo Boaventura's user avatar

asked Oct 16, 2010 at 21:18

udo's user avatar

0

I would try to unzip and untar separately and see what happens:

mv Doctrine-1.2.0.tgz Doctrine-1.2.0.tar.gz
gunzip Doctrine-1.2.0.tar.gz
tar xf Doctrine-1.2.0.tar

answered Oct 16, 2010 at 21:52

Peter G.'s user avatar

Peter G.Peter G.

14.6k7 gold badges55 silver badges75 bronze badges

2

It’s possible your tar file is not zipped. I just had this same error, but all I had was a plain old tar file. So try just removing the z from your flags. The z flag unzips your tar file as well as whatever other commands you requested with other flags. i.e. try:

tar -xvf Doctrine-1.2.0.tgz

Notice I removed the z from -xvzf

answered May 9, 2022 at 22:06

skittlebiz's user avatar

skittlebizskittlebiz

3403 silver badges8 bronze badges

If you got «Error is not recoverable: exiting now» You might have specified incorrect path references.

[me@host ~]$ tar -xvf nameOfMyTar.tar -C /someSubDirectory/
tar: /someSubDirectory: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[me@host ~]$

Make sure you provide correct relative or absolute directory references e.g.:

[me@host ~]$ tar -xvf ./nameOfMyTar.tar -C ./someSubDirectory/
./foo/
./bar/
[me@host ~]$ 

answered Apr 17, 2018 at 15:58

Axelfoley's user avatar

2

Try to get your archive using wget, I had the same issue when I was downloading archive through browser. Than I just copy archive link and in terminal use the command:

wget http://PATH_TO_ARCHIVE

Vladimir Vagaytsev's user avatar

answered Oct 20, 2016 at 7:55

Aram's user avatar

The problem is that you do not have bzip2 installed. The tar program relies upon this external program to do compression.
For installing bzip2, it depends on the system you are using. For example, with Ubuntu that would be on Ubuntu

sudo apt-get install bzip2

The GNU tar program does not know how to compress an existing file such as user-logs.tar (bzip2 does that). The tar program can use external compression programs gzip, bzip2, xz by opening a pipe to those programs, sending a tar archive via the pipe to the compression utility, which compresses the data which it reads from tar and writes the result to the filename which the tar program specifies.

Alternatively, the tar and compression utility could be the same program. BSD tar does its compression using lib archive (they’re not really distinct except in name).

answered May 15, 2020 at 3:36

Jose Caicedo's user avatar

use sudo

sudo tar -zxvf xxxxxxxxx.tar.gz

answered Sep 12, 2020 at 7:43

Jyothsna Gadde's user avatar

Error messages
enter image description here

Easy way to fix this issue

  1. First Remove files
  2. Download file again
  3. Extract file again ( tar -xzvf(or -xvf) FreeFileSync**.tar.gz

enter image description here

answered Jun 24, 2022 at 1:39

Willie Cheng's user avatar

Willie ChengWillie Cheng

7,33813 gold badges52 silver badges67 bronze badges

Had the same error code:

tar -xvfz processed.json.gz

tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Turned out the file had the .gz extension but wasn’t compressed. Just removed the .gz and opened it.

answered Dec 14, 2022 at 14:20

RicarHincapie's user avatar

  • Печать

Страницы: [1]   Вниз

Тема: Не распаковываются архивы в Ubuntu  (Прочитано 6564 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
форумчанин

Качал различные архивы tar.gz (с FlashPlayer, RubyMine, Sublime Text), с помощью командной строки пробовал распаковать их. Не выходило. Пробовал из папки с загруженными файлами переносить архивы в домашнюю папку, и тот же результат. Что делать в данном случае?

Также пробовал открывать файл jar (Minecraft, да), предварительно установив джаву, видеодрайвер Nvidia и прочие необходимые штуки. Не выходило.

« Последнее редактирование: 31 Июля 2015, 10:43:31 от форумчанин »


Оффлайн
orionit

Дай вывод из консоли когда архив распаковываешь.


Пользователь решил продолжить мысль [time]31 Июль 2015, 11:57:06[/time]:


Качал различные архивы tar.gz (с FlashPlayer, RubyMine, Sublime Text), с помощью командной строки пробовал распаковать их. Не выходило. Пробовал из папки с загруженными файлами переносить архивы в домашнюю папку, и тот же результат. Что делать в данном случае?

Также пробовал открывать файл jar (Minecraft, да), предварительно установив джаву, видеодрайвер Nvidia и прочие необходимые штуки. Не выходило.

И для распаковки всех возможных архивов попробуй сделать так

sudo apt-get install xarchiver unrar

« Последнее редактирование: 31 Июля 2015, 11:16:55 от orionit-хант »

Всем добра как у бобра, а если вы и без добра добры, значит вы в душе бобры.


Оффлайн
форумчанин

orionit-хант,

caesar@caesar-desktop:~$ tar xfz rubymine-7.1.4.tar.gz
tar (child): rubymine-7.1.4.tar.gz: Функция open завершилась с ошибкой: Нет такого файла или каталога
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Вот вывод.


Пользователь решил продолжить мысль 31 Июля 2015, 11:30:34:


root@caesar-desktop:/home/caesar# sudo apt-get install xarchiver unrar
E: Не удалось получить доступ к файлу блокировки /var/lib/dpkg/lock — open (11: Ресурс временно недоступен)
E: Не удалось выполнить блокировку управляющего каталога (/var/lib/dpkg/); он уже используется другим процессом?

« Последнее редактирование: 31 Июля 2015, 11:30:34 от форумчанин »


Оффлайн
Sly_tom_cat

Функция open завершилась с ошибкой: Нет такого файла или каталога

Укажите правильный путь к файлу с архивом.

E: Не удалось получить доступ к файлу блокировки /var/lib/dpkg/lock — open (11: Ресурс временно недоступен)
E: Не удалось выполнить блокировку управляющего каталога (/var/lib/dpkg/); он уже используется другим процессом?

У вас еще какоето приложение в этот момент использует Apt (автоматические обновления, synaptic или что-то еще) нужно закрыть другие приложения.
Если других приложений, работающих с APT нет, тоесть точно нет, то можно руками удалить /var/lib/dpkg/lock (видимо чтото  использовавшее apt некорректно завершилось)


Оффлайн
orionit

форумчанин,

caesar@caesar-desktop:~$ tar xfz rubymine-7.1.4.tar.gz
tar (child): rubymine-7.1.4.tar.gz: Функция open завершилась с ошибкой: Нет такого файла или каталога
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

По моему архив не успевает докачаться когда будите скачивать подождите подольше или попробуйте скачать так

wget ссылка на архив для скачки

Всем добра как у бобра, а если вы и без добра добры, значит вы в душе бобры.


Оффлайн
форумчанин

Sly_tom_cat,
Как указывать?


Оффлайн
orionit

форумчанин,
Сначала попробуйте просто скачать и подождать подольше.
У вас в загрузках должно появиться

имя_архива.tar.gz и имя_архива.tar.gz.part подождите пока

имя_архива.tar.gz.partисчезнет.

« Последнее редактирование: 31 Июля 2015, 12:35:14 от orionit-хант »

Всем добра как у бобра, а если вы и без добра добры, значит вы в душе бобры.


Оффлайн
Sly_tom_cat

В командной строке есть замечательная функция автодополнения — нажмите ТАВ и все что однозначно можно напечатать в продолжение уже начатого — напечатается, если два раза нажать на таб то выдаст все возможные варианты продолжения.

Так вот вам нужно указывать полный путь к архиву если вы запускаете разархивацию не ровно из того же каталога где лежит файл. Но даже и в этом случае лучше набирать только начало названия файла а дальше ТАВ-ом дополнять — так ошибок в названии не будет.


Оффлайн
форумчанин

orionit-хант,
2015-07-31 17:50:48 (193 KB/s) — «RubyMine-7.1.4.tar.gz» сохранён [162776335/162776335]

caesar@caesar-desktop:~$ tar xfz rubymine-7.1.4.tar.gz
tar (child): rubymine-7.1.4.tar.gz: Функция open завершилась с ошибкой: Нет такого файла или каталога
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now


Оффлайн
Raf73

При наборе имени файла обратите внимание регистр. Файл.txt и файл.txt в линуксе — это совершенно разные файлы.


Оффлайн
Pilot6

форумчанин,
Ну нет такого файла  «rubymine-7.1.4.tar.gz», есть «RubyMine-7.1.4.tar.gz».
Не замечаете разницу?

Я в личке не консультирую. Вопросы задавайте на форуме.


Оффлайн
форумчанин

Pilot6,
caesar@caesar-desktop:~$ tar xfz RubyMine-7.1.4.tar.gz
caesar@caesar-desktop:~$

Ну хорошо. Вбил, но ничего не происходит. Вообще.


Пользователь решил продолжить мысль 31 Июля 2015, 13:21:38:


Переименовал файл.

caesar@caesar-desktop:~$ tar xfz rubymine-7.1.4.tar.gz
caesar@caesar-desktop:~$

Тоже ничего.

« Последнее редактирование: 31 Июля 2015, 13:21:38 от форумчанин »


Оффлайн
Pilot6

форумчанин,
А что должно происходить? Если ошибки нет, то значит архив распаковался.

Я в личке не консультирую. Вопросы задавайте на форуме.


Оффлайн
Sly_tom_cat

А рядом не появилось разархивированное?

Мне вообще не понятно зачем для работы с архивами лезть в консоль — в любом файловом менеджере — двойной клик откроет file-roller или аналог и там будет можно все сделать мышкой в гораздо более интуитивно понятном GUI интерфейсе.


Оффлайн
форумчанин

Sly_tom_cat,
А, точно. Появилось. Я просто не мог найти.
Вы уж извините, если кажусь необучаемым или глупым, лол.


  • Печать

Страницы: [1]   Вверх

I want to install django. I have the following instructions to do this:

    wget "http://www.djangoproject.com/download/1.4/tarball/" -O Django-1.4.tar.gz
    tar xzvf Django-1.4.tar.gz
    cd Django-1.4
    sudo python setup.py install

when I run the second line (i.e., tar xzvf Django-1.4.tar.gz) then I get the following message:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Is there any problem? Please help me.

asked Mar 22, 2013 at 18:01

user543489's user avatar

1

The error can mean 2 things depending on what file you downloaded. In the normal sense, when users download a file not ending with .gz it means the file is not a gzip format.

The other case is when the downloaded file is corrupted. I took my time to download the http://www.djangoproject.com/download/1.4/tarball/ file and it works with the line you are mentioning so it must mean the file was downloaded and somehow got corrupted. Download the file again.

Just to add that I had a problem about a year ago, similar to this, it was a memory problem. One of the memory slots was damaged (Memtest verified this). This is of course an extreme case, but wanted to mention it just in case.

What I would suggest is to do the following:

  1. Download file like this: wget http://www.djangoproject.com/download/1.4/tarball/ -O Django-1.4.tar.gz
    (No double quotes, just in case when copied from a website, they were the bbcode double codes and not the common ones used in the terminal)

  2. Decompress like you mentioned: tar xzvf Django-1.4.tar.gz

See if that works.

answered Mar 22, 2013 at 18:12

Luis Alvarado's user avatar

Luis AlvaradoLuis Alvarado

206k165 gold badges539 silver badges704 bronze badges

1

Please forget about running setup.py from source!

Use pip to install Python packages. It’s so much easier and preferred over easy_install / setup.py (Why use pip over easy_install?).

It’s as easy as:

  1. Install pip by installing the Ubuntu package: python-pip Install python-pip

  2. Install any package from PyPI like this:

     sudo pip install Django
    

Done. Replace Django with any other package from PyPI.

Community's user avatar

answered Jul 24, 2013 at 17:37

gertvdijk's user avatar

gertvdijkgertvdijk

66.1k33 gold badges185 silver badges282 bronze badges

The command sudo wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.0.v20131115.tar.gz&r=1 is wrong for two reason :

  1. The download link needs to be quoted since you use & which is a special in Bash. See http://www.gnu.org/software/bash/manual/bash.html#Definitions
  2. You’re using an old dead link. Going to jetty’s download page ( http://download.eclipse.org/jetty/ ) indicates http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.3.v20140225.tar.gz&r=1 as the right download link.

Thenceforward you’ve to use the following command :

sudo wget "http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.3.v20140225.tar.gz&r=1" -O jetty-distribution-9.1.3.v20140225.tar.gz`

The -O argument helps in outputing to the right filename.

After that, tar xvf jetty-distribution-9.1.3.v20140225.tar.gz should work.

Here, option x use extract mode, v shows more information (name of file being extracted) and f specifies that the following argument is the path to the archive to extract.

You don’t need the z option which indicates a gzip compressed archive since tar will recognize it automatically.

Finally, the - preceding options is deprecated AFAIK.

Another thing: I don’t recommend using sudo when it’s not really needed. Here you just want to download and extract an archive, that doesn’t need root privileges and you can do it in your home directory. It avoids doing mistakes which can lead to severe problems, especially when you don’t really know what you’re doing.

ali10086

Posts: 4
Joined: Fri Jul 16, 2021 12:24 pm

Os: Ubuntu 17x
Web: apache + nginx
tar: Error is not recoverable: exiting now

I need urgent help from your side. I have a VPS on AWS cloud having Vesta Cpanel install on Ubuntu 18 on it. I want to move my all vesta cpanel data into my locally installed vesta cpanel. So to archive this I give the below command

sudo /usr/local/vesta/bin/v-backup-user admin
the backup process is started but at the end of the backup its give me an error the
tar: Error is not recoverable: exiting now
and there is no disk spaces issue on my server.
could you please help me out on how to resolve this issue so that I can take backup successfully without any error?
Thanks in advance


ali10086

Posts: 4
Joined: Fri Jul 16, 2021 12:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: tar: Error is not recoverable: exiting now

Post

by ali10086 » Sat Jul 17, 2021 5:30 am

anyone? please help me


grayfolk

Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:

Os: CentOS 6x
Web: nginx + php-fpm
Re: tar: Error is not recoverable: exiting now

Post

by grayfolk » Sat Jul 17, 2021 6:06 am

ali10086 wrote: ↑

Sat Jul 17, 2021 5:30 am


anyone? please help me

Check if /backup/admin.log file exists.


ali10086

Posts: 4
Joined: Fri Jul 16, 2021 12:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: tar: Error is not recoverable: exiting now

Post

by ali10086 » Sat Jul 17, 2021 11:30 am

Sir, there is not admin.log file exsit.

after the above error «Error is not recoverable: exiting now» system made a tar file which size is 22GB when i restore this tar file system given me error this tar is currpted,

i have attached the image for your reference.

https://drive.google.com/file/d/1zXSBBE … sp=sharing

grayfolk wrote: ↑

Sat Jul 17, 2021 6:06 am

ali10086 wrote: ↑

Sat Jul 17, 2021 5:30 am


anyone? please help me

Check if /backup/admin.log file exists.


ali10086

Posts: 4
Joined: Fri Jul 16, 2021 12:24 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: tar: Error is not recoverable: exiting now

Post

by ali10086 » Sat Jul 17, 2021 4:38 pm

Very forum and very nice support.

fuck that find of forum. dirty community.

ali10086 wrote: ↑

Sat Jul 17, 2021 11:30 am


Sir, there is not admin.log file exsit.

after the above error «Error is not recoverable: exiting now» system made a tar file which size is 22GB when i restore this tar file system given me error this tar is currpted,

i have attached the image for your reference.

https://drive.google.com/file/d/1zXSBBE … sp=sharing

grayfolk wrote: ↑

Sat Jul 17, 2021 6:06 am

ali10086 wrote: ↑

Sat Jul 17, 2021 5:30 am


anyone? please help me

Check if /backup/admin.log file exists.



I was attempting to untar a .tar.gz file, but came across this error:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

The tar.gz file includes a .tar file, which when untarred results in:

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I tried both –ignore-zeros and –ignore-failed-read, although they both didn’t work.

Is there any way I could extract this file even if it is corrupted?

The file type in question: .tar.gz: Gzip Compressed Data, from a UNIX system.

asked Nov 5, 2012 at 11:54

iLinux85's user avatar

Check two items:

(1) Is the FILE INCOMPLETE due to a faulty download? Re-download, and use the -c option if your are using wget. (happens all the time).

(2) Does the .tar or .tar.gz filename have ILLEGAL CHARACTERS. It’s best to keep archive names simple, short, composed of letters and numbers. (happens all the time). So just rename the file. This one nailed me recently as I thought it would be convenient to include a time/date stamp as part of the archive name. BAD IDEA!

jasonwryan's user avatar

jasonwryan

70.1k33 gold badges191 silver badges224 bronze badges

answered Aug 9, 2015 at 4:20

SANDPOND's user avatar

SANDPONDSANDPOND

1411 silver badge3 bronze badges

1

You don’t. It appears the file has been truncated. How long is it? If you only have the first few bytes then you’re done.

answered Nov 5, 2012 at 13:55

psusi's user avatar

psusipsusi

16.8k3 gold badges37 silver badges47 bronze badges

are you unpacking the .tar.gz file on the same platform it was made on? there are some differences between older Unix versions of tar, such as the non-GNU versions of tar that have shipped with Solaris, and the GNU tar that ships with Linux, etc. If you’re going to unpack an archive with GNU tar, it’s best to create it with GNU tar.

how does your system look for disk space? was the disk full when you made the archive, or is it full as you attempt to unpack it?

did you create the archive with a cron job? without output redirection, cron can do funky things to archives due to limitations in the size of output it will allow to STDOUT. If you’re making an archive in cron, and you’re using -v with tar, try redirecting STDOUT to a file, and STDERR, too. See if that helps. tar -cvf archive.tar.gz /path/ 1>archive.stdout.log 2>archive.stderr.log or something like that.

answered Nov 5, 2012 at 14:24

Tim Kennedy's user avatar

Tim KennedyTim Kennedy

19k4 gold badges37 silver badges57 bronze badges

2

I had the same error.

My problem was trying to use tar to unzip before the upload was complete.

AdminBee's user avatar

AdminBee

20.8k18 gold badges47 silver badges69 bronze badges

answered Nov 30, 2022 at 20:40

Okomikeruko's user avatar

just faced this recently, solution was to rename the file (remove the _).E.g Bad file name which was causing issue MAA07-0100-0100-01AAA_show_tech_output.tgz , renaming this to MAA07-0100-0100-01AAA.tgz helped to resolve the issue.

answered Nov 23, 2018 at 9:48

fsociety's user avatar

My solution to the problem was to rename the tar archive twice. I know it does sound ridiculous, but it worked for me and saved a lot of time on rearchiving.

I had a big, 9 GB, tar gzip archive named ‘STRING152_20200221.tar.gz’ which produced the errors reported by the OP.
As advised above, I renamed it to just ‘STRING.tar.gz’. The errors persisted.
Then I renamed it back to the original name ‘STRING152_20200221.tar.gz’ and it unarchived successfully.

No manipulations with the archive except its name were done.

My tar version is ‘tar (GNU tar) 1.26’. I am also on CentOs (CentOS Linux release 7.4.1708 (Core))

answered Feb 25, 2020 at 9:39

user3804598's user avatar

Команда sudo wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.0.v20131115.tar.gz&r=1 неверна по двум причинам:

  1. Ссылка на скачивание должна быть указана, так как вы используете &, который является особенным в Bash. См. Http://www.gnu.org/software/bash/manual/bash.html#Definitions.
  2. Вы используете старую мертвую ссылку. Переход на страницу загрузки Jetty ( http://download.eclipse.org/jetty/ ) показывает http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.3.v20140225.tar.gz&r=1 как правильная ссылка для скачивания.

Затем вы должны использовать следующую команду:

sudo wget "http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.3.v20140225.tar.gz&r=1" -O jetty-distribution-9.1.3.v20140225.tar.gz`

Аргумент -O помогает в выводе на правильное имя файла.

После этого tar xvf jetty-distribution-9.1.3.v20140225.tar.gz должен работать.

Здесь опция x использует режим извлечения, v показывает дополнительную информацию (имя извлекаемого файла), а f указывает, что следующий аргумент — это путь к архиву, который нужно извлечь.

Вам не нужна опция z которая указывает сжатый архив gzip так как tar распознает его автоматически.

Наконец, - предыдущие варианты устарели AFAIK.

Другое дело: я не рекомендую использовать sudo когда это действительно не нужно. Здесь вы просто хотите скачать и распаковать архив, который не нуждается в привилегиях суперпользователя, и вы можете сделать это в своем домашнем каталоге. Это позволяет избежать ошибок, которые могут привести к серьезным проблемам, особенно когда вы действительно не знаете, что делаете.

Понравилась статья? Поделить с друзьями:
  • Error is not a class template
  • Error is mater ignorantia est
  • Error is logged with tag перевод
  • Error ipv4 fib table does not exist
  • Error ipc connection error connection refused