Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Missing 'updatedb'

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
banderas20
Posts: 111
Joined: 2016-11-10 15:30

[SOLVED] Missing 'updatedb'

#1 Post by banderas20 »

Hello.

I am running Debian 9 and I try to issue '

Code: Select all

updatedb
' command.

It says:

Code: Select all

command not found
.

¿How can that be? ¿Such a basic command?

I can't event install it via apt-get install...

Thanks and regards.
Last edited by banderas20 on 2018-07-01 16:01, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Missing 'updatedb'

#2 Post by Head_on_a_Stick »

banderas20 wrote:I try to issue '

Code: Select all

updatedb
' command.

It says:

Code: Select all

command not found
.

¿How can that be? ¿Such a basic command?
What does this mysterious command actually do?

In which distribution did this command work for you?

There is no updatedb executable in the Debian package repositories (AFAICT):

https://packages.debian.org/search?sear ... e&arch=any
deadbang

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Missing 'updatedb'

#3 Post by arochester »

Have you installed the package "locate"?

Synaptic says of locate
maintain and query an index of a directory tree

updatedb generates an index of files and directories. GNU locate can be used
to quickly query this index.
In Synaptic click on "Get Screenshot"
You will see the command

Code: Select all

sudo updatedb
Then

Code: Select all

locate kate

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Missing 'updatedb'

#4 Post by dilberts_left_nut »

AdrianTM wrote:There's no hacker in my grandma...

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: Missing 'updatedb'

#5 Post by banderas20 »

arochester wrote:Have you installed the package "locate"?

Synaptic says of locate
maintain and query an index of a directory tree

updatedb generates an index of files and directories. GNU locate can be used
to quickly query this index.
In Synaptic click on "Get Screenshot"
You will see the command

Code: Select all

sudo updatedb
Then

Code: Select all

locate kate
Installing "locate" did the trick. Thanks you so much! :D

Post Reply