pop-theme 导致 gnome-control-center 分段错误

pop-theme 导致 gnome-control-center 分段错误

Ubuntu 19.10
Gnome 3.28

我正在努力奔跑gnome-control-center

结果:

分段错误(核心转储)

  • 清除 gnome-control-center .cache 和 .config
  • 删除所有 gnome 扩展
  • 安装了所有更新
  • 重启

没有改变...

     > coredumpctl info:

          PID: 12246 (gnome-control-c)
          UID: 1000 (michaeldl)
          GID: 1000 (michaeldl)
       Signal: 11 (SEGV)
    Timestamp: Sun 2019-11-10 23:23:21 MSK (1h 6min ago)
 Command Line: gnome-control-center
   Executable: /usr/bin/gnome-control-center
Control Group: /user.slice/user-1000.slice/[email protected]/gnome-shell-x11.service
         Unit: [email protected]
    User Unit: gnome-shell-x11.service
        Slice: user-1000.slice
    Owner UID: 1000 (michaeldl)
      Boot ID: 4a24792e63014ae2904ad4e50987a50c
   Machine ID: ef03f98c351a4bb19f7d0ca6b14695c6
     Hostname: michaeldl
      Storage: /var/lib/systemd/coredump/core.gnome-control-c.1000.4a24792e63014ae2904ad4e50987a50c.12246.1573417401000000.lz4
   Message: Process 12246 (gnome-control-c) of user 1000 dumped core.

            Stack trace of thread 12246:
            #0  0x00007f34a3155e1e gtk_container_add (libgtk-3.so.0)
            #1  0x000055c367493ba5 n/a (gnome-control-center)
            #2  0x00007f34a3830546 n/a (libgobject-2.0.so.0)
            #3  0x00007f34a3832278 g_object_new_valist (libgobject-2.0.so.0)
            #4  0x00007f34a38325cd g_object_new (libgobject-2.0.so.0)
            #5  0x000055c367452676 n/a (gnome-control-center)
            #6  0x00007f34a382d7ef g_cclosure_marshal_VOID__STRINGv (libgobject-2.0.so.0)
            #7  0x00007f34a382a936 n/a (libgobject-2.0.so.0)
            #8  0x00007f34a384736c g_signal_emit_valist (libgobject-2.0.so.0)
            #9  0x00007f34a38479b3 g_signal_emit (libgobject-2.0.so.0)
            #10 0x000055c367450787 n/a (gnome-control-center)
            #11 0x00007f34a382dde3 g_cclosure_marshal_VOID__OBJECTv (libgobject-2.0.so.0)
            #12 0x00007f34a382a936 n/a (libgobject-2.0.so.0)
            #13 0x00007f34a384736c g_signal_emit_valist (libgobject-2.0.so.0)
            #14 0x00007f34a38479b3 g_signal_emit (libgobject-2.0.so.0)
            #15 0x00007f34a382a936 n/a (libgobject-2.0.so.0)
            #16 0x00007f34a384736c g_signal_emit_valist (libgobject-2.0.so.0)
            #17 0x00007f34a3847fa9 g_signal_emit_by_name (libgobject-2.0.so.0)
            #18 0x000055c367450f49 cc_panel_list_set_active_panel (gnome-control-center)
            #19 0x000055c36745316f n/a (gnome-control-center)
            #20 0x00007f34a3830546 n/a (libgobject-2.0.so.0)
            #21 0x00007f34a3832278 g_object_new_valist (libgobject-2.0.so.0)
            #22 0x00007f34a38325cd g_object_new (libgobject-2.0.so.0)
            #23 0x000055c3674535ac cc_window_new (gnome-control-center)
            #24 0x000055c36744cfc3 n/a (gnome-control-center)
            #25 0x00007f34a382a936 n/a (libgobject-2.0.so.0)
            #26 0x00007f34a384736c g_signal_emit_valist (libgobject-2.0.so.0)
            #27 0x00007f34a38479b3 g_signal_emit (libgobject-2.0.so.0)
            #28 0x00007f34a3952312 g_application_register (libgio-2.0.so.0)
            #29 0x00007f34a39526ee n/a (libgio-2.0.so.0)
            #30 0x00007f34a3952a72 g_application_run (libgio-2.0.so.0)
            #31 0x000055c36744c639 main (gnome-control-center)
            #32 0x00007f34a15c71e3 __libc_start_main (libc.so.6)
            #33 0x000055c36744c84e _start (gnome-control-center)

            Stack trace of thread 12255:

有任何想法吗?..

更新:
删除具有依赖项的 gnome-control-center 并重新安装...
没有任何变化...

答案1

在我看来,除了删除我个人喜欢的有用存储库之外,还有更好的解决方案。对我有帮助的是修复主存储库优先级。您可能会看到有两个存储库可用于gnome-control-center软件包,并且现在使用命令使用 system76 apt-cache policy gnome-control-center

gnome-control-center:
  Installed: 1:3.34.1-1ubuntu2pop1~1571679625~19.10~ef2ab1f
  Candidate: 1:3.34.1-1ubuntu2pop1~1571679625~19.10~ef2ab1f
  Version table:
 *** 1:3.34.1-1ubuntu2pop1~1571679625~19.10~ef2ab1f 500
        500 http://ppa.launchpad.net/system76/pop/ubuntu eoan/main amd64 Packages
        100 /var/lib/dpkg/status
     1:3.34.1-1ubuntu2 500
        500 http://de.archive.ubuntu.com/ubuntu eoan/main amd64 Packages

看到那些500s 了吗?这是默认的 repo 优先级,并且是相同的。让我们给主 repo 更高的优先级(我在 Ubuntu 19.10 代号上eoan,请使用您的发行版的代号):

    $ apt-cache policy | grep o=Ubuntu | grep c=main | grep a=eoan,
     release v=19.10,o=Ubuntu,a=eoan,n=eoan,l=Ubuntu,c=main,b=i386
     release v=19.10,o=Ubuntu,a=eoan,n=eoan,l=Ubuntu,c=main,b=amd64

release ...部分是一种过滤器,您可以使用它来为 repo 赋予不同的优先级。创建并编辑(以 root 身份)一个名为的文件,/etc/apt/preferences.d/main_repo_priority如下所示:

    Package: *
    Pin: release v=19.10,o=Ubuntu,a=eoan,n=eoan,l=Ubuntu,c=main,b=amd64
    Pin-Priority: 1001

现在终于重新安装gnome-control-center

    sudo apt install --reinstall gnome-control-center

并仔细检查是否安装了正确的版本:

    $ apt-cache policy gnome-control-center
     gnome-control-center:
       Installed: 1:3.34.1-1ubuntu2
       Candidate: 1:3.34.1-1ubuntu2
       Version table:
          1:3.34.1-1ubuntu2pop1~1571679625~19.10~ef2ab1f 500
             500 http://ppa.launchpad.net/system76/pop/ubuntu eoan/main amd64                                                          Packages
     *** 1:3.34.1-1ubuntu2 1001
           1001 http://de.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
            100 /var/lib/dpkg/status

答案2

我修复了它。
我有第三方存储库,ppa:system76/pop
它是在pop-theme安装过程中添加的。
更新后gnome-control-center替换system76/pop原始存储库gnome-control-center

我做了什么:

  • 消除pop-theme
  • 从中删除 system76/pop 存储库和 GPG 密钥/etc/apt/*
  • 删除 apt 缓存
  • gnome-control-center从 system76/pop 中删除损坏的内容
  • 安装原件gnome-control-center

现在一切正常。

相关内容