Removing transmission-daemon breaks dpkg

Bug #529318 reported by Marc D.
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
transmission (Ubuntu)
Fix Released
High
Chris Coulson

Bug Description

Binary package hint: transmission

kosh@isis:~$ lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04
kosh@isis:~$ dpkg -l transmission-daemon | fgrep trans
un transmission-daemon <none> (no description available)

I installed transmission-daemon, didn’t like it and tried to remove it right away, but the removal failed:

(Reading database ... 131566 files and directories currently installed.)
Removing transmission-daemon ...
 * Stopping bittorrent daemon transmission-daemon [ OK ]
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
Purging configuration files for transmission-daemon ...
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
Processing triggers for man-db ...
dpkg: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
Press return to continue.

Revision history for this message
Marc D. (koshy) wrote :

I’m sorry, I misinterpreted that output. transmission-daemon is removed, but it leaves behind statoverride configuration, breaking dpkg (output of subsequent package installation attempt):

dpkg: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
Press return to continue.

Removing all lines from /var/lib/dpkg/statoverride that mention the user debian-transmission fixes the issue:

debian-transmission debian-transmission 4775 /var/lib/transmission-daemon/downloads
debian-transmission debian-transmission 4750 /var/lib/transmission-daemon/info
debian-transmission debian-transmission 4750 /etc/transmission-daemon/settings.json

summary: - transmission-daemon cannot be uninstalled
+ Removing transmission-daemon breaks dpkg
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Thanks, I can confirm it and it's something new to lucid (probably a change in a way that dpkg-stateoverride works). I'm already working on it.

Changed in transmission (Ubuntu):
assignee: nobody → Krzysztof Klimonda (kklimonda)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

I have pushed a fix to the linked branch - it makes it possible to remove transmission-daemon package and not break half of the dpkg in the process. It prints some warnings to the terminal right now, I have sent a proposed patch to the debian bts that is going to fix it.

Changed in transmission (Ubuntu):
status: In Progress → Triaged
status: Triaged → Confirmed
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

The patch I've sent to the debian has been applied so I'm going to push a branch with it soon.

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Done, new revision has been pushed into linked branch. I'm going to try to find a sponsor today to get it into archive.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks for looking at this. I'll take this for sponsoring

Changed in transmission (Ubuntu):
assignee: Krzysztof Klimonda (kklimonda) → Chris Coulson (chrisccoulson)
Changed in transmission (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package transmission - 1.91-0ubuntu2

---------------
transmission (1.91-0ubuntu2) lucid; urgency=low

  * debian/transmission-daemon.postrm:
    - remove group only after stateoverride entries has been removed (LP: #529318)
    - split remove and purge actions to avoid running dpkg-statoverride twice.
 -- Krzysztof Klimonda <email address hidden> Sun, 28 Feb 2010 11:21:32 +0100

Changed in transmission (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
luojie-dune (luojie-dune) wrote :

dpkg: unrecoverable fatal error, aborting:
 syntax error: unknown user 'debian-transmission' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

and I can't install any package now :S

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Do you use transmission from lucid repository? What does apt-cache policy transmission-daemon returns?

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

The workaround for this error is given in the https://bugs.edge.launchpad.net/ubuntu/+source/transmission/+bug/529318/comments/1
(sorry for spamming)

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

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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