如何安装 tar.gz 文件

如何安装 tar.gz 文件

尝试使用终端上的常规提取和安装命令来安装 Catlateral Damage,但它总是向我抛出烦人的错误。可能是遗漏了一些显而易见的东西。存档和文件都在我的桌面上。注意:提取存档创建的文件最初名为相同,但随后切换为“Linux”。我也尝试将其重命名为 CatlateralDamage。

rachael@rachael-desktop:~$ cd /home/rachael/desktop/catlateraldamage
bash: cd: /home/rachael/desktop/catlateraldamage: No such file or directory
rachael@rachael-desktop:~$ cd /home/rachael/desktop/catlateral damage
bash: cd: /home/rachael/desktop/catlateral: No such file or directory
rachael@rachael-desktop:~$ cd /home/rachael/desktop/catlateraldamage
bash: cd: /home/rachael/desktop/catlateraldamage: No such file or directory
rachael@rachael-desktop:~$ cd /home/rachael/desktop/catlateraldamage_v4.1a_linux.tar.gz
bash: cd: /home/rachael/desktop/catlateraldamage_v4.1a_linux.tar.gz: No such file or directory
rachael@rachael-desktop:~$ tar -xzf catlateraldamage_v4.1a_linux.tar.gz
tar (child): catlateraldamage_v4.1a_linux.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rachael@rachael-desktop:~$ sudo apt-get install catlateraldamage
[sudo] password for rachael: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package catlateraldamage
rachael@rachael-desktop:~$ cd /home/rachael/desktop/linux 
bash: cd: /home/rachael/desktop/linux: No such file or directory
rachael@rachael-desktop:~$ tar -zxvf CatlateralDamage_v4.1a_Linux.tar.gz
tar (child): CatlateralDamage_v4.1a_Linux.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rachael@rachael-desktop:~$ 

答案1

尝试这些命令,

cd ~/Desktop
tar -xzvf CatlateralDamage_v4.1a_linux.tar.gz

答案2

cd /home/rachael/Desktop

然后

 tar -zxvf CatlateralDamage_v4.1a_Linux.tar.gz

了解更多信息

相关内容