When I run ‘flutter doctor’ it show
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale
zh-Hans-CN)
• Flutter version 1.17.5 at /Library/flutter
• Framework revision 8af6b2f (2 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/mac/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Users/mac/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[!] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with
is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods. For more info, see
#14293.
To re-install CocoaPods, run:
sudo gem install cocoapods
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.38.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[!] Connected device
! No devices available`
But when I run 'flutter pub get' it show
`__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors.
Failed to extract .tar.gz stream to /Library/flutter/.pub-cache/_temp/dirsllhkl (exit code 1).
package:pub/src/io.dart 898:5 extractTarGz
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 398:11 BoundHostedSource._download
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 264:13 BoundHostedSource.downloadToSystemCache
package:pub/src/entrypoint.dart 407:48 Entrypoint._get.
dart:async runZoned
package:pub/src/http.dart 279:10 withDependencyType
package:pub/src/entrypoint.dart 403:12 Entrypoint._get
dart:async Future.wait
package:pub/src/entrypoint.dart 252:18 Entrypoint.acquireDependencies
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve
dart:async _completeOnAsyncReturn
package:pub/src/source/hosted.dart BoundHostedSource.withPrefetching
dart:async _completeOnAsyncReturn
package:pub/src/rate_limited_scheduler.dart RateLimitedScheduler.withPrescheduling
dart:async _completeOnAsyncReturn
package:pub/src/source/hosted.dart BoundHostedSource.withPrefetching.
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve.
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver._result
This is an unexpected error. Please run
pub --trace '--verbosity=warning' get --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
Running "flutter pub get" in express-customer-app...
pub get failed (1; and include the logs in an issue on https://github.com/dart-lang/pub/issues/new)
This error show after I update Mac os
Who can help me, thank you
I have written a little script that tars and compresses a list of directories + files.
The script appears to run succesfully, in that a useable .tar.gz file is created after the script runs.
However, I get this annoying message after the script finishes:
tar: Exiting with failure status due
to previous errors
I do not see any error messages whilst the script is working, and like I said, the produced file can be uncompressed with no warnings/errors. Since I am using this as part of my backup, I want to make sure that I am not ignoring something serious.
What are the possible reasons that this error/warning message is being produced — and can I safely ignore it?. If I cant ignore it, what are the steps to diagnose and resolve the error?
I am running on Ubuntu 10.0.4
asked Jul 29, 2010 at 7:17
You will get that message if, for any reason, tar can’t add all of the specified files to the tar. One if the most common is not having read permission on one of the files. This could be a big problem since you are using this for backup. If you are using the -v
flag, try leaving it off. This should reduce the output and let you see what is going on.
answered Jul 29, 2010 at 11:22
KeithBKeithB
9,8062 gold badges22 silver badges16 bronze badges
3
The problem is the f
argument. It takes the next value as the filename, so it must be the last argument:
tar cvzf output.tgz folder
or:
tar -cvzf output.tgz folder
These are both the same and don’t produce an error.
Worthwelle
4,43811 gold badges19 silver badges31 bronze badges
answered Jan 28, 2013 at 9:21
1
Sometimes backing up files that might change during the backup like logfiles, you might find useful the tar option ‘—ignore-failed-read’ (I’m on Debian Linux, not sure for non gnu tar).
Standard output and error can be redirected in 2 different files with something like:
LOGDIR='/var/log/mylogdir'
LOG=${LOGDIR}/backup.log
ERRLOG=${LOGDIR}/backup.error.log
DATE=$(date +%Y-%m-%d)
HOSTNAME=$(hostname)
DATA_DIRS='/etc /home /root'
tar --ignore-failed-read -f ${BACKUP_DIR}/${HOSTNAME}-${DATE}.tgz -cvz ${DATA_DIRS} > $LOG 2> $ERRLOG
I find this to be generally safe, but please be careful though as tar won’t stop …
answered Jan 17, 2014 at 12:24
0
I was having the same issue and none of the above answers worked for me. However, I found that running the following command worked:
tar -cpzf /backups/fullbackup.tar.gz --exclude=backups --exclude=proc --exclude=tmp --exclude=mnt --exclude=sys --exclude=dev --exclude=run /
The errors that were being referred to in tar: Exiting with failure status due to previous errors
can be identified by turning off the -v option. Upon review, the errors came from directories like /run
and /sys
.
By excluding these directories, it works just fine. Hope this helps anyone with a similar issue.
answered Oct 10, 2016 at 15:03
DomainsFeaturedDomainsFeatured
1891 gold badge2 silver badges9 bronze badges
I had the same problem. All i did was to remove the dash («-«) from the command.
Instead of typing it as
tar -cvfz output.tar.gz folder/
try typing it as
tar cvfz output.tar.gz folder/
I am unaware of why the dash was causing problems in my case but at least it worked.
Tak
2832 silver badges5 bronze badges
answered Sep 10, 2011 at 23:06
4
You have misunderstood an earlier answer. The problem is not the -
, it is where the f
is in your argument list.
tar cvfz target.tgz <files>
Will try to create an archive called «z», as that is the text after f
. The error message is because tar can’t find «target.gz» to add to archive «z».
tar cvzf target.tgz <files>
Will correctly create target.tgz and add files to it. This is because target.tgz is the first text after the f
argument.
Jamie Taylor
1,3413 gold badges17 silver badges27 bronze badges
answered Oct 19, 2013 at 7:52
1
Usually you can ignore that message. If there are any changes (such as file deletions/creations/modifications) to underlying directory tree during tar creation, it will throw that message. Also if there special files like device nodes, fifos and so on, they will cause that warning.
Are you sure you can’t see any culprit files? Try with tar cvfz yourtarball.tgz /your/path
answered Jul 29, 2010 at 7:26
I had a similar issue untarring a file I had received. Turns out I didn’t have permission to write the files in the archive owned by root. Using sudo fixed it.
answered Apr 23, 2019 at 18:33
Mac OS
I have a file, images.tar.gz. , which contains about 7000 .png images. I need to unzip this file.
But when I use terminal to unzip it
tar zxvf /Users/JourneyWoo/images_002.tar.gz
I always encounter this problem
... ...
x images/00003910_000.png
x images/00001934_002.png
x images/00002250_001.png: gzip decompression failed
tar: Error exit delayed from previous errors.
In this way, I cannot get the whole dataset in this .tar.gz file due to the break.
I also used chmod u+r /Users/JourneyWoo/images_002.tar.gz
, but it did not work.
Maybe the problem about one of the png images in this .tar.gz file? How can I deal with this problem?
REALLY THANKS!
asked Oct 27, 2017 at 12:11
3
The problem lies in the fact that Mac OS uses bsdtar. When I have a similar problem, I installed gnutar (most Linux systems use ).
brew install gnu-tar
gtar -ztvf archive.tar.gz
answered May 12, 2018 at 20:25
mrDzurbmrDzurb
1111 silver badge3 bronze badges
2
The file is corrupted. You need to try to get a good copy from wherever it came from, or if it was corrupted when created, you need to get it regenerated from the images. The problem has nothing to do with the .png files. The problem is that the .tar.gz is corrupted.
(By the way «unzip» is the wrong verb here, since it is not a zip file. «extract» would be the correct verb.)
answered Oct 27, 2017 at 22:16
Mark AdlerMark Adler
95.6k13 gold badges112 silver badges154 bronze badges
1
Ошибка при расспаковке архивов
Модератор: Bizdelnick
-
demontager
- Сообщения: 250
- Статус: Seaman
- ОС: Gentoo x86_64
- Контактная информация:
Ошибка при расспаковке архивов
Заметил одну непонятную вещь: есть архив под названием yaph-0.91.tar.gz , распаковываю его в nautilus или с терминала, выдаёт всё время:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
При чём я думал что это что-то с архивом, потом нашёл другой архив с таким же расширением gspca-m5602-c45131de6a3a.tar.gz и та же самая ошибка, в чем тут пробема?
OS:Gentoo amd64
-
nesk
- Сообщения: 2268
- Статус: Линукссаксовец
- ОС: MS Windows XP Home SP3
- Контактная информация:
Re: Ошибка при расспаковке архивов
Сообщение
nesk » 08.04.2009 21:28
demontager писал(а): ↑
08.04.2009 20:58
Заметил одну непонятную вещь: есть архив под названием yaph-0.91.tar.gz , распаковываю его в nautilus или с терминала, выдаёт всё время:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
При чём я думал что это что-то с архивом, потом нашёл другой архив с таким же расширением gspca-m5602-c45131de6a3a.tar.gz и та же самая ошибка, в чем тут пробема?
попробуйте вручную в консоли (как обычно в линуксе)
выполнить команду
file yaph-0.91.tar.gz
Если она напишет, что это действительно tar архив, тогда так же вручную
tar -xzvf yaph-0.91.tar.gz
Удачи
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.
0xDEFEC8ED
-
demontager
- Сообщения: 250
- Статус: Seaman
- ОС: Gentoo x86_64
- Контактная информация:
Re: Ошибка при расспаковке архивов
Сообщение
demontager » 08.04.2009 21:35
Вот, что выдаёт:
pal@pal-laptop:~/download$ file yaph-0.91.tar.gz
yaph-0.91.tar.gz: gzip compressed data, max compression
pal@pal-laptop:~/download$ tar -xzvf yaph-0.91.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
pal@pal-laptop:~/download$
Архив, но почему не расспаковывается?
OS:Gentoo amd64
-
nesk
- Сообщения: 2268
- Статус: Линукссаксовец
- ОС: MS Windows XP Home SP3
- Контактная информация:
Re: Ошибка при расспаковке архивов
Сообщение
nesk » 08.04.2009 21:54
Ok
тогда давайте попробуем так:
сначала
gzip -d yaph-0.91.tar.gz
если команда пройдет успешно, то получиться файл yaph-0.91.tar
а после этого
tar -xvf yaph-0.91.tar
В линуксе не соскучишься. Разархивировать файл — отдельный полноценный квест, в конце которого вы получите кучу экспов которые обязательно пригодятся Вам в жизни.
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.
0xDEFEC8ED