You are not logged in.

#1 2010-06-25 22:45:21

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

pacman -R usbmuxd error

I don't know if it's a bug in pacman or in usbmuxd packaging, so I'm posting here instead of filing a bug report...

> sudo pacman -Rns libimobiledevice
checking dependencies...

Remove (4): libimobiledevice-1.0.1-1  usbmuxd-1.0.4-2  libusb1-1.0.8-1
            libplist-1.3-1

Total Removed Size:   1.99 MB

Do you want to remove these packages? [Y/n] 
(1/4) removing libimobiledevice                    [######################] 100%
error: command failed to execute correctly
(2/4) removing usbmuxd                             [######################] 100%
(3/4) removing libusb1                             [######################] 100%
(4/4) removing libplist                            [######################] 100%

I tried to add the 'v' option (verbose) to pacman but that didn't add any information about the error. pacman.log contains no more info either.

In fact, the problem seems to be with usbmuxd:

> sudo pacman -R usbmuxd
checking dependencies...

Remove (1): usbmuxd-1.0.4-2

Total Removed Size:   0.12 MB

Do you want to remove these packages? [Y/n] 
error: command failed to execute correctly
(1/1) removing usbmuxd                             [######################] 100%

Offline

#2 2010-06-26 08:09:17

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: pacman -R usbmuxd error

Seems like this package has an install script, which needs a package which is not installed. Here's the install script

post_install() {
    getent group usbmux >/dev/null 2>&1 || usr/sbin/groupadd -g 140 usbmux
    getent passwd usbmux >/dev/null 2>&1 || usr/sbin/useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux

    usr/bin/passwd -l usbmux &>/dev/null
}

pre_upgrade () {
    if [ $2 == "1.0.4-1" ]; then
        pre_remove $1
    fi
}

post_upgrade() {
    post_install $1
}

pre_remove() {
    getent passwd usbmux >/dev/null 2>&1 && userdel usbmux
    getent group usbmux >/dev/null 2>&1 && groupdel usbmux
}

Now it's  your turn to find out what's the culprit here.

Offline

#3 2010-06-26 08:12:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: pacman -R usbmuxd error

pre_remove() {
    getent passwd usbmux >/dev/null 2>&1 && userdel usbmux
    getent group usbmux >/dev/null 2>&1 && groupdel usbmux
}

well... the error is happening pre removal of the package...  so pre_remove seems the place of the error!

I can not see anything standing out at me as being wrong there.

Offline

#4 2010-06-26 08:19:11

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pacman -R usbmuxd error

i have to add an if there to silent the "error" like in mysql


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-06-26 08:35:32

andresp
Member
Registered: 2010-05-29
Posts: 62

Re: pacman -R usbmuxd error

pre_remove() {
    getent passwd usbmux >/dev/null 2>&1 && userdel usbmux
    getent group usbmux >/dev/null 2>&1 && groupdel usbmux
}

The function is returning false.

fn() { getent group bogusgroup && groupdel bogusgroup; }
fn &>/dev/null
echo $?
2

Offline

#6 2010-08-21 10:11:01

birdflesh
Member
From: Greece
Registered: 2010-08-04
Posts: 98

Re: pacman -R usbmuxd error

This is still present  (and quite confusing)

Offline

Board footer

Powered by FluxBB