Results 1 to 4 of 4

Thread: [SOLVED] Unable to install mpd in Hardy

  1. #1
    Join Date
    Feb 2005
    Location
    New York City, New York
    Beans
    127
    Distro
    Ubuntu 13.04 Raring Ringtail

    Angry [SOLVED] Unable to install mpd in Hardy

    I have been unable to install mpd from the repositories in Hardy.

    A simple

    Code:
    sudo apt-get install mpd
    yields the following error:

    Code:
    Selecting previously deselected package libmikmod2.
    (Reading database ... 120217 files and directories currently installed.)
    Unpacking libmikmod2 (from .../libmikmod2_3.1.11-a-6ubuntu3_i386.deb) ...
    Selecting previously deselected package mpd.
    Unpacking mpd (from .../mpd_0.13.1-3ubuntu1_i386.deb) ...
    Setting up libmikmod2 (3.1.11-a-6ubuntu3) ...
    
    Setting up mpd (0.13.1-3ubuntu1) ...
     * Starting Music Player Daemon mpd
    problem opening log file "/var/log/mpd/mpd.log" (config line 11) for writing
                                                                                             [fail]
    invoke-rc.d: initscript mpd, action "start" failed.
    dpkg: error processing mpd (--configure):
     subprocess post-installation script returned error exit status 1
    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
     mpd
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried to see what was in the file /var/log/mpd/mpd.log but the file does not exist.

    If I try tu uninstall mpd using apt-get I have to delete the file /var/lib/dpkg/info/mpd.* otherwise the uninstall will fail claiming it can't stop the mpd daemon.

    Any ideas what is wrong? Is there a bug in the package?
    Last edited by sagara; October 12th, 2008 at 02:54 AM. Reason: Specified ubuntu distro used

  2. #2
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Unable to install mpd in Hardy

    Sounds like a bug in the package. Try
    Code:
    sudo mkdir /var/log/mpd
    and reinstall. Also, file a bug report.
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

  3. #3
    Join Date
    Feb 2005
    Location
    New York City, New York
    Beans
    127
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Unable to install mpd in Hardy

    Thanks for the tip jpkotta, but the directory does exist. I went ahead and created the log file myself, granted all permissions to it and it still did not work.

    How are other installing this? from source or something?

  4. #4
    Join Date
    Feb 2005
    Location
    New York City, New York
    Beans
    127
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Unable to install mpd in Hardy

    Ok I figured this one out. Turns out some time back I had tried to manually compile mpd from source. It seems I still have some left overs to clean up from that install.

    After creating the file /var/log/mpd/mpd.log and changing the permissions on /var/log/mpd/errors.log (created on the prior install) mpd installed succesfully.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •