This kind of error occured in two case
- permission(should be drwxrwxrwt and owened by root)
- space
To check space(disk usage)just run the command on terminal
df -h
Will list the disk usage on unix and get the output like
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 28G 15G 12G 58% /
If the root(mounted on /) usage is 100%.
You need to clean the tmp directory or restart the machine or make some space on the root.