Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: seasons on 2014/09/07, 01:51:44

Title: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: seasons on 2014/09/07, 01:51:44
# dpkg --configure -a
Setting up distro-defaults (2014.09.07) ...
cp: cannot stat '/usr/share/distro-defaults/fixes/umountfs': No such file or directory
dpkg: error processing package distro-defaults (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
distro-defaults
Title: Re: Issue with latest distro-defaults version (won't configure package)
Post by: piper on 2014/09/07, 03:21:06
What exactly you trying to do ?
Title: Re: Issue with latest distro-defaults version (won't configure package)
Post by: seasons on 2014/09/07, 03:23:36
@piper: Just a regular dist-upgrade...

I actually removed the package because I figured I don't need it on a standard desktop install.
Title: Re: Issue with latest distro-defaults version (won't configure package)
Post by: piper on 2014/09/07, 03:40:28
I have never removed that before, I knew it had to do with desktops*

piper@x1:~$ apt-cache showpkg distro-defaults
Package: distro-defaults
Versions:
2014.08.09 (/var/lib/apt/lists/ftp.gtlib.gatech.edu_pub_siduction_base_dists_unstable_main_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
                 File: /var/lib/apt/lists/ftp.gtlib.gatech.edu_pub_siduction_base_dists_unstable_main_binary-amd64_Packages
                  MD5: f77061f50dbc7c8d6d498c18715c89f1


Reverse Depends:
  siduction-scripts,distro-defaults
  siduction-irc,distro-defaults
  fll-live-xorgconfig,distro-defaults 2014.08.09
  fll-live-initscripts,distro-defaults 2014.08.09
  fll-live-initramfs,distro-defaults
  fll-iso2usb,distro-defaults
  fll-installer,distro-defaults
  desktop-defaults-xfce,distro-defaults
  desktop-defaults-rqt,distro-defaults
  desktop-defaults-nox,distro-defaults
  desktop-defaults-lxde,distro-defaults
  desktop-defaults-kde,distro-defaults
  desktop-defaults-gnome,distro-defaults
  desktop-defaults-common,distro-defaults
  fll-live-initramfs,distro-defaults
Dependencies:
2014.08.09 -
Provides:
2014.08.09 -


Not sure if this will work or not

You can make a folder in /usr/share called distro-defaults and inside that folder make another one called fixes, inside that fixes folder you can make a script named umountfs

That script should contain

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountfs
# Required-Start:
# Required-Stop:     umountroot
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh

. /lib/lsb/init-functions

umask 022

do_stop () {
PROTECTED_MOUNTS="$(sed -n '0,/^\/[^ ]* \/ /p' /proc/mounts)"
WEAK_MTPTS="" # be gentle, don't use force
REG_MTPTS=""
TMPFS_MTPTS=""
while read -r DEV MTPT FSTYPE REST
do
echo "$PROTECTED_MOUNTS" | grep -qs "^$DEV $MTPT " && continue
case "$MTPT" in
  /|/proc|/dev|/.dev|/dev/pts|/dev/shm|/dev/.static/dev|/proc/*|/sys|/sys/*|/run|/run/*)
continue
;;
esac
case "$FSTYPE" in
  proc|procfs|linprocfs|sysfs|usbfs|usbdevfs|devpts)
continue
;;
  tmpfs)
TMPFS_MTPTS="$MTPT $TMPFS_MTPTS"
;;
  *)
if echo "$PROTECTED_MOUNTS" | grep -qs "^$DEV "; then
WEAK_MTPTS="$MTPT $WEAK_MTPTS"
else
REG_MTPTS="$MTPT $REG_MTPTS"
fi
;;
esac
done < /proc/mounts

#
# Make sure tmpfs file systems are umounted before turning off
# swap, to avoid running out of memory if the tmpfs filesystems
# use a lot of space.
#
if [ "$TMPFS_MTPTS" ]
then
if [ "$VERBOSE" = no ]
then
log_action_begin_msg "Unmounting temporary filesystems"
fstab-decode umount $TMPFS_MTPTS
log_action_end_msg $?
else
log_daemon_msg "Will now unmount temporary filesystems"
fstab-decode umount -v $TMPFS_MTPTS
log_end_msg $?
fi
fi

#
# Deactivate swap
#
if [ "$VERBOSE" = no ]
then
log_action_begin_msg "Deactivating swap"
swapoff -a >/dev/null
log_action_end_msg $?
else
log_daemon_msg "Will now deactivate swap"
swapoff -a -v
log_end_msg $?
fi

#
# Unmount local filesystems
#
if [ "$WEAK_MTPTS" ]; then
# Do not use -f umount option for WEAK_MTPTS
if [ "$VERBOSE" = no ]
then
log_action_begin_msg "Unmounting weak filesystems"
fstab-decode umount -r -d $WEAK_MTPTS
log_action_end_msg $?
else
log_daemon_msg "Will now unmount weak filesystems"
fstab-decode umount -v -r -d $WEAK_MTPTS
log_end_msg $?
fi
fi
if [ "$REG_MTPTS" ]
then
if [ "$VERBOSE" = no ]
then
log_action_begin_msg "Unmounting local filesystems"
fstab-decode umount -f -r -d $REG_MTPTS
log_action_end_msg $?
else
log_daemon_msg "Will now unmount local filesystems"
fstab-decode umount -f -v -r -d $REG_MTPTS
log_end_msg $?
fi
fi
}

case "$1" in
  start)
# No-op
;;
  restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
  stop)
do_stop
;;
  *)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac

:



or you can wait for a better answer ;)
Title: Re: Issue with latest distro-defaults version (won't configure package)
Post by: melmarker on 2014/09/07, 04:56:07
it can be safely removed - or better: it should be removed. changed the installer that way.
Title: Re: Issue with latest distro-defaults version (won't configure package)
Post by: seasons on 2014/09/07, 13:38:11
Thanks. I'm marking this thread solved based on ^that answer, but the package may still have issues...
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: melmarker on 2014/09/07, 16:15:18
not really - i see this yesterday as i try to build a new iso with it - fixed :D
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: michaa7 on 2014/09/07, 16:28:50
But removing it from an installation has presumably unwanted consequences:
Quote# apt-get purge distro-defaults
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden ENTFERNT:
  distro-defaults* fll-iso2usb* install-usb-gui* siduction-scripts*
I assume you don't want us to get rid of all those packages. It seems the dependency chain prevents us from doing as suggested.
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: seasons on 2014/09/07, 17:08:27
michaa7, the packages you mention seem to have little value after install on a hard disk or SSD, so I removed them.

It looks like melmarker put out a fixed version of distro-defaults, 2014.09.09. Is that still not working for you?
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: michaa7 on 2014/09/07, 17:21:47
Quote from: seasons on 2014/09/07, 17:08:27
michaa7, the packages you mention seem to have little value after install on a hard disk or SSD
There is no need to remove fll-iso2usb and install-usb-gui. It comes handy whenever you want install to usb. Same goes for siduction-scripts.

QuoteIt looks like melmarker put out a fixed version of distro-defaults, 2014.09.09. Is that still not working for you?
Working how? That package is no (visible) problem here. I simply read the advice it tried to purge it. But the consequeces don't seem desirable.
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: melmarker on 2014/09/07, 19:38:15
upstream had removed fll-iso2usb - it is simply gone. i will check install-usb-gui, it is unmaintained for 3 years now (by us). Also i will check the dependencies in  siduction-scripts (siduction-scripts will stay)
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: melmarker on 2014/09/07, 20:57:11
SORRY!
distro-defaults is here to stay. I have the false packages in mind: desktop-defaults-*.
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: vilde on 2014/09/12, 00:14:46
Quote from: melmarker on 2014/09/07, 20:57:11
SORRY!
distro-defaults is here to stay. I have the false packages in mind: desktop-defaults-*.
Am I right that this means that desktop-defaults-* shall be gone?
Title: Re: [solved] Issue with latest distro-defaults version (won't configure package)
Post by: melmarker on 2014/09/12, 00:26:30
if still installed - yes. But the desktop-defaults should be deleted after installation by the fixed installer. IIRC that was one of the installer changes for 13.2.1 (Feb. 2014)