package update-manager 1:0.87.24 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

Bug #224847 reported by Felipe Figueiredo
90
This bug affects 1 person
Affects Status Importance Assigned to Milestone
plucker (Ubuntu)
Fix Released
High
Unassigned
Hardy
Fix Released
Undecided
Unassigned
Intrepid
Fix Released
High
Unassigned
python-central (Ubuntu)
Invalid
High
Unassigned
Hardy
Invalid
Undecided
Unassigned
Intrepid
Invalid
High
Unassigned

Bug Description

Binary package hint: update-manager

Error during upgrade from Gutsy to Hardy, apparently during some operation with alsa drivers. More info on separate comments.

ProblemType: Package
Architecture: i386
Date: Wed Apr 30 14:41:26 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

NonfreeKernelModules: nvidia
Package: update-manager 1:0.87.24
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.87.24 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.22-14-generic i686

Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Download full text (5.5 KiB)

This is what I could gather from the Details window in the upgrade process:

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or direc...

Read more...

Revision history for this message
Felipe Figueiredo (philsf) wrote :

Maybe this is related to bug #224871, since it consistently gave me problems with apt.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Please attach the files in /var/log/dist-upgrade to this bugreport.
 Thanks Michael

Changed in update-manager:
status: New → Incomplete
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Felipe Figueiredo (philsf) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Here is what causes the error during the upgrade:

2008-04-30 14:15:00,928 ERROR got an error from dpkg for pkg: 'plucker': 'subprocess post-installation script returned error exit status 1

Setting up plucker (1.8-24) ...
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/UtilFns.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/Writer.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/__init__.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/CharsetMapping.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/PQAAppInfo.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/__init__.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/dict.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/doc_compress.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/gettext.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/prc.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/helper/timeoutsocket.py
file does not exist: /usr/lib/python2.5/site-packages/PyPlucker/pluck-comics.py
pycentral: pycentral bccompile: error byte-compiling package `plucker'
pycentral bccompile: error byte-compiling package `plucker'
dpkg: error processing plucker (--configure):
 subprocess post-installation script returned error exit status 1

I reassign to the appropriate package.

Changed in plucker:
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
Felipe Figueiredo (philsf) wrote :

Thanks. Then I already reported it, in another bug. I thought it was different because of the ALSA messages. I'll set the other a dup of this.

Revision history for this message
Felipe Figueiredo (philsf) wrote :

From the duplicate ( Bug #224871 ):

 Felipe Figueiredo wrote on 2008-04-30: (permalink)

The issue continued to happen, after rebooting, during each and every pacakge operation (install, upgrade or remove) in synaptic. I decided to remove the plucker package, and re install it, and it solved. Sad that this broke my upgrade process, and I had to finish it manually.

A screenshot was also posted there:

http://launchpadlibrarian.net/14050498/plucker_problem.png

Changed in python-central:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I think the problem is that the package installs in /usr/lib/python2.5/site-packages/PyPlucker/ but pycentral moves to /usr/share/pycentral/plucker/site-packages/PyPlucker/ adding symlinks in /usr/lib/python2.5/site-packages/PyPlucker/.
When upgrading, these symlinks are removed (by pycentral!? by dpkg!?) so that installation fails since pycentral cannot bytecompile the sources.
Simply adding export DH_PYCENTRAL=nomove to debian/rules solves this, but I wonder if it is just a workaround around a deeper problem with pycentral?
I have a package ready for upload to intrepid (and will make an sru to hardy if accepted) but I would like to have mvo/doko opinion on this?

Changed in plucker:
assignee: nobody → norsetto
status: Confirmed → In Progress
Changed in plucker:
status: In Progress → Confirmed
Changed in python-central:
status: Confirmed → Invalid
Changed in plucker:
status: New → Confirmed
assignee: norsetto → nobody
Changed in python-central:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package plucker - 1.8-24build1

---------------
plucker (1.8-24build1) intrepid; urgency=low

  * Rebuild with newer pycentral (LP: #224847)

 -- Cesare Tirabassi <email address hidden> Mon, 26 May 2008 12:43:17 +0200

Changed in plucker:
status: Confirmed → Fix Released
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

As doko (thx!) suggested, a simple rebuild with newer pycentral solves this. I'm subscribing motu-sru to request a go-ahead to fix this for the stable release:

1. Users upgrading to hardy will fail upgrade due to plucker failure to upgrade.
2. This is simply due to the package not having been rebuild with latest pycentral. The package in the development release has been rebuilt with last pycentral.
3. A minimal patch is attached.
4. TEST CASE: Install the gutsy (or dapper) version of the package (ie. 1.8-21ubuntu1). Upgrading to the hardy version (1.8-24) will fail. Upgrading to the hardy-proposed version (1.8-24build0.1) will succeed.
5. Its a simple rebuild, so no regression potential of the patch is foreseen. If no updates to the intrepid package will be made, users upgrading to intrepid will also be unaffected (intrepid version (1.8-24build1) is > hardy version (1.8-24build0.1) so the package will be upgraded successfully).

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

ACK from motu-sru to upload a no-change rebuild.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in plucker:
status: Confirmed → Fix Committed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

To have this available in hardy-updates, we need your help in testing it.

 If you would like to help, please add the following line to /etc/apt/sources.list:

  deb http://archive.ubuntu.com/ubuntu/ hardy-proposed universe

Then update and install (or upgrade) plucker with your preferred package manager.
Please report test results here.

The TEST CASE is very simple: Install the gutsy (or dapper) version of the package (ie. 1.8-21ubuntu1). Upgrading to the hardy version (1.8-24) will fail. Upgrading to the hardy-proposed version (1.8-24build0.1) will succeed.

Many thanks in advance for your help!

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

It works properly.

Revision history for this message
Felipe Figueiredo (philsf) wrote :

I ran the test case, and it worked as expected: fail on 1.8-21ubuntu1->1.8-24, success on 1.8-21ubuntu1->1.8-24build0.1 .

Thank you very much for this.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

This needs an update in view of bug 236035.
Version 1.8-24ubuntu0.1 has been uploaded to hardy-proposed, please test when available.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :
Changed in plucker:
status: Fix Committed → Confirmed
Revision history for this message
LaserJock (laserjock) wrote :

SRU ack for 1.8-24ubuntu0.1. Please update with test case and proceed.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Updated TEST CASE: Install the gutsy (or dapper) version of the package (ie. 1.8-21ubuntu1). Upgrading to the hardy version (1.8-24) will fail. Upgrading to the hardy-proposed version (1.8-24ubuntu0.1) will succeed. Now check that all commands are executed when called from a shell prompt:

pluck-comics
plucker-dump
plucker-decode
plucker-build

Revision history for this message
Felipe Figueiredo (philsf) wrote :

Success on upgrade, fail on execution of ALL mentioned binaries:

philsf@philsf-laptop:~$ pluck-comics
The program 'pluck-comics' is currently not installed. You can install it by typing:
sudo apt-get install plucker
bash: pluck-comics: command not found

philsf@philsf-laptop:~$ pluck-dump
bash: pluck-dump: command not found

philsf@philsf-laptop:~$ plucker-decode
The program 'plucker-decode' is currently not installed. You can install it by typing:
sudo apt-get install plucker
bash: plucker-decode: command not found

philsf@philsf-laptop:~$ plucker-build
The program 'plucker-build' is currently not installed. You can install it by typing:
sudo apt-get install plucker
bash: plucker-build: command not found

philsf@philsf-laptop:~$ apt-cache policy plucker
plucker:
  Installed: 1.8-24build0.1
  Candidate: 1.8-24build0.1
  Version table:
 *** 1.8-24build0.1 0
        500 http://br.archive.ubuntu.com hardy-proposed/universe Packages
        100 /var/lib/dpkg/status
     1.8-24 0
        500 http://br.archive.ubuntu.com hardy/universe Packages

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

@Felipe,
thanks for checking!
Please wait until the new package is in proposed, it has not yet been approved by the archive admins.
As you can see from the apt-cache command, you are still testing the 1.8-24build0.1 version, the new version will be 1.8-24ubuntu0.1.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in plucker:
status: Confirmed → Fix Committed
Revision history for this message
Felipe Figueiredo (philsf) wrote :

@Cesare,

duh! I missed the non-numerical part of the version.

Ok, I tested the new ubuntu0.1 and it upgrades from the gutsy version, and the referred binaries exist.

But I don't see the /usr/share/plucker/palm dir, with the prc bins that are supposed to be installed by the plucker-prc-install bin. Actually, I just checked and the neither of the 3 versions mentioned in this bug report (gutsy version, hardy, and hardy-proposed) contain it. Should this be corrected before the package is pushed to -updates?

Revision history for this message
Felipe Figueiredo (philsf) wrote :

Nevermind the last commend, bout plucker-prc-install. I just noted that this binary is supposed to fetch the PRCs from the web, instead of /usr/share/plucker.

The package is tested and good to go, AFAICT. Thanks, and sorry for the noise.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Thanks for testing, we have +1 here, +1 from bug 236035 and +1 from me, I'm therefore setting it do verification-done.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in plucker:
status: Fix Committed → Fix Released
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.