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".
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:I installed Ubuntu desktop PPA.
I removed all System76/pop (and other trush) entries, with
update-manager
, leaving Ubuntu desktop the only one active.Now that I have the proper repository entry added, I re-install
gnome-control-center
.Enjoy Gnome System settings!
I had the same issue. I was able to fix by removing the GNOME extension/theme which caused the issue and then running:
For the next step the PPA has to be active.
This removes packages from this PPA if they are not available from Ubuntu repositories, or reverts to Ubuntu package versions.
Hmm... a variant of this:
sudo gnome-control-center
# worked, from a terminal/shell,but not so without 'sudo', no
GLib-ERROR
, with no output at all.dconf reset -f /org/gnome/control-center/
didn't appear to help.Remedy:
Reboot into "recovery console"
hit ESC ONCE after the BIOS displays to get to the boot menu)
run the "dpkg" option to install / fix packages
this brought in a gcc1 -thingie, didn't pay attention to exactly what*
also run fsck option
enable networking
drop to root prompt,
press ENTER one extra time at the extra prompt
run:
Note:
Remedy worked only as it was run in recovery mode.
What worked for me was resetting all configurations of the control-center with the following command:
This works until I click on "Display" in "System Settings". Then it stops working and I need to run the command again.
This was tested on Ubuntu 20.04.1 LTS (x86_64).
I faced the same issue on 20.04. I clearly remember at the time of Ubuntu installation system settings was working perfectly, but out of nowhere this problem arose. What i did:
sudo dconf reset -f /org/gnome-control-center
(but the problem didn’t go away).gnome-control-center
, but it said I don’t have this installed.sudo apt install gnome-control-center
I rebooted and it fixed my problem.I had the same problem and looking at the question and answers here, I checked
gnome-control-center
in the terminal and it was not installed. Installing it solved the problem. I have no idea what happened.Gnome-control-center is not able to load if any of key is not found. kindly run below commands.
Now check the same.
If you find yourself coming back here every now and then, you can always make a shell script to make your life easier:
Ctrl
+C
this:Ctrl
+Shift
+V
it in the text editorCtrl
+Shift
+O
to saveCtrl
+Shift
+X
to close the editorIn your terminal:
chmod 744 ./Desktop/settings-fix
sudo cp ~/Desktop/settings-fix /usr/bin
Now whenever you run to this again, you can simply run from your terminal: