System Settings – Fix Ubuntu 20.04 LTS Settings Not Opening After Adding System76/Pop PPA

20.04gnome-control-centerppasystem-settings

I'm trying to open System Settings but it won't open in any way.
Using GUI, Settings are trying to load for a moment and then they are gone.
Using Terminal (gnome-control-center), I get:

(gnome-control-center:8823): GLib-ERROR **: 14:44:15.433: ../../../glib/gmem.c:138: failed to allocate 13477064712 bytes
Trap Trace/breakpoint (core dumped)

I tried:

sudo apt-get remove gnome-control-center
sudo apt autoremove
sudo apt-get install gnome-control-center

With multiple reboots, but I had no result.


UPDATE!: Same errors persist BUT, when I type:

sudo gnome-control-center

(instead of just "gnome-control-center") suddenly System Settings appear! Is it a user permissions issue? Any suggestions?


UPDATE#2: After some system updates, sudo gnome-control-center now spawns "Segmentation fault".

Best Answer

Finally I found a solution!
The cause of this problem was pop-theme, that I installed once, plus its repository entry, that provided me the broken System settings (gnome-control-center). In order to solve this:

  1. I installed Ubuntu desktop PPA.

    sudo add-apt-repository ppa:ubuntu-desktop/ppa
    
  2. I removed all System76/pop (and other trush) entries, with update-manager, leaving Ubuntu desktop the only one active. update-manager

  3. Now that I have the proper repository entry added, I re-install gnome-control-center.

    sudo apt install --reinstall gnome-control-center
    
  4. Enjoy Gnome System settings!

Related Question