When starting a session, an "Ubuntu 20.04 internal error" dialogue pops up. The details reveal a blueman-tray crash due to the file /home/username/.cache/blueman.tray-1000 not being found. The file actually exists, isn't empty and seems to have correct permissions. Any idea how to fix this?
Extended details:
1Executable Path: /usr/bin/blueman-tray
Package: blueman 2.1.2-1
Problem Type: Crash
Title: blueman-tray crashed with FileNotFoundError in check_single_instance(): [Errno 2] File or directory doesn't exist: '/home/username/.cache/blueman-tray-1000'
2 Answers
I have had this problem constantly in Mate on my Raspberry Pi 4. Until the bug is fixed the graphical manager is more trouble than it's worth and I can always use bluetoothctl in the terminal. So my solution was to execute 'sudo apt-get remove blueman' and delete the files in /var/crash. They shouldn't grow back, and the first reboot was quicker than ever before.
1This seemed to work for me. I found it in a French Ubuntu Forum linking to a solution from Norbert-X (Kudos):
Basically, it is this sequence of commands in a terminal and then reboots. The error message then disappeared.
ls -ald ~/.cache
ls -al ~/.cache/blueman-*
killall blueman-tray
rm ~/.cache/blueman-*
blueman-tray