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就行了。







猜你喜欢

转载自blog.csdn.net/FYSGXFZ/article/details/80425860
0条评论
添加一条新回复