Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  [solved] Issue with latest distro-defaults version (won't configure package)  (Read 5442 times)

Offline seasons

  • User
  • Posts: 269
Code: [Select]
# 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
« Last Edit: 2014/09/07, 13:38:24 by seasons »

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
What exactly you trying to do ?
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline seasons

  • User
  • Posts: 269
@piper: Just a regular dist-upgrade...

I actually removed the package because I figured I don't need it on a standard desktop install.

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
I have never removed that before, I knew it had to do with desktops*

Code: [Select]
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

Code: [Select]
#! /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 ;)
« Last Edit: 2014/09/07, 03:49:45 by piper »
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
it can be safely removed - or better: it should be removed. changed the installer that way.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline seasons

  • User
  • Posts: 269
Thanks. I'm marking this thread solved based on ^that answer, but the package may still have issues...

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
not really - i see this yesterday as i try to build a new iso with it - fixed :D
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline michaa7

  • User
  • Posts: 2.298
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.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline seasons

  • User
  • Posts: 269
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?

Offline michaa7

  • User
  • Posts: 2.298
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.

Quote
It 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.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
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)
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
SORRY!
distro-defaults is here to stay. I have the false packages in mind: desktop-defaults-*.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

Offline vilde

  • User
  • Posts: 708
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?

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
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)
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)