package transmission-daemon 2.51-0ubuntu1.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 255

Bug #1058518 reported by Anders Holm
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
transmission (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Setting up transmission-daemon (2.51-0ubuntu1.1) ...
 * Starting bittorrent daemon transmission-daemon invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing transmission-daemon (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@htpc:~# ps -ef | grep transmission
root 5051 4280 0 09:21 pts/1 00:00:00 grep --color=auto transmission
root@htpc:~# /etc/init.d/transmission-daemon status
 * transmission-daemon is not running
root@htpc:~# /etc/init.d/transmission-daemon start
 * Starting bittorrent daemon transmission-daemon root@htpc:~# ps -ef | grep transmission
root 5112 4280 0 09:22 pts/1 00:00:00 grep --color=auto transmission
root@htpc:~#

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: transmission-daemon 2.51-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu13
AptOrdering: transmission-daemon: Configure
Architecture: amd64
Date: Sat Sep 29 09:17:27 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 255
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
SourcePackage: transmission
Title: package transmission-daemon 2.51-0ubuntu1.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 255
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.init.d.transmission.daemon: 2012-08-12T15:54:17.190882
mtime.conffile..etc.transmission.daemon.settings.json: 2012-08-12T16:01:02.678904

Revision history for this message
Anders Holm (yatc18ks0g8zofezrpk3xa7828d3o-me) wrote :
Revision history for this message
Anders Holm (yatc18ks0g8zofezrpk3xa7828d3o-me) wrote :

/var/log/syslog:

Sep 29 09:22:09 htpc transmission-daemon: transmission-daemon Error loading config file -- exiting. (daemon.c:462)

No changes made to any configuration files.

root@htpc:/etc/transmission-daemon# ls -larth settings.json
-rwsr-x--- 1 debian-transmission debian-transmission 2.3K Aug 12 16:01 settings.json

tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in transmission (Ubuntu):
status: New → Confirmed
Revision history for this message
ArTaX (marco-zannoni) wrote :

I experienced the same issue.
Prior the upgrade I had changed the user in /etc/init.d/transmission-daemon to my username.
To resolve the issue, I restored the original user "debian-transmission" and then the upgrade process went ok.

Revision history for this message
Anders Holm (yatc18ks0g8zofezrpk3xa7828d3o-me) wrote :

I'd accept that as a workaround. However, previous versions upgraded happily, so ...

Revision history for this message
Anders Holm (yatc18ks0g8zofezrpk3xa7828d3o-me) wrote :

Is there any progress on this bug? If not, anything I can do to help move this one along?

Revision history for this message
Mike C. (miguelmclara-c) wrote :

I'm using transmission-d 2.76-0 and have the same exact problem.... is this "fixable"? Is there any workaround?

Thanks

Revision history for this message
Mike C. (miguelmclara-c) wrote :

Please note that changing the user makes no difference to me, in fact mine is "debain-trasmission"

sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up transmission-daemon (2.76-0ubuntu0.12.10.1) ...
 * Starting bittorrent daemon transmission-daemon /usr/bin/transmission-daemon already running.
invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing transmission-daemon (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also noticed this:
 * Restarting bittorrent daemon transmission-daemon [18:42:03.798] Couldn't read "/home/miguelc/.config/user-dirs.dirs": Permission denied

Which makes no sense and nothing in the config file points to miguelc "user" not even the download "dirs"

Revision history for this message
Giorgio (leppig) wrote :

The workaround I found was to edit the configuration file of transmission-daemon

sudo vim /etc/default/transmission-daemon

 setting
ENABLE_DAEMON=1
instead of
ENABLE_DAEMON=0

upgrading the package and then changing the value of ENABLE_DAEMON again.

Revision history for this message
Michał Sawicz (saviq) wrote :

This still happens with

transmission-daemon/trusty-updates,trusty-security,now 2.82-1.1ubuntu3.1 amd64

When ENABLE_DAEMON is 0 in /etc/default, the post-install script tries to restart the daemon but fails, because the upstart job return value is not 0 if daemon is disabled.

Revision history for this message
Nick Maynard (nick-maynard) wrote :

+1 for what @saviq has mentioned in #10 - I see exactly the same behaviour. ENABLE_DAEMON = 0 causes upgrade to fail.

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.