软件中心错误

软件中心错误

软件中心对我来说不起作用。如何解决这个问题?我无法重新安装、删除、卸载软件中心...

这是来自终端的日志。

derianfox@hp-dv6:~$ sudo apt-get autoremove [sudo] password for
derianfox:  Reading package lists... Done Building dependency tree    
Reading state information... Done 0 upgraded, 0 newly installed, 0 to
remove and 0 not upgraded. 3 not fully installed or removed. After
this operation, 0 B of additional disk space will be used. Setting up
gconf2 (3.2.6-0ubuntu2) ... /var/lib/dpkg/info/gconf2.postinst: 81:
/var/lib/dpkg/info/gconf2.postinst: gconf-schemas: not found dpkg:
error processing package gconf2 (--configure):  subprocess installed
post-installation script returned error exit status 127 Setting up
software-center-aptdaemon-plugins (0.1.6build1) ...
/var/lib/dpkg/info/software-center-aptdaemon-plugins.postinst: 6:
/var/lib/dpkg/info/software-center-aptdaemon-plugins.postinst:
pycompile: not found dpkg: error processing package
software-center-aptdaemon-plugins (--configure):  subprocess installed
post-installation script returned error exit status 127 dpkg:
dependency problems prevent configuration of software-center: 
software-center depends on software-center-aptdaemon-plugins; however:
Package software-center-aptdaemon-plugins is not configured yet. dpkg:
error processing package software-center (--configure):  dependency
problems - leaving unconfigured No apport report written because the
error message indicates its a followup error from a previous failure.
Errors were encountered while processing:  gconf2  software-center-aptdaemon-plugins  software-center 
E:Sub-process /usr/bin/dpkg returned an error code (1)

答案1

找到解决方案。

sudo apt-get -m --reinstall install python python-minimal dh-python
sudo apt-get -f install

然后:

sudo apt-get remove software-center
sudo apt-get update
sudo apt-get install software-center

相关内容