Added updatedb (mlocate) to sudo rules
diff --git a/tests/rules/test_sudo.py b/tests/rules/test_sudo.py
index 195bee4f9..4a4931c6b 100644
--- a/tests/rules/test_sudo.py
+++ b/tests/rules/test_sudo.py
@@ -12,6 +12,7 @@
     'need root',
     'shutdown: NOT super-user',
     'Error: This command has to be run with superuser privileges (under the root user on most systems).',
+    'updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db',
     'must be root',
     'You don\'t have access to the history DB.',
     "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'"])
diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py
index 97aab31f4..0c83ba7b8 100644
--- a/thefuck/rules/sudo.py
+++ b/thefuck/rules/sudo.py
@@ -24,7 +24,8 @@
             'you don\'t have write permissions',
             'use `sudo`',
             'sudorequirederror',
-            'error: insufficient privileges']
+            'error: insufficient privileges',
+            'updatedb: can not open a temporary file']
 
 
 def match(command):

Added the pattern for ```updatedb``` (mlocate), if command is run without ```sudo``` privileges, to ```rules/sudo.py```