Bug 156979

Summary: Amarok does not install mp3 support on hardy upon using "install mp3 dialog"
Product: [Applications] amarok Reporter: Sven Boden <svenboden>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.4.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sven Boden 2008-01-30 17:59:06 UTC
Version:           1.4.8 (using 3.5.8, Kubuntu (hardy) 4:3.5.8-4ubuntu7)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.24-5-generic

The first time I play an mp3 in amarok on Kubuntu hardy heron (alpha2) I get the dialog "Amarok currently cannot play MP3 files." ... I click the "Install MP3 Support" button. It goes away and comes back with "MP3 support now installed, you will need to restart Amarok.". I restart and I still can't play mp3s.

This is on a brand new installed hardy 8.4 alpha2 running 1 user (the one from the setup with id 1000). Amarok is the only active application (no package manager running).
Comment 1 Sven Boden 2008-01-30 18:25:10 UTC
A work around is to do the following:

sudo aptitude install libxine1-ffmpeg
Comment 2 Mark Kretschmann 2008-01-30 21:02:30 UTC
This is a very likely a distro bug.. it worked fine in Gutsy. Could you please report this to the Ubuntu folks?
Comment 3 Sven Boden 2008-01-30 21:26:31 UTC
Sure, in the mean-time I found the bug myself, it's in the install-mp3 script. If I run it manually I get following:

bash -x ./install-mp3
++ dpkg --get-selections libxine1-ffmpeg
++ grep install
+ INSTALLED=
++ lsb_release -sc
+ RELEASE=hardy
+ '[' -z '' ']'
+ '[' -x /usr/bin/kdesu ']'
+ '[' -x /usr/bin/adept_batch ']'
+ kdesu -d 'bash -c "adept_batch update; adept_batch install libxine1-ffmpeg"'
update;: -c: line 0: unexpected EOF while looking for matching `"'
update;: -c: line 1: syntax error: unexpected end of file

+ check_mp3
+ '[' 0 -eq 0 ']'
+ '[' -x /usr/bin/kdialog ']'
+ kdialog --msgbox 'MP3 support now installed, you will need to restart Amarok.'
+ exit 0

----------

So the kdesu line 'blows' up and the check afterwards fails.