OutsideIT / FireMotD

:fire: Fire Framework Linux MoTD Generator :fire:
https://outsideit.net/firemotd
GNU General Public License v3.0
174 stars 45 forks source link

Ubuntu 20.04 #154

Open mstormi opened 4 years ago

mstormi commented 4 years ago

Bug report

We're bundling FireMotD as part of openHABian. I didn't encounter myself but received the following report from two people:

RAM percentage didn't work, and i've the error: /usr/local/bin/FireMotD: line 149: ((: 10#3 > 10#UNKNOWN: value too great for base (error token is "10#UNKNOWN") /usr/local/bin/FireMotD: line 153: ((: 10#3 < 10#UNKNOWN: value too great for base (error token is "10#UNKNOWN") (standard_in) 1: syntax error (standard_in) 1: syntax error (standard_in) 1: syntax error

openPhiL commented 4 years ago

I encounter the problem in case hands-on is needed. I could deliver a proxmox-backup from a lxc container that has this issue.

willemdh commented 4 years ago

Unfortunately I'm very limited in time currently, so not sure when I'll be able to fix this.

dimon222 commented 4 years ago

Might he some package having rc or starting with 0 for version. Basically, it couldn't identify version difference correctly.

If you could print both sides of version numbers before this line, we could have samples https://github.com/OutsideIT/FireMotD/blob/master/FireMotD#L149

mstormi commented 3 years ago

Do you still maintain FireMotD ?

willemdh commented 3 years ago

Im currently working on some other projects and got my hands full. Also, im only using on centos, for other os'es i cant help. Feel free to submit a pr and ill happily accept it.

CupricReki commented 3 years ago

The issue is with procps version 2:3.3.16-1. The issue is fixed in 2:3.3.16-5. Find your version with dpkg -l procps.

KHOne23 commented 3 years ago

how can i update procps to 2:3.3.16-5??

grivetto commented 3 years ago

Hi

I've done this way (on a flavour of Ubuntu 20.04 LTS ( KDE neon User Edition 5.2 or https://www.linuxfx.org/) after checking procps (sudo dpkg -l procps) I made new ones from https://github.com/warmchang/procps.git and FireMotD does not complain anymore about this error:

/usr/local/bin/FireMotD: line 149: ((: 10#3 > 10#UNKNOWN: value too great for base (error token is "10#UNKNOWN")
/usr/local/bin/FireMotD: line 153: ((: 10#3 < 10#UNKNOWN: value too great for base (error token is "10#UNKNOWN")

Ciao

Sergio

sghebuz commented 3 years ago

how can i update procps to 2:3.3.16-5??

you can downdload a new version from here https://launchpad.net/ubuntu/+source/procps/2:3.3.16-5ubuntu1/+build/19433805

wget https://launchpad.net/ubuntu/+source/procps/2:3.3.16-5ubuntu1/+build/19433805/+files/procps_3.3.16-5ubuntu1_amd64.deb apt install ./procps_3.3.16-5ubuntu1_amd64.deb