SparkyLinux Forums

Installation & Upgrade => System upgrading => Topic started by: Oliver on March 13, 2021, 01:01:19 PM

Title: sparky-aptus-upgrade thinks it is a live system - because of username? <SOLVED>
Post by: Oliver on March 13, 2021, 01:01:19 PM
I have this problem, too, and followed the instructions in topic https://forum.sparkylinux.org/index.php/topic,3519.msg7761.html#msg7761

I checked 'cat /etc/passwd | grep >divers<' and got the following:

oliver@oliver-AO751h:~$ cat /etc/passwd | grep 1000
oliver:x:1000:1000:Oliver:/home/oliver:/bin/bash
oliver@oliver-AO751h:~$ cat /etc/passwd | grep 1001
oliver@oliver-AO751h:~$ cat /etc/passwd | grep 1002
oliver@oliver-AO751h:~$ cat /etc/passwd | grep Live
oliver@oliver-AO751h:~$ cat /etc/passwd | grep live
oliver:x:1000:1000:Oliver:/home/oliver:/bin/bash


I think the problem is that my username is "oliver" and so the file passwd includes "live". Make that sense? Is that possible?

Is there in easy way to solve that or do I have to create a new user with a name without "live" in it and delete the old one?
Title: Re: sparky-aptus-upgrade thinks it is a live system - probably because of username?
Post by: lami07 on March 13, 2021, 01:35:14 PM
Quote
I think the problem is that my username is "oliver" and so the file passwd includes "live". Make that sense? Is that possible?

I'm afraid you are correct. We will fix it.

For now edit (as root or with sudo) /usr/bin/sparky-aptus-upgrade and find



# if Live system just quit, don't upgrade
TESTMODE=`grep "live" /etc/passwd`
if [ "$TESTMODE" != "" ]; then
$DIALOG $TITLE"$TITLETEXT" $MSGBOX $TEXT"$LOCAL2"
exit 1
fi


Disable it by putting # in front of every line and save changes.


# if Live system just quit, don't upgrade
#TESTMODE=`grep "live" /etc/passwd`
#if [ "$TESTMODE" != "" ]; then
#        $DIALOG $TITLE"$TITLETEXT" $MSGBOX $TEXT"$LOCAL2"
#        exit 1
#fi

Title: Re: sparky-aptus-upgrade thinks it is a live system - probably because of username?
Post by: Oliver on March 13, 2021, 03:03:20 PM
 :) That was easy! Now it works properly!

Thank you very much for your help!

Oliver