upstart 1.3-0ubuntu11 causes cups install fail

Bug #886843 reported by Märt Põder
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
uck (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

After new upstart came around on 4th of November log from my daily run remaster script says:

Setting up cups (1.5.0-8ubuntu4) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.cupsd ...
start: Unknown job: cups
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bluez-cups:
 bluez-cups depends on cups; however:
  Package cups is not configured yet.
dpkg: error processing bluez-cups (--configure):
 dependency problems - leaving unconfigured

Before that everything was fine.

Other updates from the period are only:

libaccess-bridge-java 1.26.2-6
gnome-shell 3.2.1-0ubuntu1
tzdata-java 2011n-0ubuntu0.11.10

And I wouldn't accuse any one of these. You can see the whole logs:

http://koaala.itcollege.ee/images/logs-history/estobuntu-11.10-beta-gnome-dvd-i686.iso_2011.11.04_00:11.45.log
http://koaala.itcollege.ee/images/logs-history/estobuntu-11.10-beta-gnome-dvd-i686.iso_2011.11.04_22:16.49.log

Märt Põder (boamaod)
description: updated
Revision history for this message
paddyponchero (paddy-oherlihy) wrote :

I have the same issue now:

Setting up cups (1.5.0-8ubuntu5) ...
start: Job failed to start
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of cups-driver-gutenprint:
 cups-driver-gutenprint depends on cups (>= 1.3.0); however:
  Package cups is not configured yet.
dpkg: error processing cups-driver-gutenprint (--configure):
 dependency problems - leaving unconfigured

sudo start cups
start: Job failed to start

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in upstart (Ubuntu):
status: New → Confirmed
Revision history for this message
paddyponchero (paddy-oherlihy) wrote :

Upon further investigation my issue was with apparmor
home in apparmor.d had gone missing, absolutely no idea how that happened.
I have to say upstart with --verbose enabled was didn't yield any extra info.

Revision history for this message
Kalsan (info-kalsan) wrote :

Same issue:
sudo apt-get autoremove
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Status-Informationen einlesen... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
5 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
cups (1.5.0-8ubuntu5) wird eingerichtet ...
start: Job failed to start
invoke-rc.d: initscript cups, action "start" failed.
dpkg: Fehler beim Bearbeiten von cups (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Es wurde kein Apport-Bericht verfasst, da das Limit MaxReports bereits erreicht ist
   dpkg: Abhängigkeitsprobleme verhindern Konfiguration von bluez-cups:
 bluez-cups hängt ab von cups; aber:
  Paket cups ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten von bluez-cups (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von cups-driver-gutenprint:
 cups-driver-gutenprint hängt ab von cups (>= 1.3.0); aber:
  Paket cups ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten von cups-driver-gutenprint (--configure):
Es wurde kein Apport-Bericht verfasst, da das Limit MaxReports bereits erreicht ist
   Es wurde kein Apport-Bericht verfasst, da das Limit MaxReports bereits erreicht ist
       Abhängigkeitsprobleme - verbleibt unkonfiguriert
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von hplip-cups:
 hplip-cups hängt ab von cups; aber:
  Paket cups ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten von hplip-cups (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Es wurde kein Apport-Bericht verfasst, da das Limit MaxReports bereits erreicht ist
   dpkg: Abhängigkeitsprobleme verhindern Konfiguration von hplip:
 hplip hängt ab von hplip-cups (= 3.11.7-1ubuntu3); aber:
  Paket hplip-cups ist noch nicht konfiguriert.
 hplip hängt ab von cups (>= 1.1.20); aber:
  Paket cups ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten von hplip (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Es wurde kein Apport-Bericht verfasst, da das Limit MaxReports bereits erreicht ist
   Fehler traten auf beim Bearbeiten von:
 cups
 bluez-cups
 cups-driver-gutenprint
 hplip-cups
 hplip
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Tillmo (till-mossakowski) wrote :

I get the same problem already with upstart 1.3-0ubuntu10 when running a remaster script that unpacks an oneiric live CD, chroots into it, adds universe to the sources and installs cups-pdf. The problem does not occur when running the same remaster script with natty. Neither does it occur when manually starting an oneiric live CD and installing cups-pdf.

Instead of installing cups-pdf, it suffices to do "apt-get install --reinstall cups" to get the same behaviour.

root@ubuntu:/# apt-cache policy upstart
upstart:
  Installed: 1.3-0ubuntu10
  Candidate: 1.3-0ubuntu11
  Version table:
     1.3-0ubuntu11 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
 *** 1.3-0ubuntu10 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status
root@ubuntu:/# apt-get install cups-pdf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  cups-pdf
0 upgraded, 1 newly installed, 0 to remove and 303 not upgraded.
Need to get 38.0 kB of archives.
After this operation, 299 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/universe cups-pdf i386 2.5.1-7 [38.0 kB]
Fetched 38.0 kB in 0s (205 kB/s)
Selecting previously deselected package cups-pdf.
(Reading database ... 132571 files and directories currently installed.)
Unpacking cups-pdf (from .../cups-pdf_2.5.1-7_i386.deb) ...
Processing triggers for cups ...
start: Unknown job: cups
invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing cups (--unpack):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 cups
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/#

Revision history for this message
Tillmo (till-mossakowski) wrote :

I have solved my problem by updating the host of the chroot environment from lucid to oneiric. tabbernuk, how does your remaster process work?

Revision history for this message
Märt Põder (boamaod) wrote :

My host is still lucid. Remaster process is basically plain UCK in that respect. So you think there's something in chroot what causes this? I can hardly imagine it's just lucid vs oneiric.

Revision history for this message
Tillmo (till-mossakowski) wrote :

Yes, it's just lucid vs oneiric. I am using a modification of the scripts that have lead to UCK, and changing the chroot host from lucid to oneiric solved the problem. For chroot environments, oneiric seems to require the same distro for chroot host and guest. Probably this should not be the case, because this severely limits the use of chroot.

Revision history for this message
Steve Langasek (vorlon) wrote :

This is a bug in the uck script, not in upstart. It deactivates initctl by doing the following:

        echo "Deactivating initctl..."
        chroot "$REMASTER_DIR" mv /sbin/initctl /sbin/initctl.uck_blocked
        chroot "$REMASTER_DIR" ln -s /bin/true /sbin/initctl

By not using dpkg-divert on initctl, when a new version of upstart is itself unpacked as part of the upgrade, /sbin/initctl is overwritten.

affects: upstart (Ubuntu) → uck (Ubuntu)
Changed in uck (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Tillmo (till-mossakowski) wrote :

Hm, I am using a precursor of the UCK script from http://david.decotigny.free.fr/wiki/wakka.php?wiki=RemasterUbuntu . Actually, this script does not mention initctl at all, yet I get exactly the same error.

Revision history for this message
Tillmo (till-mossakowski) wrote :

I just have come across this bug: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430224 , which seems to be related. However, it has been fixed since Natty.

Revision history for this message
Tillmo (till-mossakowski) wrote :

Aha, that bug has been fixed since Natty, but not in Lucid. This explains why the present bug affects a Lucid chroot host, but not an Oneiric chroot host.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.