Results 1 to 8 of 8

Thread: [SOLVED] Linux command: updatedb

  1. #1
    Join Date
    Mar 2008
    Beans
    164

    [SOLVED] Linux command: updatedb

    When I try to update the database I get:


    Code:
    $ updatedb
    updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
    What am I doing wrong?

    Thanks

    EDIT: sudo....

    sorry found the answer. silly me.
    Do NOT run any command resembling sudo rm -rf /. It is the 10-character code of death

  2. #2
    Join Date
    Feb 2008
    Location
    $pwd
    Beans
    329
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] Linux command: updatedb

    haha, glad to see that you had resolve your own problem.
    Unique Beautiful Unlimited New Trust Unix

  3. #3
    Join Date
    Sep 2008
    Beans
    1

    Re: [SOLVED] Linux command: updatedb

    I am total newbie ! I have the same problem. How did you solved it ?

    Can you please elaborate ?

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Linux command: updatedb

    Quote Originally Posted by mr.circuit View Post
    I am total newbie ! I have the same problem. How did you solved it ?

    Can you please elaborate ?
    You run the command as:
    Code:
    sudo updatedb
    If you aren't familiar with sudo, it will ask for your password. As you type you won't see it. Just type it completely and then hit Enter.

    Welcome to the ubuntu forums!
    Last edited by drs305; September 8th, 2008 at 04:14 AM.
    Back to Xorg...

    Retired.

  5. #5
    Join Date
    May 2009
    Beans
    1

    Re: [SOLVED] Linux command: updatedb

    hellow, I do as you guys advice above, but still met problems as follows:
    " user is not in the sudoers file. This incident will be reported."
    hope skilled guys help me , thank you very much!


  6. #6
    Join Date
    Aug 2005
    Location
    Sydney, Australia
    Beans
    456
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Linux command: updatedb

    You should normally not have to run updatedb as it is run daily via the system cronjob in /etc/cron.daily/mlocate.

  7. #7
    Join Date
    Aug 2005
    Location
    Sydney, Australia
    Beans
    456
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Linux command: updatedb

    Quote Originally Posted by yixiong109 View Post
    hellow, I do as you guys advice above, but still met problems as follows:
    " user is not in the sudoers file. This incident will be reported."
    hope skilled guys help me , thank you very much!

    That is telling you that your user account doesn't have permission to use sudo. You would have to ask the computer administrator to run this for you, or give your account sudo/admin privileges.

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Beans
    22

    Re: [SOLVED] Linux command: updatedb

    This is because your user doesn't have permissions to write to /var/lib/mlocate/ and it tries to create a temporary file there when you run 'updatedb'

    I did the following:
    Code:
    adyhasch@T60:~/Desktop$ sudo chown adyhasch:mlocate /var/lib/mlocate
    adyhasch@T60:~/Desktop$ sudo chmod 775 /var/lib/mlocate/
    First command changes the owner of the directory to my user, 'adyhasch" ,and the 'mlocate' group

    Second, I enable write permissions for the group 'mlocate'

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •