You are Here:
Download Linux Lite 5.6 RC1 for testing today - See Release Announcements



X Close Ad
X Close Ad
Updates via GUI - no indicator

Author (Read 7231 times)

0 Members and 3 Guests are viewing this topic.

Re: Updates via GUI - no indicator
« Reply #45 on: February 28, 2021, 06:33:51 AM »
 

pblack

  • New to Forums
  • *
  • 1
    Posts
  • Country: gb
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.2 64bit

  • CPU: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx

  • MEMORY: 8Gb

  • VIDEO CARD: Advanced Micro Devices, Inc. [AMD/ATI]
This still seems to be an issue under Linux lite 5.2. 
Running lite-updates via the command line I get awk: cmd. line:1: (FILENAME=- FNR=34) fatal: division by zero attempted
Also get the same issue running Linux lite on Virtualbox.

Hacking the lite-updates bash script to test for 0 division when totoal is zero is a workaround.
awk ' BEGIN { FS=" "; total=1;end_download=0} /upgraded/ {total= $1 + $3;FS="[ :]" } /^Get:[[:digit:]]+/ {printf "#Downloading %s %s %s\n",$7,$(NF-1),$NF;if(total >0){print int(($2 - 1) * 100 / total);}
But never done any bash programming and pretty new to linux so no idea why the upgraded match is not being hit?
Last Edit: March 04, 2021, 11:10:53 AM by pblack
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 RC1 for testing today - See Release Announcements