My /var/log/syslog on my Ubuntu 24.10 is filled with the following geoclue error:
geoclue[3863]: Failed to query location: Query location SOUP error: Not Found
To see the error(s) on your system, do:
grep SOUP /var/log/syslog*
This is because Mozilla Location Service
shut down June 12, 2024.
https://bugzilla.redhat.com/show_bug.cgi?id=2284621
Google has a similar location service, but it requires a Google API and a config file edit.
Is there a way to fix my location service, and get rid of the continuous error message?
Location services now fail due to
Mozilla Location Service
was shut down on June 12, 2024. Here, I show a way to obtain geoclue information by hard-coding a location using lat/long, instead of a wireless connection to a now non-existent Mozilla service.To see the failure:
Here is a way to use a hard-coded location to make geoclue/location services work again.
Use https://www.gps-coordinates.net/my-location to obtain your current static location.
Create a textfile /etc/geolocation containing your coordinates, e.g.:
Note: For extra security, the static location file can be made readable just by the geoclue user:
Then in /etc/geoclue/geoclue.conf you can disable the geolocation options and enable the static location, e.g.:
https://discussion.fedoraproject.org/t/geoclue-location-query-broken-due-to-mozilla-service-retirement/128262
Then restart geoclue: