因此,我正在尝试安装apache,在我试图解压缩tar文件时,我得到了这个错误。
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now我试图使用以下命令解压缩它:tar xf apache-tomcat-9.0.10.tar.gz
我使用以下curl命令下载了该文件:
curl -O http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-9/v9.0.10/bin/apache-tomcat-9.0.10.tar.gz```发布于 2019-08-15 21:25:12
发现您的gz文件可能只是一个html页面:
>cat apache-tomcat-9.0.10.tar.gz
><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
><html><head>
><title>404 Not Found</title>
></head><body>
><h1>Not Found</h1>
><p>The requested URL /pub/software/apache/tomcat/tomcat-9/v9.0.10/bin/apache->tomcat-9.0.10.tar.gz was not found on this server.</p>
><hr>
><address>Apache/2.2.22 (Fedora) Server at mirror.cc.columbia.edu Port 80</address>
></body></html>发布于 2019-08-15 21:07:52
问题是URL是不正确的。尝试:
curl -O http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-9/v9.0.22/bin/apache-tomcat-9.0.22.tar.gz或9.0.10版本的其他镜像
https://askubuntu.com/questions/1166010
复制相似问题