问题 :Cannot register service: RPC: Unable to receive
原因:rpcbind程序没有安装
解决方法 :apt-get install rpcbind
输入rpcinfo -p 查看rpc服务已经启动。
说明 :RPC即Remote Procedure Call Protocol(远程过程调用协议),RPCBIND用于取代旧版本中的portmap组件。 简单说,RPCBIND就是为了将不同服务与对应的端口进行绑定,以便支持机器间的互操作。http://linux.die.net/man/8/rpcbind
另附《鸟哥私房菜LINUX》:http://vbird.dic.ksu.edu.tw/linux_basic/linux_basic.php – sonyanda2012-09-13
问题 :sudo: unable to resolve host ubuntu
原因: /etc/hostname 和 /etc/hosts 中 127.0.1.1对应的主机名不一致
解决方法 :把上述两个文件中的主机名改为一致。
问题 :安装 eldk arm-linux-gcc 交叉编译环境
过程中遇到
error: failed to stat /home/user/.gvfs: Permission denied ,安装失败
原因: http://ar.newsmth.net/thread-d4b92326f98b2a.html
解决方法 :umount .gvfs
问题 :is not in the sudoers file.This incident will be reported
原因:默认用户不是超级用户
解决方法如下:
1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先摁一下Esc键,然后输入":wq")退出。
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
至此,问题解决。
转载他人的 仅供参考