When I ssh to my machine and issue the "udatedb" command, I get the following error: /usr/bin/updatedb: line 320: /var/lib/locate/locatedb.n: No such file or directory Failed to generate /var/lib/locate/locatedb.n My system is the following: IPFire hardware: https://fireinfo.ipfire.org/profile/cd68d09a672adb3a335204ae2e9cbd06abc6be86 IPFire version: IPFire 2.25 (x86_64) - core158 Pakfire version: 2.25-x86_64 Kernel version: Linux ipfire.localdomain 4.14.232-ipfire #1 SMP Thu Jul 15 17:56:34 GMT 2021 x86_64 AMD GX-412TC SOC AuthenticAMD GNU/Linux Fresh install using the ISO, followed by a restore my configuration.
Might this be a permissions or ownership problem for the directory "/var/lib/locate/" ? My system shows: drwxr-xr-x 2 root root 4096 Aug 5 10:29 /var/lib/locate/
I do not have it at all: [root@ipfire ~]# ls -la /var/lib/locate/ ls: cannot access '/var/lib/locate/': No such file or directory I installed core158 from the iso, reformatting the hard disk.
This is what I have in the /var/lib/ directory [root@ipfire ~]# du -ah /var/lib/ 4.0K /var/lib/usb_modeswitch 4.0K /var/lib/logrotate.status 48M /var/lib/location/database.db 4.0K /var/lib/location/signing-key.pem 48M /var/lib/location 4.0K /var/lib/suricata/threshold.config 4.0K /var/lib/suricata/classification.config 0 /var/lib/suricata/whitelist.rules 4.0K /var/lib/suricata/reference.config 16K /var/lib/suricata 4.0K /var/lib/unbound/root.key 8.0K /var/lib/unbound 4.0K /var/lib/sasl 4.0K /var/lib/alternatives/sendmail 8.0K /var/lib/alternatives 4.0K /var/lib/squidguard 48M /var/lib/
FYI: "Component" should be "IPFire" and "Version" should be "2" for this bugzilla entry... It's curious that the directory doesn't exist on your system. Is this a recent "fresh" install? Have you tried using mkdir, followed by chown and chmod?
Whups... reviewed the thread... I see it's a fresh install :).
Had the same problem after restoring from ISO. Easy fix was to "mkdir /var/lib/locate".
https://patchwork.ipfire.org/project/ipfire/patch/20211207153650.2455142-1-michael.tremer@ipfire.org/
https://git.ipfire.org/?p=people/pmueller/ipfire-2.x.git;a=commit;h=2b676f2e428e336d8673d53b0aae018e7849966f Not bumping to MODIFIED since this is my temporary branch for Core Update 163. However, I expect this commit to land into next soon...
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=2b676f2e428e336d8673d53b0aae018e7849966f
https://blog.ipfire.org/post/ipfire-2-27-core-update-163-released