You are not logged in.
Pages: 1
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
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
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
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
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 $?
2Offline
This is still present (and quite confusing)
Offline
Pages: 1