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


16

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

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)

请使用中的相关部分来更新问题/var/log/apt/term.log。它应该包含触发错误退出状态的错误消息。
lgarzo

Answers:


8

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

sudo dpkg --configure -a

然后:

sudo apt-get upgrade

作品。老兄,我在与Arch一起使用2年后不得不使用薄荷,并且出现了这个错误。薄荷应该被认为是最简单的。。谢谢
coderDude19年


7

就是说

Package gconf2 is not configured yet.

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


这解决了问题sudo apt-get remove --purge gconf2
Typewar,

1

这两个命令可以解决某些程序包管理问题:

sudo dpkg --configure -a
sudo apt-get install -f

2
欢迎来到Ask Ubuntu;-)能否请您详细说明为什么以及如何帮助您?就目前而言,您的答案可能会因为不清楚而被删除。
Fabby

-1

是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:购买新硬盘!


什么是$package1$package2?“ PD”代表什么?
wjandrea's

这是不正确的,没有证据表明硬盘驱动器出现故障。
马克·卡彭特(Marc Carpenter Jr)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.