我需要使用wget下载这个文件http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。
我使用命令
wget http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz
该文件将被下载,但当我试图解压缩该文件时,我会得到以下内容
tar -zxvf jdk-7u67-linux-x64.tar.gz
gzip: stdin: not in gzip format
tar: Child return
我正在尝试将7下载并安装到我的Ubuntu机器上。我已经从Oracle下载了该文件(JDK-7u25-Linux64.tar.gz),但是当我尝试使用tar -xvf jdk-7u25-linux-x64.tar.gz解压缩该文件时,会得到以下错误:
tar: jdk-7u25-linux-x64.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
我做错什么了吗?如果不是,我该怎么解决呢?
我试图从arm32v7/golang:1.13.4-alpine构建一个docker镜像,这是我在mac上成功构建的,但当我试图在linux机器上构建它时,它抛出了一个exec format error。在exec format error上有这么多问题,但找不到任何解决方案。我的docker文件如下所示
FROM arm32v7/golang:1.13.4-alpine as staging
RUN .....
RUN .....
RUN tar -czvf sbuild.tar.gz ./servicebuild
......
......
CMD tar -xzvf sbuild.ta
我想在我的bash脚本中的for循环中使用命令替换,如下所示:
for file in `ls`; do
echo "$file"
tar xzvf "$file"
done
问题是在提取每个文件时,在下一次迭代中,ls将再次执行,因此for循环将迭代新的集合。我决定在开始循环之前捕获ls输出,并在循环中使用它:
files=`ls`
for file in ${files}; do
echo "$file"
tar xzvf "$file"
done
但看起来并没有运行ls并将
我想解压缩一个文件,我写了这个命令:
bunzip2 linux-source-4.15.0.tar.bz2
我得到了这个:
bunzip2: Input file linux-source-4.15.0.tar.bz2 is not a normal file.
我想知道到底是什么问题。
我运行了linux-source-4.15.0.tar.bz2文件,得到:
linux-source-4.15.0.tar.bz2: symbolic link to linux-source-4.15.0/linux-source-4.15.0.tar.bz2
我正在尝试写一个python程序,它最终将接受文件的命令行参数,确定它是tar还是zip等文件,然后相应地提取它。我现在只是试图让tar部分正常工作,但我收到了多个错误。我要检查的文件位于我的~/目录中。任何想法都是很棒的。
#!/usr/bin/python
import tarfile
import os
def open_tar(file):
if tarfile.is_tarfile(file):
try:
tar = tarfile.open("file")
tar.extractall()
Ubuntu版本: 19.10
代码编写器版本: CCS10.1.0.00010_linux-x64
我正试图在Linux上安装。但是在README的Composer文件中,请这样说。
Code Composer Studio for Linux README
-----------------------------------------
Please note that use of anti-virus software or a firewall may cause issues
during installation. McAfee software in pa
我尝试使用以下命令提取.tar.gz文件
spgt@ubuntu:~$ tar xvf 12.0sp1_232_quartus_free_linux.tar.gz
但这是我按回车后看到的
tar: 12.0sp1_232_quartus_free_linux.tar.gz:
Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
我是Linux中的新手,当我想要解压缩satrap文件夹中的tar文件时,我会得到以下错误:
You may not specify more than one `-Acdtrux' or `--test-label' option
Try `tar --help' or `tar --usage' for more information.
我在Linux中编写了这个命令:
tar -xf satrap.tar.gz -c /satrap_dir
请帮帮我。
我按照以下步骤在我的Debian中安装GHDL编译器,但是现在我需要卸载这个编译器来安装x64版本,但我不能。
By downloading the binaries and unpacking them manually:
$ wget http://ghdl.free.fr/site/uploads/Main/ghdl-i686-linux-latest.tar
$ sudo tar xvf ghdl-i686-linux-latest.tar
(这将生成文件ghdl-0.29-i 686-pc-linux.tar.bz 2)
$ cd ghdl-0.29-i686-pc-lin
我试图提取下载文件夹中的某个文件,给我的说明如下:
在终端中键入以下内容,它将被执行
tar -xvJf tor-browser-linux32-3.6.2_enUS.tar.xz
但是,当我在终端中输入它时,它会产生错误:
tar (child): tor-browser-linux32-3.6.2_enUS.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is
我使用下面的代码来创建tgz文件。当我试图在压缩后导出tgz文件时,我在Linux上会遇到问题。但当我在FreeBSD上试用时,它提取出了成功的信息。
import tarfile
import os
def create_tgzfile(output_filename, source_dir,item_list):
os.chdir(source_dir)
tar = tarfile.open(output_filename+".tar.gz", "w")
for name in item_list:
tar.add
我是Ubuntu的新手,正在尝试将Go安装到我的服务器上,但在尝试使用Go时出现错误。
Command 'go' not found, but can be installed with:
sudo apt install golang-go # version 2:1.13~1ubuntu2, or
sudo apt install gccgo-go # version 2:1.13~1ubuntu2
我用来安装Go的命令如下。
$ wget https://dl.google.com/go/go1.15.10.linux-amd64.tar.gz
$ sudo ta