You are not logged in.

#1 2010-05-28 14:01:54

robrene
Member
Registered: 2009-04-16
Posts: 168

Trying to remove mpd resulted in an error, now what?

$ sudo pacman -Rns mpd
checking dependencies...

Remove (1): mpd-0.15.9-6  

Total Removed Size:   0.47 MB

Do you want to remove these packages? [Y/n] 
(1/1) removing mpd                                  [############################################################] 100%
error: command failed to execute correctly
$ sudo pacman -Rns mpd
mpd not found, searching for group...
error: 'mpd': not found in local db
$ cat /var/log/pacman.log
(...)
[2010-05-28 15:58] removed mpd (0.15.9-6)

Now what? Is it gone? Do I need to do something special? What was the error?


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#2 2010-05-28 14:04:34

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Trying to remove mpd resulted in an error, now what?

This is a guess but I think the error may have something to do with removing the mpd user.  Check to see if it's stil there.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2010-05-28 14:06:52

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: Trying to remove mpd resulted in an error, now what?

If memory serves me right, I never made an mpd user. I never ended up using mpd (that's why I'm removing it) and when I configured it I made it start as a user daemon (not system wide). How would I check for the existance of such a user, and whether that was what it complained about?


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#4 2010-05-28 16:50:11

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: Trying to remove mpd resulted in an error, now what?

.INSTALL script located in mpd package uses getent to check whether mpd user and group exist:

getent passwd "mpd" &>/dev/null && userdel mpd 1>/dev/null
getent group "mpd" &>/dev/null && groupdel mpd 1>/dev/null

P.S. I've noticed that the script also moves /etc/mpd.conf to /etc/mpd.conf.pacsave. Does it mean that --nosave option is ignored?

Offline

#5 2010-05-29 03:47:22

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Trying to remove mpd resulted in an error, now what?

You can always reinstall mpd and then remove it a second time.

Offline

Board footer

Powered by FluxBB