Linux Lite 8.0 RC1 has been released - Click here


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

Repairing package system logic
#1

It would be good to review the Repairing package system logic in Lite Tweaks.

https://github.com/linuxlite/litetweaks/...super#L553

The statement only evaluates if the file /etc/apt/sources.list.save is not present and doesn't take action on the file if it actually exists but has been altered. As recently experienced by a user in [url=http://"https://www.linuxliteos.com/forums/installing-software/no-updates-available/msg27580/?boardseen#new"]this thread[/url], Repairing package system didn't help out because /etc/apt/sources.list.save existed but had been modified.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#2

Thanks ralphy, you're welcome to contribute a merge request.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#3

Jerry,

I've been working on it for an hour now... I will definitely deliver something in the next hour or so. So far, I have included some additional checks in Lite Tweaks, as well as some information for the end user:

1- Lite Tweaks will let the user know why administrator credentials are asked for, when needed:

[Image: RhTxMAQ.png]

2- In cases where no administrator credentials is provided

[Image: ahHwmGa.png]

3- Check for Internet connection before Package System Repair execution

[Image: hWMrxfY.png]

4- Small changes to Lite Tweaks Info window

[Image: citDsPy.png]

5- Make sure that sources.list, sources.list.save as well as linuxlite.list, linuxlite.list.save are properly reset based on the issue experienced by the previous user.


https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#4

Very nice :)

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#5

Great stuff, ralphy! :)

I see that you refer to administrator credentials to gain administrator privileges. That might confuse users, especially the ones new to Linux and the sudo/root concept! And in fact they do need to provide their user credentials and not administrator credentials :)
Reply
#6

Guys,

What function do you use to get the release version? Right now I'm working on recreating linuxlite.list and linuxlite.list.save for Package System Repair. I need to pull the correct release version from somewhere to make sure the file is properly created according to the release. I remember I saw somewhere you used something like:
Code:
LLVER=$(awk '{print $3}' /etc/llver)

if [ "$LLVER" == "3.0" ]; then
   do
elif [ "$LLVER" == "3.2" ]; then
   do
...

Is 3.x citrine? I'm asking because On my system I have 3.2 installed but LLVER tells me that I'm on 3.0... so I'm not sure that's the correct file to trust at this point :(

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#7

(11-29-2016, 05:01 AM)LL-user link Wrote:  Great stuff, ralphy! :)

I see that you refer to administrator credentials to gain administrator privileges. That might confuse users, especially the ones new to Linux and the sudo/root concept! And in fact they do need to provide their user credentials and not administrator credentials :)

I understand your point. Do you have a suggestion to make it sound more Windows-like?  Something like:

Quote:Some tasks require administrative privileges for execution
You will be prompted for credentials next.

I kinda understand the concept of LL and wording it differently may be needed. I'm open to suggestions.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#8

(11-29-2016, 05:24 AM)ralphy link Wrote:  Guys,

What function do you use to get the release version? Right now I'm working on recreating linuxlite.list and linuxlite.list.save for Package System Repair. I need to pull the correct release version from somewhere to make sure the file is properly created according to the release. I remember I saw somewhere you used something like:
Code:
LLVER=$(awk '{print $3}' /etc/llver)

if [ "$LLVER" == "3.0" ]; then
   do
elif [ "$LLVER" == "3.2" ]; then
   do
...

Is 3.x citrine? I'm asking because On my system I have 3.2 installed but LLVER tells me that I'm on 3.0... so I'm not sure that's the correct file to trust at this point :(

LLVER can be trusted, now :) There was a bug in Lite Upgrade which has since been fixed. If you run Lite Upgrade (even though you have 3.2 installed) it will report correctly.

In terms of 'wording' Linux Lite prefers to use terms familiar to Windows (since they are solely our target audience) users eg. 'root' become 'Administrator' and so on. As long as your wording considers how Windows words things, you'll be fine.

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#9

(11-29-2016, 05:34 AM)ralphy link Wrote:  I understand your point. Do you have a suggestion to make it sound more Windows-like?  Something like:

Quote:Some tasks require administrative privileges for execution
You will be prompted for credentials next.

I kinda understand the concept of LL and wording it differently may be needed. I'm open to suggestions.

Along what you have I would use:
Quote:Some tasks require administrative privileges for execution.
You will be prompted for your user password next.
Reply
#10

(11-29-2016, 04:24 AM)Jerry link Wrote:  Very nice :)

Thank you, Jerry. I have created a pull request for your consideration.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)