Recently in the deployment environment, when decompressing during the installation of memcached,
Unzip command: tar -zvxf memcached-1.4.34.tar.gz
Encountered a problem,
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Now I provide the solution I summarized:
method one:
#tar -vxf memcached-1.4.34.tar.gz
Use the cvf parameter when compressing the tar package, the xvf parameter when decompressing it,
or the czvf parameter when compressing it, and the xzvf parameter when decompressing it.
If the bz package is encountered, replace the z parameter with the corresponding j parameter
Of course, if you do not solve your problem with method one like me, then look at method two. Look at the picture below, this baby is so bad that has not been resolved.
Method Two:
I found a way on the Internet at this time. It is to rename the memcached compressed package and decompress it.
Command: mv memcached-1.4.34.tar.gz memcached-1.4.34.tar
Unzip again: tar -zvxf memcached-1.4.34.tar
However, it didn’t work, and my file still reported an error. This method did not solve my problem. And I feel that this method is actually similar to one.
Of course, some people can use this method. The reason for this problem may be that the installation package was originally memcached-1.4.34.tar, but the suffix was changed later.
Method three:
I accidentally saw an article saying that it might be because the installation package I downloaded online was damaged.
How to determine whether it is damaged?
Command: ls -lht view file size
And compared with the size of the installation package stored on Windows .
Sure enough, there is a problem with the installation package itself.
Well, my problem is solved here. Of course, if you have a small partner that solves your problem and a new problem arises, then you can look at method four.
Method four:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
It is said that this is a problem of FTP transmission, and ascii transmission may be used during transmission. In this case, change to binary transmission.
Read More:
- [Linux] solve the error of decompressing JDK on Linux gzip: stdin: not in gzip format
- tar.gz and tar.bz2 Unzip command
- Decompression error: gzip: stdin: invalid compressed data — CRC error
- Start gzip in node environment of project optimization
- The 406 status code can not find acceptable representation is returned in spring MVC
- Import / export. SQL file / gzip file for MySQL under Linux
- An error is displayed when virtualbox uses modifyhd command to expand capacity: Resize medium operation for this format is not implemented yet
- Tar: due to the previous error, it will exit with the last error state
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- SystemError: new style getargs format but argument is not a tuple
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
- A solution to [error] LD returned 1 exit status
- Solve the problem that the delete request is not available under SpringBoot. There was an unexpected error (type=Method Not Allowed, status=405).
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Solution to dev C + + error [error] LD returned 1 exit status
- invalid connection string format, a valid format is host:ip:port
- Solutions to the problem of collect2: error: LD returned 1 exit status
- curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ig
- VUEJS Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of