Failed to run Redshift: Trying location provider `geoclue2'... (solutions)

Do you get the following error message: Failed to run Redshift: Trying location provider `geoclue2'... when you try to open Redshift?

On this page you will find a few solutions that can help you fix this problem.

Solution #1: Turn on Location Services

1. Open settings.

2. Click on Privacy located in the left menu.

3. Click on Location Services.

4. Click on the toggle button next to Location Services to switch it to ON.

Turn on Location Services in Ubuntu

5. Close settings.

Solution #2: Install GeoClue

1. Open a terminal window.

2. Type (or copy and paste) the following command:

sudo apt-get install geoclue-2.0

3. Press [Enter].

4. Enter your password.

5. Press [Enter].

6. You can close the terminal window after the installation is complete.

Solution #3: Edit the GeoClue config file

Add the following lines to the geoclue.conf file:

[redshift]
allowed=true
system=false
users=

You can find the geoclue config file in the following location: /etc/geoclue/geoclue.conf.

For beginning users, I will explain how you can open and edit the file.

1. Open a terminal window.

2. Type (or copy and paste) the following command:

sudo nano /etc/geoclue/geoclue.conf

3. Press [Enter].

4. Enter your password.

5. Press [Enter].

The “geoclue.conf” file will now appear in the terminal window.

6. Scroll down to the bottom of the file by using the arrow down key on your keyboard.

7. Type (or copy and paste) the following lines:

[redshift]
allowed=true
system=false
users=

8. Press the [Ctrl] + [X] keys on your keyboard.

Now it will ask you if you want to save the changes.

9. Press the [Y] key on your keyboard.

10. Press the [Enter] key on your keyboard.

11. You can close the terminal window.

Solution #4: Downgrade GeoClue

This solution came from someone who uses Fedora.

1. Open a terminal window.

2. Type (or copy and paste) the following command:

sudo dnf downgrade geoclue2.x86_64

3. Press [Enter].

4. Enter your password.

5. Press [Enter].

6. You can close the terminal window after the downgrade is complete.


Reference:

Github: Failed to run Redshift: Trying location provider `geoclue2`