当我使用gnome-control-center
它时,它给了我一个段错误,所以我尝试了,sudo apt install --reinstall gnome-control-center
但没有任何变化。搜索后我尝试了export CLUTTER_BACKEND=gdk GDK_BACKEND=wayland
,现在当我尝试用它打开设置时,gnome-control-center
它给了我以下错误:
(gnome-control-center:16171): Gtk-CRITICAL **: 15:12:15.408: gtk_style_context_add_provider_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(gnome-control-center:16171): Gtk-WARNING **: 15:12:15.409: cannot open display: :1
答案1
我修复了这个问题,但我会把问题保留在这里,最终可能会对某些人有所帮助。我运行了这个别名(请随意将其复制到您自己的 .bashrc 文件中),它基本上更新了所有内容:
#update everything
function update(){ # update and reboot/shutdown
# apt
sudo apt update -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
sudo apt autoclean -y
# apt-get
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get dselect-upgrade -y
sudo apt-get autoremove -y
# fwupdmgr
sudo fwupdmgr get-devices
sudo fwupdmgr get-updates
sudo fwupdmgr update
##update BetterDiscord
sudo betterdiscordctl self-upgrade
# snap
sudo snap refresh
# homebrew
brew upgrade
# reboot/shutdown
sudo $1 now
}
是的,我刚刚update reboot
在终端上写了,问题就解决了。一定是这个命令之一解决了这个问题。