解決Ubuntu12.04下rpcbind: cannot open '/var/run/rpcbind/rpcbind.xdr' file for reading


不知道怎么回事,實驗室的電腦在同學搞過之后,每次啟動都報錯

rpcbind: cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)
rpcbind: cannot open '/run/rpcbind/portmap.xdr' file for reading, errno 2 (no such file or directory)

如果你的錯誤是

rpcbind: cannot open '/var/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)
rpcbind: cannot open '/var/run/rpcbind/portmap.xdr' file for reading, errno 2 (no such file or directory)

那這個解決方法也是一樣的

這個錯誤並沒有什么不好的影響,但是每次啟動都出現這樣的錯誤還是讓人很不爽,這個錯誤在Debian官網

和Ubuntu的網站上都有人報這個錯誤,具體的討論大家可以看如下幾個網址:

https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/835833

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645880

https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/947638

這里只需要修改/etc/init下面的portmap.conf文件,將其中的的OPTIONS="-w"注釋起來

然后加入一行OPTIONS="",然后保存修改就可以了。

因為Ubuntu目前默認的使用upstart進行啟動的,所以所使用的啟動文件都是放在init目錄下,所以在修改文件時要修改這里

,而init.d是由以前的init方式進行啟動的,但是目前的ubuntu一般都采用的是upstart啟動,所以這個地方改的時候不要修改錯了。

之后輸入reboot重新啟動,就不會再報那兩個錯誤了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM