I have made further attempts, but I couldn’t make any progress.
Steps Taken:
- Verification of Directories and Permissions:
- The directory
/var/lib/colord
exists and has the correct permissions:
ls -la /var/lib/colord
drwxr-xr-x 3 colord colord 4096 Feb 3 20:43 .
drwxr-xr-x 25 root root 4096 Feb 3 20:10 ..
drwxr-xr-x 2 colord colord 4096 Feb 3 20:03 icc
- Ensured the permissions are correct for safety:
sudo chown -R colord:colord /var/lib/colord
sudo chmod -R 755 /var/lib/colord
- Removal of Database Files:
- Removed the
mapping.db
and storage.db
files:
sudo rm /var/lib/colord/mapping.db
sudo rm /var/lib/colord/storage.db
- Verified that there are no temporary files:
sudo rm /var/lib/colord/*.db-*
- Manual Creation of the Database:
- Manually created an empty database:
sudo -u colord sqlite3 /var/lib/colord/mapping.db "CREATE TABLE IF NOT EXISTS mappings (id INTEGER PRIMARY KEY);"
- Set the correct permissions:
sudo chown colord:colord /var/lib/colord/mapping.db
sudo chmod 644 /var/lib/colord/mapping.db
- Verification of Dependencies:
- Ensured there are no missing libraries:
ldd /usr/libexec/colord | grep "not found"
- Manual Execution of
colord
:
- Executed
colord
in verbose mode:
sudo -u colord /usr/libexec/colord --verbose
6.Output:
20:46:30 Verbose debugging enabled (on console 1)
20:46:30 CdMappingDb: trying to open database '/var/lib/colord/mapping.db'
20:46:30 CdMappingDb: creating table to repair: no such table: mappings
20:46:30 CdMappingDb: altering table to convert: no such table: mappings_v2
20:46:30 CdDeviceDb: trying to open database '/var/lib/colord/storage.db'
20:46:30 CdDeviceDb: creating table to repair: no such table: devices
20:46:30 CdProfileDb: trying to open database '/var/lib/colord/storage.db'
free(): invalid pointer
Aborted
- System Logs Verification:
sudo journalctl -xeu colord.service
8.Output:
Feb 03 20:44:28 sal8 systemd[1]: Starting colord.service...
Feb 03 20:44:28 sal8 colord[648]: CdMain: failed to load mapping database: Can't open database: unable to open database file
Feb 03 20:44:28 sal8 systemd[1]: colord.service: Main process exited, code=exited, status=1/FAILURE
Feb 03 20:44:28 sal8 systemd[1]: colord.service: Failed with result 'exit-code'.
Feb 03 20:44:28 sal8 systemd[1]: Failed to start colord.service.
Results and Next Steps:
Despite numerous attempts, colord
continues to encounter “invalid pointer” errors and is unable to create or access its database.
At this point, I give up. It’s a shame because if I had managed to fix colord
, the night mode in GNOME would most likely work as well.
Installed version: 42920
6.12.11-1537.native