You are Here:
Linux Lite 7.0 RC1 Released - See Release Announcement Section



Please advise on 2.2 -> 2.4 upgrade issues

Author (Read 2643 times)

0 Members and 1 Guest are viewing this topic.

Re: Please advise on 2.2 -> 2.4 upgrade issues
« Reply #3 on: April 06, 2015, 09:27:48 AM »
 

lite098765

  • New to Forums
  • *
  • 5
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile
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
 

Re: Please advise on 2.2 -> 2.4 upgrade issues
« Reply #2 on: April 03, 2015, 04:10:36 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
You must manualy make a directory with superuser privileges
Press Ctrl+Alt+T to open Terminal
Code: [Select]
sudo     mkdir -p /etc/skel/.llupgradebackup/2.4Then edit lite-upgrade-series2
Type in:
Code: [Select]
gksudo leafpad /usr/bin/lite-upgrade-series2Comment lines in a script with a hash # at the begining to prevent execution of a command that creates a directory
Code: [Select]
# 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 :)
 

Please advise on 2.2 -> 2.4 upgrade issues
« Reply #1 on: April 03, 2015, 09:49:35 AM »
 

lite098765

  • New to Forums
  • *
  • 5
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile
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: [Select]
# 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
}
 

 

-->
X Close Ad

Linux Lite 7.0 RC1 Released - See Release Announcement Section