在安装chrome浏览器时,需要做软连接
https://blog.csdn.net/weixin_39006917/article/details/108637574
执行:
ln -s xxx /bin/chrome
不小心输错,此时操作已经执行。
查看bin目录下的软连接,发现错误的软连接确实已经建立(红颜色并闪烁)
ll
删除上述错误的chrome软连接
rm -rf ./chrome
再执行
ln -s /usr/bin/google-chrome-stable /bin/chrome
上面命令的/usr/bin/google-chrome-stable是google-chrome-stable的安装路径。
报错:
ln: target ‘/bin/chrome’ is not a directory
可能是环境有延时,退出Xshell,再连接一次服务器,问题就可以解决。