Support Requests - CLICK TO READ BEFORE POSTING


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Please advise on 2.2 -> 2.4 upgrade issues
#1

Sorry to be a PITA, but the upgrade process clearly doesn't work for me, and I don't see how it even could. Here's a bit from lite-upgrade-series2. Note that it is executed without sudo. The first call it makes is MKDIRBUPS, again without gksudo. It tries to create a backup directory under /etc/skel, which is owned by root and is not publicly writable: drwxr-xr-x 21 1000 root  4.0K Dec  1 01:57 skel. So, it is either my permissions are off or the upgrade script is broken. I have everything updated and upgraded. What should I do?

Code:
# Set functions for non-root execution # The ones that need root go to the other file: lite-upgrade-system-series2 MKDIRBUPS() {     echo "#Creating back up directories..."     sleep 2         mkdir -p /home/$USER/.llupgradebackup/2.4             if [ "${PIPESTATUS[0]}" -ne "0" ]; then                         echo "#Error"                     sleep 2                                         zenity --error \                                         --title="Error" --text="There was an error while\nCreating back up directories!\nUpgrade canceled."                     exit 1                         fi     mkdir -p /etc/skel/.llupgradebackup/2.4             if [ "${PIPESTATUS[0]}" -ne "0" ]; then                         echo "#Error"                     sleep 2                                         zenity --error \                                         --title="Error" --text="There was an error while\nCreating back up directories!\nUpgrade canceled."                     exit 1                         fi }
Reply
#2

You must manualy make a directory with superuser privileges
Press Ctrl+Alt+T to open Terminal
Code:
sudo    mkdir -p /etc/skel/.llupgradebackup/2.4
Then edit lite-upgrade-series2
Type in:
Code:
gksudo leafpad /usr/bin/lite-upgrade-series2
Comment lines in a script with a hash # at the begining to prevent execution of a command that creates a directory
Code:
# Set functions for non-root execution # The ones that need root go to the other file: lite-upgrade-system-series2 MKDIRBUPS() {     echo "#Creating back up directories..."     sleep 2         mkdir -p /home/$USER/.llupgradebackup/2.4             if [ "${PIPESTATUS[0]}" -ne "0" ]; then                         echo "#Error"                     sleep 2                                         zenity --error \                                         --title="Error" --text="There was an error while\nCreating back up directories!\nUpgrade canceled."                     exit 1                         fi # This line has a hash at the begining and will not execute #    mkdir -p /etc/skel/.llupgradebackup/2.4 #            if [ "${PIPESTATUS[0]}" -ne "0" ]; then #                        echo "#Error" #                    sleep 2 #                                      zenity --error \ #                                        --title="Error" --text="There was an error while\nCreating back up directories!\nUpgrade canceled." #                  exit 1 #                        fi }
Save it and close the text editor.
Run lite-upgrade-series2

Cheers Smile
Reply
#3

Nope, still doesn't work. It is either your script file is different or your /etc/skel permissions are more permissive. It just can't work they way it is written. Advise?

Quote:cp: cannot create regular file '/etc/skel/.local/share/applications/exo-terminal-emulator.desktop': Permission denied
cp: cannot create regular file '/etc/skel/.local/share/applications/alacarte-made-2.desktop': Permission denied
mv: cannot move '/etc/skel/.local/share/applications/exo-file-manager.desktop' to '/etc/skel/.local/share/applications/exo-file-manager.desktop.backup': Permission denied
cp: cannot create regular file '/etc/skel/.local/share/applications/exo-file-manager.desktop': Permission denied
mv: cannot move '/etc/skel/.local/share/applications/alacarte-made-4.desktop' to '/etc/skel/.local/share/applications/alacarte-made-4.desktop.backup': Permission denied
mv: cannot move '/etc/skel/.local/share/applications/alacarte-made-5.desktop' to '/etc/skel/.local/share/applications/alacarte-made-5.desktop.backup': Permission denied
cp: cannot create regular file '/etc/skel/.local/share/applications/alacarte-made-50.desktop': Permission denied
mv: failed to access '/etc/skel/.config/lxterminal/lxterminal.conf.backup': Permission denied
cp: failed to access '/etc/skel/.config/lxterminal/': Permission denied
cp: failed to access '/etc/skel/.config/xfce4/panel/': Permission denied
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)