分页: 1 / 1

使用tar与cd命令出错

发表于 : 2009-03-06 23:31
ken48976
我昨天晚上才刚安装好ubuntu 9.04 alpha5,然后给ubuntu安装一些软件,是tar.gz的源,使用了tar命令安装,但是总是提示出错。
在网上查找了很多资料都没有找到解决方法。

第一个是用tar命令解压tar.gz压缩包(tar.gz文件放在desktop)
kentop@kentop-laptop:~$ tar -zxvf 1.tar.gz
tar: 1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
用命令不行,后面我用manager打开,然后解压在desktop上。
然后用命令
kentop@kentop-laptop:~$ cd xten-xlite
bash: cd: xten-xlite: No such file or directory
到现在,然间都还没有装成。

希望有人可以帮助我。

Re: 使用tar与cd命令出错

发表于 : 2009-03-06 23:37
adagio

代码: 全选

tar -zxvf ~/Ddesktop/1.tar.gz
或者

代码: 全选

tar -zxvf ~/桌面/1.tar.gz

Re: 使用tar与cd命令出错

发表于 : 2009-03-06 23:46
chattan
命令用错了而已


你没有在的当前目前没有在 1.tar.gz的目录下

Re: 使用tar与cd命令出错

发表于 : 2009-03-06 23:46
chattan
小问题,归档

Re: 使用tar与cd命令出错

发表于 : 2009-03-06 23:46
Element
adagio 写了:

代码: 全选

tar -zxvf ~/Ddesktop/1.tar.gz
或者

代码: 全选

tar -zxvf ~/桌面/1.tar.gz
Desktop吧
LZ解压前可以先 ls 看看要解压的包在不在当前目录下

Re: 使用tar与cd命令出错

发表于 : 2009-03-07 0:16
ken48976
原来是我弄错了!! :em20

尝试一下。

那个cd的命令直接那样就可以了吗?

还有哦,我安装了fcixt,但是不知该改怎么切换输入法.... :em20

Re: 使用tar与cd命令出错

发表于 : 2009-03-07 0:34
ken48976
又遇到问题了
tar -zxvf ~/Desktop 1.tar.gz
tar: /home/kentop/Desktop: Cannot read: Is a directory
tar: At the beginning of tape: quitting now
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: 1.tar.gz: Not found in archive
tar: Error exit delayed from previous errors
又是什么问题啊? :em20