You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Vagrant(1.8.5) using bento/ubuntu-14.04(virtualbox), when I run sudo apt-get update I get the following: E: Unable to determine file size for fd 9 - fstat (2: No such file or directory)
This is using the most recent bento box from Atlas. I could have sworn that several months ago (last time i used Vagrant plus ubuntu) that I was able to run that command.
I found the issue, leaving here in case a future person finds this.
This was caused by my Vagrantfile. It had /tmp mounted to the host machine. However when you run sudo apt-get update it is trying to write to /tmp but it cant do it properly.
Remove /tmp as a shared folder and it will go back to normal operations.
Reacted by Joakim Hedlund, crisansou, atuu1212, Romeu Fronzaroli and ojcharles
Activity
[-]Error on "sudo yum update"[/-][+]Error on "sudo apt-get update"[/+]kylegoch commentedon Sep 28, 2016
I found the issue, leaving here in case a future person finds this.
This was caused by my Vagrantfile. It had
/tmpmounted to the host machine. However when you runsudo apt-get updateit is trying to write to/tmpbut it cant do it properly.Remove
/tmpas a shared folder and it will go back to normal operations.