# LANG="en_US.UTF-8" apt-get -uV dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up fuse (2.9.3-14) ...
dpkg: error processing package fuse (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)
# LANG="en_US.UTF-8" apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up fuse (2.9.3-14) ...
dpkg: error processing package fuse (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
# LANG="en_US.UTF-8" apt-get remove fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
fuse
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 111 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 170266 files and directories currently installed.)
Removing fuse (2.9.3-14) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for initramfs-tools (0.115) ...
update-initramfs: Generating /boot/initrd.img-3.15-7.towo-siduction-amd64
WARNING: Can not find "mac" in "macintosh_vndr/de".
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
@samoht,
Well at least you managed to remove it, so it's not so bad :)
Now you could try installing it again and if/when it fails, post here the output of /var/lib/dpkg/info/fuse.postinst
When a maintainer post-install script fails there's no way either dpkg or apt-get can help you. You can only either fix the script or fix the environment the script needs to run so as to exit 0 (success).
You might also want to raise a bug report. But maybe we can have a look first at the script.
Thanks for your helpful answer, @reinob.
Maybe someone more skillful than me can find the problem ;)
# less /var/lib/dpkg/info/fuse.postinst
#!/bin/sh
set -e
case "${1}" in
configure)
if ! dpkg-statoverride --list /bin/fusermount > /dev/null 2>&1
then
chmod 4755 /bin/fusermount
fi
modprobe fuse > /dev/null 2>&1 || true
if lsmod | grep -qs fuse
then
if udevadm control --reload-rules > /dev/null 2>&1
then
if [ -e /dev/fuse ]
then
udevadm test -e -p $(udevadm info -q path -n /dev/fuse) > /dev/null 2>&1
fi
fi
fi
if [ ! -e /dev/fuse ]
then
if [ -x /sbin/MAKEDEV ]
then
echo "Creating fuse device..."
cd /dev
MAKEDEV fuse
chmod 0666 /dev/fuse
else
echo "MAKEDEV not installed, skipping device node creation."
fi
fi
if [ -x /usr/sbin/update-initramfs ]
then
update-initramfs -u
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/z60_fuse.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/60-fuse.rules ..."
if [ -e "/etc/udev/rules.d/60-fuse.rules" ]; then
mv -f "/etc/udev/rules.d/60-fuse.rules" "/etc/udev/rules.d/60-fuse.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/z60_fuse.rules" "/etc/udev/rules.d/60-fuse.rules"
fi
fi
# End automatically added section
exit 0
Last fuse package changes:
fuse (2.9.3-14) unstable; urgency=low
* New maintainer (closes: #756548).
* Add watch file.
-- Laszlo Boszormenyi (GCS) <gcs@debian.org> Wed, 30 Jul 2014 20:33:25 +000
fuse (2.9.3-13) unstable; urgency=low
* I don't care anymore, not worth it.. orphaning.
-- Daniel Baumann <daniel@laptop.127011.net> Fri, 25 Jul 2014 16:33:54 +0200
...
Greetings
Tom
This line:
udevadm test -e -p $(udevadm info -q path -n /dev/fuse) > /dev/null 2>&1
should be:
udevadm test -a -p $(udevadm info -q path -n /dev/fuse) > /dev/null 2>&1
At least looking at the 2.9.3-13 package...
@da0x20man,
Let's see if that does it. Would be really cool :)
@samht,
If not, then you could jus edit (as root) the script and remove most of the stuff in the "configure)" part, so that it looks so:
case "${1}" in
configure)
;;
If the installation succeeds, just make sure you chmod 4755 /bin/fusermount. Then "update-initramfs -u". Then reboot :)
Good luck.
Well, it worked here and it's the suggested way to test a device according the Debian wiki (https://wiki.debian.org/udev (https://wiki.debian.org/udev)), but the udevadm manual is a little too terse...
And yeah, udevadm test -e give the error message "invalid option -- 'e'"
Edit: to modify the package, extract the content in a dir (ex foo), modify the postinst file and then
dpkg-deb -b foo fuse_2.9.3-14_i386.deb
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756595
same prob with d-u:
i also removed fuse:
apt-get purge fuse
...wil be removed too:
encfs*
fuse*
ntfs-3g*
ntfs-config*
sshfs*
testdisk*
i think: sshfs is important ?! we should re-install it ...?
Thanks to all for paying attention, help and the quick rescue fix in the siduction repo!
Marked as solved
# less /usr/share/doc/fuse/changelog.Debian.gz
fuse (2.9.3-15) unstable; urgency=low
* Use correct long option for udevadm in postinst (closes: #756582).
-- Laszlo Boszormenyi (GCS) <gcs@debian.org> Thu, 31 Jul 2014 20:07:21 +0000
...
Greetings
Tom
#dpkg --configure -a
fuse (2.9.3-14) wird eingerichtet ...
dpkg: Fehler beim Bearbeiten des Paketes fuse (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
fuse
[code] und bei [code]
apt-get -f install
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 380 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
fuse (2.9.3-14) wird eingerichtet ...
dpkg: Fehler beim Bearbeiten des Paketes fuse (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)
[code] kommt das
hmm, vielleicht kann jemand helfen.
@susa,
Du brauchst die neue Version (2.9.3-15).
# apt-get update
# apt-get install fuse
falls apt-get install nicht funktionieren sollte, dann zuerst dpkg -P fuse, und dann noch mal probieren :)
hmm, ich dachte schon es hier runterzuladenttps://packages.debian.org/sid/fuse (http://forum.siduction.org/ttps://packages.debian.org/sid/fuse) nur ich hab noch nichts passendes gefunden
habs grad probiert: klappt: fuse (solved)
apt-get update --fix-missing
apt-get install fuse (2.9.3-15)
und d-u läuft plötzlich durch ( vorausgesetzt, man hat fuse zuvor : apt-get purge fuse )
Wer tatsächlich fuse zwischendurch gepurged hatte (und nicht einfach nur seit gestern still abgewartet bis der Fix in den Repos war), der sollte daran denken die weiter oben geposteten mitentfernten Pakete wieder zu re-installieren ;)
Quote from: rueX on 2014/07/31, 15:44:12
same prob with d-u:
i also removed fuse:
apt-get purge fuse
...wil be removed too:
encfs*
fuse*
ntfs-3g*
ntfs-config*
sshfs*
testdisk*
i think: sshfs is important ?! we should re-install it ...?
Stimmt !
ähm: @der_bud: könntest Du freundlicherweise Deine
apt-cache policy fuse*
kurz hier posten, damit ich weiss, was ungefähr normal installiert ist
das übrige habe ich mir damals notiert und wieder installiert: fuse-utils gvfs-fuse ...gibt es teilweise nicht mehr...
thänx !
Eigentlich passt die Liste aus dem letzten Post genau so, auf 'nem Testsystem wo ich fuse gepurged hatte habe ich nachher fuse, encfs, sshfs, ntfs-3g und gvfs wieder installiert.
(apt-cache policy hilft hier nicht wirklich da damit ja auch alles in den Repos verfügbare mit Installiert: keine gezeigt würde, und dpkg -l | grep fuse zeigt sshfs etc nicht an)
Hallo
ich hatte fuse auch gepurged und es wurde genau die Pakete entfernt, die der_bud aufgelistet hat.
Grüße
Hmm, ich habe fuse gepurgt aber dabei nicht aufgepasst was noch alles gelöscht wurde aber, es läuft alles wieder und ich habe jetzt die 2.9.3-15 version. testdisk war auf jeden dabei.
I ended up having to unpack the deb and remove the postinst script.