(12-19-2016, 08:18 AM)Jerry link Wrote: Lite Tweaks current dpkg output:
Code:
root@jerry-VirtualBox:/home/jerry# dpkg -i litetweaks_2.0-0160-linuxlite.deb
(Reading database ... 174465 files and directories currently installed.)
Preparing to unpack litetweaks_2.0-0160-linuxlite.deb ...
Unpacking lite-tweaks (2.0-0160-linuxlite) over (2.0-0150-linuxlite) ...
Setting up lite-tweaks (2.0-0160-linuxlite) ...
dpkg: error processing package lite-tweaks (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
lite-tweaks
root@jerry-VirtualBox:/home/jerry#
I believe this doesn't have to do with the script but with the fact that lite-tweaks package is a "required" package hence cannot be removed. The control file is what I believe needs to be updated accordingly.
Here is the postinst script with echo(s) to see how far it goes in the execution:
Code:
#! /bin/sh
set -e
# Postinst script for bug fixes for 3.x Series
# Fix 'virtualbox kernel service is not running'
# As reported here - https://www.linuxliteos.com/forums/other/vboxclient-the-virtualbox-kernel-service-is-not-running/
# Fix is here - https://www.linuxliteos.com/forums/other/vboxclient-the-virtualbox-kernel-service-is-not-running/msg19295/#msg19295
FILE="/etc/X11/Xsession.d/98vboxadd-xclient"
if [ -s "$FILE" ]; then
sudo sed -i "s/notify-send/echo/g" $FILE
else :
fi
echo 'passed virtual box'
# File ownership
chown root:root /usr/share/applications/createsysreport.desktop
chown root:root /usr/share/applications/litesoftware.desktop
chown root:root /usr/bin/lite-software
# File permissions
chmod 644 /usr/share/applications/createsysreport.desktop
chmod 644 /usr/share/applications/litesoftware.desktop
echo 'passed ownership'
# Folders and files permissions
chown root:root /usr/scripts -R
chmod 755 /usr/scripts -R
echo 'passed permissions'
chown root:root /usr/share/litesoftware -R
find /usr/share/litesoftware -type d -exec chmod 755 {} \;
find /usr/share/litesoftware -type f -exec chmod 644 {} \;
# This folder MUST have correct permissions for systems with multiple accounts
chown root:root /etc/skel -R
find /etc/skel -type d -exec chmod 755 {} \;
find /etc/skel -type f -exec chmod 644 {} \;
echo 'passed folders'
# UPDATE .desktop files
sed -i 's#Exec=.*#Exec=/usr/scripts/updates-gui#' /etc/skel/.local/share/applications/exo-file-manager.desktop # Install Updates
# Remove old files if exist
echo 'passed all'
ralphy@linuxlite:~/Desktop/devel$ sudo ./t.sh
[sudo] password for ralphy:
passed virtual box
passed ownership
passed permissions
passed folders
passed all
ralphy@linuxlite:~/Desktop/devel$ sudo sh -x t.sh
+ set -e
+ FILE=/etc/X11/Xsession.d/98vboxadd-xclient
+ [ -s /etc/X11/Xsession.d/98vboxadd-xclient ]
+ sudo sed -i s/notify-send/echo/g /etc/X11/Xsession.d/98vboxadd-xclient
+ echo passed virtual box
passed virtual box
+ chown root:root /usr/share/applications/createsysreport.desktop
+ chown root:root /usr/share/applications/litesoftware.desktop
+ chown root:root /usr/bin/lite-software
+ chmod 644 /usr/share/applications/createsysreport.desktop
+ chmod 644 /usr/share/applications/litesoftware.desktop
+ echo passed ownership
passed ownership
+ chown root:root /usr/scripts -R
+ chmod 755 /usr/scripts -R
+ echo passed permissions
passed permissions
+ chown root:root /usr/share/litesoftware -R
+ find /usr/share/litesoftware -type d -exec chmod 755 {} ;
+ find /usr/share/litesoftware -type f -exec chmod 644 {} ;
+ chown root:root /etc/skel -R
+ find /etc/skel -type d -exec chmod 755 {} ;
+ find /etc/skel -type f -exec chmod 644 {} ;
+ echo passed folders
passed folders
+ sed -i s#Exec=.*#Exec=/usr/scripts/updates-gui# /etc/skel/.local/share/applications/exo-file-manager.desktop
+ echo passed all
passed all
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.