post-installation script returns error code 2 on amd64

Bug #32688 reported by markus
This bug report is a duplicate of:  Bug #42632: startup script is broken. Edit Remove
10
Affects Status Importance Assigned to Milestone
mldonkey (Ubuntu)
Invalid
Medium
MOTU

Bug Description

When installing mldonkey-server with apt-get on amd64, the following error occurs (and reoccurs everytime running apt-get upgrade) after the run on system start/ admin password dialogue:

Entpacke mldonkey-server (aus .../mldonkey-server_2.7.1-2ubuntu1_amd64.deb) ...
Richte mldonkey-server ein (2.7.1-2ubuntu1) ...
Fatal error: exception Failure("lexing: empty token")
dpkg: Fehler beim Bearbeiten von mldonkey-server (--configure):
 Unterprozess post-installation script gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
 mldonkey-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

(Sorry for the non-English, I hope it is still understandable.)

/etc/init.d/mldonkey-server start does not have any result. mlnet is not started.

Changed in mldonkey:
assignee: nobody → motu
Revision history for this message
menz (hans-georg-menz) wrote :

same problem for i386

Revision history for this message
Jeremy Vies (jeremy.vies) wrote :

Here is the trace in english:

Fatal error: exception Failure("lexing: empty token")
Fatal error: exception Failure("lexing: empty token")
Fatal error: exception Failure("lexing: empty token")
Creating backup of /var/lib/mldonkey/downloads.ini: done.
Writing new values to /var/lib/mldonkey/downloads.ini: Unable to parse option to set
Last word seen : =
Position : 256-257
Fatal error: exception Parsing.Parse_error
dpkg: error processing mldonkey-server (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 mldonkey-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem happens after an update, but also after a fresh new installation.

Revision history for this message
Jeremy Vies (jeremy.vies) wrote :

The bug prevent from configuring or removing the package.

Changed in mldonkey:
status: Unconfirmed → Confirmed
Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Developers determine their priorities...

Revision history for this message
Curtman (curtm4n) wrote :

I have this problem on x86 (not amd64). With more verbosity, dpkg shows this:

Selecting previously deselected package mldonkey-server.
(Reading database ... 71237 files and directories currently installed.)
Preparing to replace mldonkey-server 2.7.1-2ubuntu2 (using mldonkey-server_2.7.1-2ubuntu2_i386.deb) ...
D000002: fork/exec /var/lib/dpkg/info/mldonkey-server.prerm ( upgrade 2.7.1-2ubuntu2 )
Stopping MLDonkey: mlnetNo process in pidfile `/var/run/mlnet.pid' found running; none killed.
invoke-rc.d: initscript mldonkey-server, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
D000002: fork/exec /var/lib/dpkg/tmp.ci/prerm ( failed-upgrade 2.7.1-2ubuntu2 )
Stopping MLDonkey: mlnetNo process in pidfile `/var/run/mlnet.pid' found running; none killed.
invoke-rc.d: initscript mldonkey-server, action "stop" failed.
dpkg: error processing mldonkey-server_2.7.1-2ubuntu2_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 1
D000002: fork/exec /var/lib/dpkg/info/mldonkey-server.postinst ( abort-upgrade 2.7.1-2ubuntu2 )
Fatal error: exception Failure("lexing: empty token")
Fatal error: exception Failure("lexing: empty token")
Fatal error: exception Failure("lexing: empty token")
Starting MLDonkey: mlnetinstall: invalid option -- f
Try `install --help' for more information.
invoke-rc.d: initscript mldonkey-server, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mldonkey-server_2.7.1-2ubuntu2_i386.deb

Revision history for this message
Jeremy Vies (jeremy.vies) wrote :

the patch proposed on bug #42632 worked fine for me.

I think these 2 bugs are only one.

Revision history for this message
Jérémie Corbier (jcorbier) wrote :

Thanks for the bug report. Rejecting it as it is a duplicate.

Changed in mldonkey:
status: Confirmed → Rejected
Revision history for this message
tux73 (tux73) wrote :

as this seems to be a common-problem, I'd really like to have it fixed, too.
The package is broken and manual fixing may be a good temporary solution, but is not a good solution for the future. Please do not let everybody wait for edgy, because a lot of people I know want to use dapper because of the LTS.

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.