在 16.04 上安装 ubuntu-mate-desktop,blueman 配置问题

在 16.04 上安装 ubuntu-mate-desktop,blueman 配置问题

在 Ubuntu 16.04 上我尝试安装ubuntu-mate-desktopsudo apt-get install -y ubuntu-mate-desktop不幸的是遇到了错误:

Fetched 223 kB in 2s (106 kB/s)        
(Reading database ... 356281 files and directories currently installed.)
Preparing to unpack .../libgee-0.8-2_0.18.1-0ubuntu1~16.04~valateam0_amd64.deb ...
Unpacking libgee-0.8-2:amd64 (0.18.1-0ubuntu1~16.04~valateam0) over (0.18.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up blueman (2.0.4-1ubuntu2) ...
Running in chroot, ignoring request.
 * Reloading system message bus config...                                                        Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "reload" failed.
dpkg: error processing package blueman (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-mate-desktop:
 ubuntu-mate-desktop depends on blueman; however:
  Package blueman is not configured yet.

dpkg: error processing package ubuntu-mate-desktop (--configure):
 dependency problems - leaving unconfigured
Setting up libgee-0.8-2:amd64 (0.18.1-0ubuntu1~16.04~valateam0) ...
No apport report written because the error message indicates its a followup error from a previous failure.
         Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 blueman
 ubuntu-mate-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)

我曾尝试运行:

sudo apt-get install -y blueman ubuntu-mate-desktop

和:

sudo apt-get -f install

和:

sudo dpkg --configure -a

但仍然看不到任何解决方案。

答案1

配置包时无法重新启动DBUS服务blueman

  1. 打开以进行编辑/var/lib/dpkg/info/blueman.postinst
  2. 注释掉其中一行

    #set -e
    

    或者

    #invoke-rc.d dbus reload
    

相关内容