是因为Google-Chrome不能以 root 运行的原因,解决方式如下:
用hexedit去编辑chrome文件,把geteuid改getppid。
搜索并安装hexedit:
1
# apt-get hexedit
用hexedit修改
/opt/google/chrome/chrome文件,如果提示文件为只读,采用以下方法:1
2# cp chrome /root/
# hexedit /root/chrome这样便可以修改/root/目录下的chrome了,打开chrome,按Tab键,再按
Ctrl+s搜索geteuid,找到后,直接输入getppid,将会覆盖掉geteuid,最后按Ctrl+x保存。注意:路径如果不同的话请自行使用
dpkg -c安装包来察看安装到哪里了。将
/root目录下的chrome复制回/opt/google/chrome/,覆盖掉原来的chrome文件即可。打开chome,现在可以正常使用了。