“检测到系统程序问题”-->“错误:子进程 /usr/bin/dpkg 返回错误代码 (1)”

“检测到系统程序问题”-->“错误:子进程 /usr/bin/dpkg 返回错误代码 (1)”

我对 Linux 真的是新手,因此我很高兴能够得到一步步的答案。

我正在使用 ubuntu 15.10(最近升级)

也许我应该强调一下,升级没有顺利完成或者完全完成,因为我的笔记本电脑在升级过程中(快要完成时)关闭了(核心温度太高)。

现在,我尝试安装或更新的所有内容都因相同的错误(Sub-process /usr/bin/dpkg returned an error code (1))而终止,如下所示。

因此,每次系统启动时,系统都会弹出“检测到系统程序问题”的消息。

我尝试了可能重复中给出的所有其他解决方案,但都没有效果。

希望您能帮助我。提前致谢!

Log started: 2016-03-28  18:28:24  

Selecting previously unselected
 package compiz-plugins:amd64.

(Reading database ...  
(Reading
 database ... 5% 
(Reading database ... 10% 
(Reading database ... 15%

 (Reading database ... 20% (Reading database ... 25% (Reading database
 ... 30% (Reading database ... 35% (Reading database ... 40% (Reading
 database ... 45% (Reading database ... 50% (Reading database ... 55%
 (Reading database ... 60% (Reading database ... 65% (Reading database
 ... 70% (Reading database ... 75% (Reading database ... 80% (Reading
 database ... 85% (Reading database ... 90% (Reading database ... 95%
 (Reading database ... 100% (Reading database ... 311327 files and
 directories currently installed.)  Preparing to unpack
 .../compiz-plugins_1%3a0.9.12.2+15.10.20151202-0ubuntu1_amd64.deb ... 
 Unpacking compiz-plugins:amd64 (1:0.9.12.2+15.10.20151202-0ubuntu1)
 ...  Selecting previously unselected package compiz-plugins-extra. 
 Preparing to unpack
 .../compiz-plugins-extra_1%3a0.9.12.2+15.10.20151202-0ubuntu1_all.deb
 ...  Unpacking compiz-plugins-extra
 (1:0.9.12.2+15.10.20151202-0ubuntu1) ...  Setting up
 openstack-dashboard-ubuntu-theme (2:8.0.1-0ubuntu1) ...  Collecting
 and compressing static assets...  ***Job for apache2.service invalid. 
 dpkg: error processing package openstack-dashboard-ubuntu-theme
 (--configure):   subprocess installed post-installation script
 returned error exit status 1***  Setting up compiz-plugins:amd64
 (1:0.9.12.2+15.10.20151202-0ubuntu1) ...  Setting up
 compiz-plugins-extra (1:0.9.12.2+15.10.20151202-0ubuntu1) ...  ***Errors
 were encountered while processing:   openstack-dashboard-ubuntu-theme*** 
 Log ended: 2016-03-28  18:30:47   

 Log started: 2016-03-28  18:59:10 
 Selecting previously unselected package python-xlib.  (Reading
 database ...  (Reading database ... 5% (Reading database ... 10%
 (Reading database ... 15% (Reading database ... 20% (Reading database
 ... 25% (Reading database ... 30% (Reading database ... 35% (Reading
 database ... 40% (Reading database ... 45% (Reading database ... 50%
 (Reading database ... 55% (Reading database ... 60% (Reading database
 ... 65% (Reading database ... 70% (Reading database ... 75% (Reading
 database ... 80% (Reading database ... 85% (Reading database ... 90%
 (Reading database ... 95% (Reading database ... 100% (Reading database
 ... 311462 files and directories currently installed.)  Preparing to
 unpack .../python-xlib_0.14+20091101-5_all.deb ...  Unpacking
 python-xlib (0.14+20091101-5) ...  Selecting previously unselected
 package key-mon.  Preparing to unpack
 .../key-mon_1.17-1ubuntu1_all.deb ...  Unpacking key-mon
 (1.17-1ubuntu1) ...  Processing triggers for gnome-menus
 (3.13.3-6ubuntu1) ...  Processing triggers for bamfdaemon
 (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...  Rebuilding
 /usr/share/applications/bamf-2.index...  Processing triggers for
 desktop-file-utils (0.22-1ubuntu3) ...  Processing triggers for
 mime-support (3.58ubuntu1) ...  Processing triggers for
 hicolor-icon-theme (0.15-0ubuntu1) ...  Processing triggers for man-db
 (2.7.4-1) ...  Setting up openstack-dashboard-ubuntu-theme
 (2:8.0.1-0ubuntu1) ...  Collecting and compressing static assets... 
 ***Job for apache2.service invalid.  dpkg: error processing package
 openstack-dashboard-ubuntu-theme (--configure):   subprocess installed
 post-installation script returned error exit status 1***  Setting up
 python-xlib (0.14+20091101-5) ...  Setting up key-mon (1.17-1ubuntu1)
 ...  Log ended: 2016-03-28  19:01:47    

Log started: 2016-03-28 
 19:21:58  Setting up openstack-dashboard-ubuntu-theme
 (2:8.0.1-0ubuntu1) ...  Collecting and compressing static assets... 
 Job for apache2.service invalid.  dpkg: error processing package
 openstack-dashboard-ubuntu-theme (--configure):   subprocess installed
 post-installation script returned error exit status 1  Errors were
 encountered while processing:   openstack-dashboard-ubuntu-theme  
Log ended: 2016-03-28  19:23:33   

 Log started: 2016-03-29  13:02:17 
 Selecting previously unselected package lm-sensors.  (Reading database
 ...  (Reading database ... 5% (Reading database ... 10% (Reading
 database ... 15% (Reading database ... 20% (Reading database ... 25%
 (Reading database ... 30% (Reading database ... 35% (Reading database
 ... 40% (Reading database ... 45% (Reading database ... 50% (Reading
 database ... 55% (Reading database ... 60% (Reading database ... 65%
 (Reading database ... 70% (Reading database ... 75% (Reading database
 ... 80% (Reading database ... 85% (Reading database ... 90% (Reading
 database ... 95% (Reading database ... 100% (Reading database ...
 311846 files and directories currently installed.)  Preparing to
 unpack .../lm-sensors_1%3a3.4.0-2_amd64.deb ...  Unpacking lm-sensors
 (1:3.4.0-2) ...  Processing triggers for man-db (2.7.4-1) ... 
 Processing triggers for systemd (225-1ubuntu9.1) ...  Processing
 triggers for ureadahead (0.100.0-19) ...  ureadahead will be
 reprofiled on next reboot  Setting up openstack-dashboard-ubuntu-theme
 (2:8.0.1-0ubuntu1) ...  Collecting and compressing static assets... 
 Job for apache2.service invalid.  dpkg: error processing package
 openstack-dashboard-ubuntu-theme (--configure):   subprocess installed
 post-installation script returned error exit status 1  Setting up
 lm-sensors (1:3.4.0-2) ...  Processing triggers for systemd
 (225-1ubuntu9.1) ...  Processing triggers for ureadahead (0.100.0-19)
 ...  Errors were encountered while processing:  
 openstack-dashboard-ubuntu-theme Log ended: 2016-03-29  13:04:00   

 Log started: 2016-03-29  13:21:29  Setting up
 openstack-dashboard-ubuntu-theme (2:8.0.1-0ubuntu1) ...  Collecting
 and compressing static assets...  Job for apache2.service invalid. 
 dpkg: error processing package openstack-dashboard-ubuntu-theme
 (--configure):   subprocess installed post-installation script
 returned error exit status 1  Errors were encountered while
 processing:   openstack-dashboard-ubuntu-theme  Log ended: 2016-03-29 
 13:22:39    Log started: 2016-03-29  13:34:19  Setting up
 openstack-dashboard-ubuntu-theme (2:8.0.1-0ubuntu1) ...  Collecting
 and compressing static assets...  Job for apache2.service invalid. 
 dpkg: error processing package openstack-dashboard-ubuntu-theme
 (--configure):   subprocess installed post-installation script
 returned error exit status 1  Errors were encountered while
 processing:   openstack-dashboard-ubuntu-theme  Log ended: 2016-03-29 
 13:35:31    

Log started: 2016-03-29  14:05:31  Selecting previously
 unselected package reduce-algebra-fonts.  (Reading database ... 
 (Reading database ... 5% (Reading database ... 10% (Reading database
 ... 15% (Reading database ... 20% (Reading database ... 25% (Reading
 database ... 30% (Reading database ... 35% (Reading database ... 40%
 (Reading database ... 45% (Reading database ... 50% (Reading database
 ... 55% (Reading database ... 60% (Reading database ... 65% (Reading
 database ... 70% (Reading database ... 75% (Reading database ... 80%
 (Reading database ... 85% (Reading database ... 90% (Reading database
 ... 95% (Reading database ... 100% (Reading database ... 311881 files
 and directories currently installed.)  Preparing to unpack
 .../reduce-algebra-fonts_20110414-1~getdeb2_all.deb ...  Unpacking
 reduce-algebra-fonts (20110414-1~getdeb2) ...  Selecting previously
 unselected package reduce-algebra.  Preparing to unpack
 .../reduce-algebra_20110414-1~getdeb2_amd64.deb ...  Unpacking
 reduce-algebra (20110414-1~getdeb2) ...  Selecting previously
 unselected package reduce-algebra-docs.  Preparing to unpack
 .../reduce-algebra-docs_20110414-1~getdeb2_all.deb ...  Unpacking
 reduce-algebra-docs (20110414-1~getdeb2) ...  Processing triggers for
 gnome-menus (3.13.3-6ubuntu1) ...  Processing triggers for bamfdaemon
 (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...  Rebuilding
 /usr/share/applications/bamf-2.index...  Processing triggers for
 desktop-file-utils (0.22-1ubuntu3) ...  Processing triggers for
 mime-support (3.58ubuntu1) ...  Setting up
 openstack-dashboard-ubuntu-theme (2:8.0.1-0ubuntu1) ...  Collecting
 and compressing static assets...  Job for apache2.service invalid. 
 dpkg: error processing package openstack-dashboard-ubuntu-theme
 (--configure):   subprocess installed post-installation script
 returned error exit status 1  Setting up reduce-algebra-fonts
 (20110414-1~getdeb2) ...  Setting up reduce-algebra
 (20110414-1~getdeb2) ...  Setting up reduce-algebra-docs
 (20110414-1~getdeb2) ...  Errors were encountered while processing:  
 openstack-dashboard-ubuntu-theme  Log ended: 2016-03-29  14:08:13

答案1

一种可能性是使用dpkg-reconfigurepackage-name',但我怀疑它能否工作。你仍然可以尝试一下。

也可以尝试sudo apt-get -f install(-f 进行修复),如果这没有帮助,我会尝试删除一些无法更新/安装的软件包。删除后,您可以再次安装它们。除非您使用 --purge,否则设置不会丢失。

但要小心,并始终-s先使用(-s 表示模拟)来查看结果操作。不要卸载许多其他软件包所需的软件包。

相关内容