I go to use the updatedb command to update the index and I get
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
fyi The locate command is working, e.g.
$ locate Index.xml
/usr/share/mysql/charsets/Index.xml
durrantm.../durrantm$
How can I overcome this issue when trying to run updatedb?
Best Answer
You have to run the updatedb command as the super user. For example,