/etc/network/if-up.d/upstart: 38: cannot create /run/network/ifup.eth0: Directory nonexistent run-parts: /etc/network/if-up.d/upstart exited with return code 2 …done.

I got this error today after an upgrade and Google searched a lot. Turns out some one had encountered this error and had got the perfect fix on Nemethge’s Blog

I am not sure exactly why this works but it seems like just symlinking your /var/run with your /run seems to do the trick. Anyway, you have him to thank for coming up with this solution. I can safely say it works (just tried it now). I have quoted the solution below just in case of dead link.

Note: This also solved the problem of my network settings not being found and Ubuntu waiting 60 secs before loading. So if your getting this problem then it could be related to the solution below however I have the same network problem on another network and that install of Ubuntu can find its network at startup despite the error message (can login remotely without having to restart the network for one). So this solution may not solve every case you get the network error message but it will in some cases.

It seems the move from /var/run to /run did not work during the upgrade process.

I fixed with this:

cd /var
mv run _run
ln -s /run .


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s