package bluez 5.35-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 (without linux-image-extra*)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | bluez (Ubuntu) |
High
|
Martin Pitt | ||
| | Vivid |
Undecided
|
Unassigned | ||
| | Wily |
High
|
Martin Pitt | ||
| | linux (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Bluez installation fails on vivid and wily without linux-image-extra* because BT kernel modules are unavailable.
ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: bluez 5.35-0ubuntu1
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu2
Architecture: amd64
Date: Thu Oct 15 22:06:50 2015
DuplicateSignature: package:
Ec2AMI: ami-00000f6e
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: cpu10-ram10-
Ec2Kernel: aki-0000022a
Ec2Ramdisk: ari-0000022a
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InterestingModules: bnep bluetooth
Lsusb:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: OpenStack Foundation OpenStack Nova
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.2ubuntu4
apt 1.0.10.2ubuntu1
SourcePackage: bluez
Title: package bluez 5.35-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/01/2011
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:
dmi.product.name: OpenStack Nova
dmi.product.
dmi.sys.vendor: OpenStack Foundation
hciconfig:
Related branches
| Michał Sawicz (saviq) wrote : | #1 |
| tags: | removed: need-duplicate-check |
| Martin Pitt (pitti) wrote : | #2 |
| Changed in bluez (Ubuntu Wily): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| summary: |
package bluez 5.35-0ubuntu1 failed to install/upgrade: subprocess - installed post-installation script returned error exit status 1 + installed post-installation script returned error exit status 1 (without + linux-image-extra*) |
| Simon Fels (morphis) wrote : | #3 |
There is nothing we can do from bluez side. If the kernel interface we need to do *any* work is not available we can't do anything else but fail. The "bluetooth" module needs to be loaded or the kernel compiled with CONFIG_BT=y rather than CONFIG_BT=m.
Is there any reason not to compile bluetooth support directly into the kernel? Any driver can still be loaded as module but the subsystem should be always available.
| tags: | added: bluetooth |
| Martin Pitt (pitti) wrote : | #4 |
> There is nothing we can do from bluez side.
Perhaps not from the daemon itself, but the packaging certainly needs to be fixed. It could be that the .service file grows some Condition*= to not start if we already know that it won't work; or the .postinst shouldn't fail when the service fails (e. g. dh_installinit --error-
| Martin Pitt (pitti) wrote : | #5 |
Even if we would change our kernel package to always include bluetooth, that still would make the package fail for custom/third-party kernels, so I'd say this is neither required nor sufficient. Let's fix the bluez packaging instead.
| Changed in linux (Ubuntu Wily): | |
| status: | New → Won't Fix |
| no longer affects: | linux (Ubuntu Vivid) |
| no longer affects: | linux (Ubuntu Wily) |
| Changed in linux (Ubuntu): | |
| status: | New → Won't Fix |
| Simon Fels (morphis) wrote : | #6 |
We could just bind this to the condition if /sys/class/
...
ConditionPathI
| Martin Pitt (pitti) wrote : | #7 |
> ConditionPathIs
Sounds perfect!
| Changed in bluez (Ubuntu Wily): | |
| status: | Confirmed → Triaged |
| Martin Pitt (pitti) wrote : | #8 |
Wily fix uploaded (might end up as an SRU, though). I also sent the patch upstream, will add a link once it hits the upstream ML archives.
| Changed in bluez (Ubuntu Wily): | |
| status: | Triaged → In Progress |
| Martin Pitt (pitti) wrote : | #9 |
Forwarded upstream: http://
| Changed in bluez (Ubuntu Wily): | |
| status: | In Progress → Fix Committed |
| assignee: | nobody → Martin Pitt (pitti) |
| Simon Fels (morphis) wrote : | #10 |
Great!
| Launchpad Janitor (janitor) wrote : | #11 |
This bug was fixed in the package bluez - 5.35-0ubuntu2
---------------
bluez (5.35-0ubuntu2) wily; urgency=medium
* Add 0001-systemd-
bluetooth.
failing package installation on a kernel without bluetooth support.
(LP: #1506774)
-- Martin Pitt <email address hidden> Tue, 20 Oct 2015 12:27:06 +0200
| Changed in bluez (Ubuntu Wily): | |
| status: | Fix Committed → Fix Released |
pitti
this sru has hit Kubuntu in a strange way -> bug #1509334 (30 seconds delay for final desktop)
JUST be4 the final release :-(
The fix for Wily is stuck now in the "proposed-queue", actually thinking this bitesize-bugfix (there) should enter "wily-updates"
Could you take a look at it?
best regards
Hello,
Flames_in_Paradise [2015-11-06 15:49 -0000]:
> this sru has hit Kubuntu in a strange way -> bug #1509334 (30 seconds
> delay for final desktop)
>
> JUST be4 the final release :-(
>
> The fix for Wily is stuck now in the "proposed-queue", actually thinking
> this bitesize-bugfix (there) should enter "wily-updates"
It's 8 days now, so ready to be released; the SRU team should do that
soon (but they might avoid releasing updates on Fridays).
Martin
--
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)


Trivially reproduces on e. g. the cloud images, but for completeness:
$ sudo systemctl status -l bluetooth.service system/ bluetooth. service; enabled; vendor preset: enabled)
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Tue 2015-10-20 09:08:20 CEST; 27s ago
Docs: man:bluetoothd(8)
Main PID: 1640 (code=exited, status=1/FAILURE)
Status: "Starting up"
Oct 20 09:08:20 autopkgtest systemd[1]: Starting Bluetooth service...
Oct 20 09:08:20 autopkgtest bluetoothd[1640]: Bluetooth daemon 5.35
Oct 20 09:08:20 autopkgtest bluetoothd[1640]: Failed to access management interface
Oct 20 09:08:20 autopkgtest bluetoothd[1640]: Adapter handling initialization failed
Oct 20 09:08:20 autopkgtest systemd[1]: bluetooth.service: Main process exited, code=exited, status=1/FAILURE
Oct 20 09:08:20 autopkgtest systemd[1]: Failed to start Bluetooth service.
Oct 20 09:08:20 autopkgtest systemd[1]: bluetooth.service: Unit entered failed state.
Oct 20 09:08:20 autopkgtest systemd[1]: bluetooth.service: Failed with result 'exit-code'.