安装某些软件包时遇到 gconf2 错误,该怎么办?

安装某些软件包时遇到 gconf2 错误,该怎么办?

我在安装某些软件时出现此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gconf2 (3.2.0-0ubuntu1) ...
I/O warning : failed to load external entity "/usr/share/gconf/schemas/compiz-wobbly.schemas"
Failed to open `/usr/share/gconf/schemas/compiz-wobbly.schemas': No such file or directory
I/O warning : failed to load external entity "/usr/share/gconf/schemas/gwd.schemas"
Failed to open `/usr/share/gconf/schemas/gwd.schemas': No such file or directory
dpkg: error processing gconf2 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mutter-common:
 mutter-common depends on gconf2 (>= 2.28.1-2); however:
  Package gconf2 is not configured yet.
dpkg: error processing mutter-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmutter0:
 libmutter0 depends on mutter-common (>= 3.2); however:
  Package mutter-common is not configured yet.
 libmutter0 depends on mutter-common (<< 3.3); however:
  Package mutter-common is not configured yet.
dpkg: error processing libmutter0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gir1.2-mutter-3.0:
 gir1.2-mutter-3.0 depends on libmutter0 (>= 3.1.92); however:
  Package libmutter0 is not configured yet.
dpkg: error processing gir1.2-mutter-3.0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-shell:
 gnome-shell depends on gir1.2-mutter-3.0; hNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                      No apport report written because the error message indicates its a followup error from a previous failure.
                No apport report written because MaxReports is reached already
                                                                              No apport report written because MaxReports is reached already
                                                            owever:
  Package gir1.2-mutter-3.0 is not configured yet.
 gnome-shell depends on libmutter0 (>= 3.2.1); however:
  Package libmutter0 is not configured yet.
 gnome-shell depends on gconf2 (>= 2.28.1-2); however:
  Package gconf2 is not configured yet.
dpkg: error processing gnome-shell (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gconf2
 mutter-common
 libmutter0
 gir1.2-mutter-3.0
 gnome-shell
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

只需在终端中输入一个命令即可解决该问题:

sudo apt --fix-broken install

问题就会得到解决。

答案2

在 linux mint 中,我首先通过以下方法解决了该问题:

sudo dpkg --configure -a

然后:

sudo apt-get upgrade

答案3

意思是

Package gconf2 is not configured yet.

你试过了吗sudo dpkg-reconfigure gconf2?如果那不起作用,请尝试sudo apt-get remove --purge gconf2 && sudo apt-get install gconf2

答案4

这是 I/O 错误!您的硬盘出现故障。使用命令dmesg并检查内核日志是否显示硬盘中的输入/输出错误。然后通过运行检查文件系统fsck.ext4 /dev/sda1,并重新安装包含文件的软件包:

apt-file search /usr/share/gconf/schemas/gwd.schemas
apt-file search /usr/share/gconf/schemas/compiz-wobbly.schemas 
apt-get install --reinstall $package1 $package2 

PS:买个新硬盘!

相关内容