Ubuntu中的No such file or dictionary

这一次我在安装vmwaretools的过程中碰到了这种坑,把我坑的不轻,因此记录下来希望读者若有相同情况以此为诫。


首先出现No such file or dictionary这种报错提示时我们应该分析这种提示前面的一句话:例如输入:


cd file:///home/seconp/Desktop


我碰到的报错提示是:


bash: cd: file:///home/seconp/Desktop: No such file or directory


中文:进入子程序:cd(命令符):文件路径:没有相应的文件或者目录


我真的是无语了,明明是存在的,为什么会报这种错呢?好的让我们来了换种方式去试一下。


/home/seconp/Desktop


这样就成功地进入了文件夹,好吧。。。。。为神魔呢?


来看看官方解释的  /home/*  :
About the home directory:


You can have as many /home/username directories as you have users.


Each user has full read/write/execute access to his or her /home/username directory.


Each user can make their /home/username directory unreadable by other users.
Each user can fully customize their Desktop layout/background, sounds, window manager, applications, etc.
The home directory is:
Where your Desktop resides.


Where your documents, pictures, music, videos, audio, and pretty much everything else can be stored.
Where your application settings are stored, in hidden files and directories (their names start with a . ) that you should not touch unless you know what you are doing. Eg, /home/username/.thunderbird contains your Thunderbird emails and contacts, /home/username/.mozilla contains Firefox bookmarks, passwords, history, plugins…
The only place (with the exclusion of removable drives and the /tmp directory) within the Ubuntu file system where a user can freely create/modify/remove files and directories without needing root permissions or the sudo command.


写了一大堆,反正翻译翻译就那么回事儿吧。


但是file:///home是一个域名,知道了吗?一个是链接,一个是路径,当然不同了,所以在终端输入cd file:///home/seconp/Desktop时会出现错误。


上面不是说了出现出现No such file or dictionary这种报错提示时我们应该分析这种提示前面的一句话吗?好的,我们再举一个例子。此时,在安装vmware时错误提示为:


bash: .vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory


中文:进入子程序:vmware-install.pl:/usr/bin/perl:坏的解释器:没有相应的文件或者目录


这种情况发生了你就需要看看perl坏在哪了。或者说是你就没有安装perl,那就安装一个perl就行了。







  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值