LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Huge problem with apt & fuse-utils (https://www.linuxquestions.org/questions/debian-26/huge-problem-with-apt-and-fuse-utils-362898/)

zoharPL 09-13-2005 05:34 AM

Huge problem with apt & fuse-utils
 
Running Debian unstable on 2.6.13.
Long story short apt-get stopped working for me (or something) probably due to some errors with fuse-utils. Some time ago, when trying to play with gmailfs, I installed fuse ando so on. As I didn't manage to make it work, yesterday (a few upgrades after installing fuse) i removed fuse (actually fuse-utils), and today, some weird things happened (yesterday i removed some more - not needed - programs, that not break dependancies). I wanted to run apt-get dist-upgrade (after update), to get deps solved, but it showed me, that some things to upgrade have bugs, and if I want to continue, same thing with apt-get upgrade. I answered 'no' but later i pined those faulty things and continued. And i saw something like this:
Code:

gehirn:/home/zohar# apt-get upgrade
blah...blah...blah
66 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 77 nieaktualizowanych.
Konieczne pobranie 0B/63,1MB archiwów.
Po rozpakowaniu zostanie dodatkowo u¿yte 2966kB miejsca na dysku.
Czy chcesz kontynuowaæ [T/n]?
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done     
Prekonfiguracja pakietów ...
dpkg: syntax error: unknown group `fuse' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

And apt stops with error. What to do? :(
I found it may be connected to some after-remove-file of fuse, which works like:
Code:

#!/bin/bash -e
test $DEBIAN_SCRIPT_DEBUG && set -v -x
CONFFILE=/etc/default/fuse-utils
is_true() {
  case $1 in
    1|true|True|TRUE|y*|Y*) return 0;;
    *) return 1;;
  esac
}
case $1 in
  purge)
    ucf --purge $CONFFILE
    rm -f $CONFFILE
    dpkg-statoverride --remove /usr/bin/fusermount  2>/dev/null || true
  ;;
  failed-upgrade|upgrade)
  ;;
  remove)
    if is_true $FUSE_GROUPDELETE && [[ -n $FUSE_GROUP ]]; then
                dpkg-statoverride --remove /usr/bin/fusermount  2>/dev/null || true
        fi
  ;;
  *)
    echo "postrm called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
        db_purge
fi
# End automatically added section
exit 0


Xian 09-13-2005 04:35 PM

First, backup the file /var/lib/dpkg/statoverride-old.
It may be needed if the following doesn't work.

Next, open the text file /var/lib/dpkg/statoverride.
Look for a line that includes the reference to 'fuse'.

When located, remove it and try the apt command again.

zoharPL 09-13-2005 05:12 PM

Thank you very much:) Stupid me...


All times are GMT -5. The time now is 05:02 PM.