When I start AppCenter, it runs for a few seconds and then crashes. I tried reinstalling AppCenter as suggested in this answer, but that didn't fix the problem.
Initially, AppCenter started without crashing, but it would fail to install some updates. I updated by doing:
apt-get update
apt-get upgrade
apt-get --with-new-pkgs upgrade
apt-get autoremove
Now my packages are up to date, but AppCenter crashes at startup.
When I run io.elementary.appcenter
from the Terminal, I see these logs:
(process:7122): dconf-WARNING **: 11:30:43.965: Unable to open /home/ryan/.local/share/flatpak/exports/share/dconf/profile/user: Permission denied
** (io.elementary.appcenter:7122): CRITICAL **: 11:30:44.060: ComponentValidator.vala:37: Using .blacklist files is deprecated and will be removed in next version, please use .hiddenapps instead
(process:7130): dconf-WARNING **: 11:30:44.346: Unable to open /home/ryan/.local/share/flatpak/exports/share/dconf/profile/user: Permission denied
** (io.elementary.appcenter:7122): CRITICAL **: 11:30:44.353: FlatpakBackend.vala:186: Unable to get flatpak user installation : While opening repository /home/ryan/.local/share/flatpak/repo: /home/ryan/.local/share/flatpak/repo: opendir(/home/ryan/.local/share/flatpak/repo): Permission denied
** (io.elementary.appcenter:7122): WARNING **: 11:30:44.354: FlatpakBackend.vala:123: Couldn't create user Installation File Monitor due to no installation
Segmentation fault
Any thoughts on what might be happening or how I could fix the problem? Thanks!