[Oneiric] dpkg error when upgrading librsvg (2.34.0-0ubuntu4)

Bug #788115 reported by Harry
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
librsvg (Ubuntu)
Fix Released
Undecided
Steve Langasek

Bug Description

Here is the error message I get when upgrading the librsvg (2.32.1-1ubuntu1 to 2.34.0-0ubuntu4)

Preparing to replace librsvg2-common 2.32.1-1ubuntu1 (using .../librsvg2-common_2.34.0-0ubuntu4_amd64.deb) ...
Unpacking replacement librsvg2-common ...
dpkg: warning: unable to delete old directory '/usr/lib/gdk-pixbuf-2.0/2.10.0': Directory not empty
dpkg: warning: unable to delete old directory '/usr/lib/gdk-pixbuf-2.0': Directory not empty
Preparing to replace librsvg2-2 2.32.1-1ubuntu1 (using .../librsvg2-2_2.34.0-0ubuntu4_amd64.deb) ...
Unpacking replacement librsvg2-2 ...
Processing triggers for libgdk-pixbuf2.0-0 ...
Setting up librsvg2-2 (2.34.0-0ubuntu4) ...
Setting up librsvg2-common (2.34.0-0ubuntu4) ...
/var/lib/dpkg/info/librsvg2-common.postinst: 6: dpkg-architecture: not found
dpkg: error processing librsvg2-common (--configure):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin ...
No apport report written because MaxReports is reached already
                                                              ldconfig deferred processing now taking place
Errors were encountered while processing:
 librsvg2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up librsvg2-common (2.34.0-0ubuntu4) ...
/var/lib/dpkg/info/librsvg2-common.postinst: 6: dpkg-architecture: not found
dpkg: error processing librsvg2-common (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 librsvg2-common

Revision history for this message
Harry (harry33) wrote :

If I then reinstall gdk-pixbuf2.0 packages (2.23.3-0ubuntu3), I get the following error message:

Preparing to replace libgdk-pixbuf2.0-0 2.23.3-0ubuntu3 (using .../libgdk-pixbuf2.0-0_2.23.3-0ubuntu3_amd64.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0 ...
Preparing to replace gir1.2-gdkpixbuf-2.0 2.23.3-0ubuntu3 (using .../gir1.2-gdkpixbuf-2.0_2.23.3-0ubuntu3_amd64.deb) ...
Unpacking replacement gir1.2-gdkpixbuf-2.0 ...
Setting up libgdk-pixbuf2.0-0 (2.23.3-0ubuntu3) ...
Setting up gir1.2-gdkpixbuf-2.0 (2.23.3-0ubuntu3) ...
Setting up librsvg2-common (2.34.0-0ubuntu4) ...
/var/lib/dpkg/info/librsvg2-common.postinst: 6: dpkg-architecture: not found
dpkg: error processing librsvg2-common (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 librsvg2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up librsvg2-common (2.34.0-0ubuntu4) ...
/var/lib/dpkg/info/librsvg2-common.postinst: 6: dpkg-architecture: not found
dpkg: error processing librsvg2-common (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 librsvg2-common

Revision history for this message
Anders Kaseorg (andersk) wrote :

dpkg-architecture is part of dpkg-dev, so it can’t be used in librsvg2-common.postinst (a dpkg-dev dependency seems wrong).

Changed in librsvg (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Bienia (geser) wrote :

Looks like the dpkg-architecture call needs to be replaced with the result like it is done for the postinst of gdk-pixbuf.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Steve said he would update it to generate the directory at build time rather than run time

Changed in librsvg (Ubuntu):
assignee: nobody → Steve Langasek (vorlon)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package librsvg - 2.34.0-0ubuntu5

---------------
librsvg (2.34.0-0ubuntu5) oneiric; urgency=low

  * debian/librsvg2-common.postinst: we can't rely on dpkg-architecture at
    runtime; postprocess this file in debian/rules to substitute in the
    architecture. LP: #788115
 -- Steve Langasek <email address hidden> Wed, 25 May 2011 13:48:34 -0700

Changed in librsvg (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Harry (harry33) wrote :

Confirming this bug is now fixed.
Thank You Steve!

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.