Find the answer to your Linux question:
Results 1 to 3 of 3
Recently, while trying to run updatedb on Ubuntu, I recieved the following output : Code: # updatedb No command 'ubdatedb' found, did you mean Command 'updatedb' from package 'locate' (universe) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! VirtualLinuxUser's Avatar
    Join Date
    Mar 2008
    Location
    Pietermaritzburg, KwaZulu Natal, South Africa
    Posts
    28

    Question [SOLVED] Duplicate updatedb commands from different packages


    Recently, while trying to run updatedb on Ubuntu, I recieved the following output :

    Code:
    # updatedb
    No command 'ubdatedb' found, did you mean Command 'updatedb' from package 'locate' (universe)
     Command 'updatedb' from package 'mlocate' (main)
    How do I specify that I want to use 'updatedb' from package 'locate' ?

  2. #2
    Just Joined!
    Join Date
    May 2006
    Posts
    73
    If I remember correctly Ubuntu doesn't install updatedb by default. Try installing it.

    I always run updatedb as root, might be just an old habit or it might be necessary so try using sudo when running it. The updatedb command might well not be in the path of any user but root.

    Quote Originally Posted by VirtualLinuxUser View Post
    Recently, while trying to run updatedb on Ubuntu, I recieved the following output :

    Code:
    # updatedb
    No command 'ubdatedb' found, did you mean Command 'updatedb' from package 'locate' (universe)
     Command 'updatedb' from package 'mlocate' (main)
    How do I specify that I want to use 'updatedb' from package 'locate' ?

  3. #3
    Just Joined! VirtualLinuxUser's Avatar
    Join Date
    Mar 2008
    Location
    Pietermaritzburg, KwaZulu Natal, South Africa
    Posts
    28

    Smile I Figured it Out [Closed]

    OK. I figured it out. I have to explicitly specify the path to ubdatedb using the which command :

    Code:
    sudo `which updatedb`

Posting Permissions

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