Summary: | running updatedb command (in debian is part of mlocate package) from the console results in an error | ||
---|---|---|---|
Product: | IPFire | Reporter: | cfusco <carlo.fusco> |
Component: | --- | Assignee: | Michael Tremer <michael.tremer> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | Minor Usability | ||
Priority: | - Unknown - | CC: | larsen007, mbatranch, peter.mueller |
Version: | 2 | ||
Hardware: | x86_64 | ||
OS: | Linux |
Description
cfusco
2021-08-05 14:05:58 UTC
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://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... |