lightdm 软件包升级失败,退出状态为 30

lightdm 软件包升级失败,退出状态为 30

最近,在我的 Ubuntu 15.10 机器上运行升级时,更新失败lightdm。这是我尝试重新配置并再次强制安装时得到的结果:

$ sudo dpkg-reconfigure --force lightdm 

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lightdm (1.16.7-0ubuntu1) ...
dpkg: error processing package lightdm (--configure):
 subprocess installed post-installation script returned error exit status 30
Errors were encountered while processing:
 lightdm
E: Sub-process /usr/bin/dpkg returned an error code (1)

然而,查看包裹状态后,我得到以下信息:

$ dpkg --status lightdm
Package: lightdm
Status: install ok half-configured
Priority: optional
Section: x11
Installed-Size: 612
Maintainer: Robert Ancell <[email protected]>
Architecture: amd64
Version: 1.16.7-0ubuntu1
Config-Version: 1.16.6-0ubuntu1
Provides: x-display-manager
Depends: debconf (>= 0.5) | debconf-2.0, lsb-base (>= 4.1+Debian11ubuntu7), libc6 (>= 2.14), libgcrypt20 (>= 1.6.0), libglib2.0-0 (>= 2.37.3), libpam0g (>= 0.99.7.1), libxcb1, libxdmcp6, libpam-runtime (>= 0.76-14), libpam-modules, adduser, libglib2.0-bin, dbus, plymouth (>= 0.8.8-0ubuntu18), bash (>= 4.3)
Pre-Depends: dpkg (>= 1.15.7.2)
Recommends: xserver-xorg, unity-greeter | lightdm-greeter | lightdm-kde-greeter
Conflicts: liblightdm-gobject-0-0, liblightdm-qt-0-0
Conffiles:
 /etc/apparmor.d/abstractions/lightdm cb9275330661d269fe38e04008e153de
 /etc/apparmor.d/abstractions/lightdm_chromium-browser c378a6d8a20e213abc15909e72567203
 /etc/apparmor.d/lightdm-guest-session 7d122d506d65910f9252b5b36aeb13a1
 /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf b76b6b45d7f7ff533c51d7fc02be32f4
 /etc/init.d/lightdm be2b1b20bec52a04c1a877477864e188
 /etc/init/lightdm.conf 07304e5b3265b4fb82a2c94beb9b577e
 /etc/lightdm/users.conf 1de1a7e321b98e5d472aa818893a2a3e
 /etc/pam.d/lightdm 1abe2be7a999b42517c82511d9e9ba22
 /etc/pam.d/lightdm-autologin 28dd060554d1103ff847866658431ecf
 /etc/pam.d/lightdm-greeter 65ed119ce8f4079f6388b09ad9d8b2f9
Description: Display Manager
 LightDM is a X display manager that:
  * Has a lightweight codebase
  * Is standards compliant (PAM, ConsoleKit, etc)
  * Has a well defined interface between the server and user interface
  * Cross-desktop (greeters can be written in any toolkit)
Homepage: https://launchpad.net/lightdm

有人能帮忙找出如何修复这个包吗?

答案1

打印屏幕

E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

sudo apt-get install --reinstall unattended-upgrades
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a

对于您的问题:

sudo apt-get install --reinstall lightdm
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a

相关内容