Tool to Control Fan - fanctl
Anyone could help with these dependecies...

When I run:

update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
and
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1

I get the following eeror:
update-alternatives: error: alternative link /usr/bin/lua is already managed by lua-interpreter

Subsequently, I can then install luarocks
apt-get install luarocks

but when I try to install ats with the following command

luarocks build https://raw.githubusercontent.com/tuxd3v...0.rockspec

I'm getting the missing dependiecies errors:

Missing dependencies for ats master-0:
lua >= 5.3 (5.1-1 provided by VM)

ats master-0 depends on lua >= 5.3 (5.1-1 provided by VM)

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found


I obviously have done something wrongs as I previosuly had successfully installed ats a couple of times!

Any help will be greatly appreciated otherwise I have no choice but reinstalling the whole thing from scratch.... Sad
  Reply
(08-01-2019, 08:13 AM)g_t_j Wrote: Anyone could help with these dependecies...

When I run:

update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
and
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1

I get the following eeror:
update-alternatives: error: alternative link /usr/bin/lua is already managed by lua-interpreter

Subsequently, I can then install luarocks
apt-get install luarocks

but when I try to install ats with the following command

luarocks build https://raw.githubusercontent.com/tuxd3v...0.rockspec

I'm getting the missing dependiecies errors:

Missing dependencies for ats master-0:
  lua >= 5.3 (5.1-1 provided by VM)

ats master-0 depends on lua >= 5.3 (5.1-1 provided by VM)

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found

I obviously have done something wrongs as I previosuly had successfully installed ats a couple of times!

Any help will be greatly appreciated otherwise I have no choice but reinstalling the whole thing from scratch.... Sad

Hello g_t_j,

What is the output of:
Code:
apt-get install --reinstall lua5.3 lua5.3-dev gcc make

Also after this, the output of:
Code:
ls -l /usr/bin/lua{,c}

Regards,
  Reply
(08-01-2019, 09:02 AM)tuxd3v Wrote:
(08-01-2019, 08:13 AM)g_t_j Wrote: Anyone could help with these dependecies...

When I run:

update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
and
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1

I get the following eeror:
update-alternatives: error: alternative link /usr/bin/lua is already managed by lua-interpreter

Subsequently, I can then install luarocks
apt-get install luarocks

but when I try to install ats with the following command

luarocks build https://raw.githubusercontent.com/tuxd3v...0.rockspec

I'm getting the missing dependiecies errors:

Missing dependencies for ats master-0:
  lua >= 5.3 (5.1-1 provided by VM)

ats master-0 depends on lua >= 5.3 (5.1-1 provided by VM)

Error: Could not satisfy dependency lua >= 5.3: No results matching query were found

I obviously have done something wrongs as I previosuly had successfully installed ats a couple of times!

Any help will be greatly appreciated otherwise I have no choice but reinstalling the whole thing from scratch.... Sad

Hello g_t_j,

What is the output of:
Code:
apt-get install --reinstall lua5.3 lua5.3-dev gcc make

Also after this, the output of:
Code:
ls -l /usr/bin/lua{,c}

Regards,

Hello.

Thanks for your help!

output of the 1st command:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'liblua5.3-dev' for regex 'lua5.3-dev'
0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded.
Need to get 796 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 gcc arm64 4:6.3.0-4 [5204 B]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 liblua5.3-dev arm64 5.3.3-1 [418 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 lua5.3 arm64 5.3.3-1 [86.4 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 make arm64 4.1-9.1 [286 kB]
Fetched 796 kB in 1s (789 kB/s)
(Reading database ... 127082 files and directories currently installed.)
Preparing to unpack .../gcc_4%3a6.3.0-4_arm64.deb ...
Removing old gcc doc directory.
Unpacking gcc (4:6.3.0-4) over (4:6.3.0-4) ...
Preparing to unpack .../liblua5.3-dev_5.3.3-1_arm64.deb ...
Unpacking liblua5.3-dev:arm64 (5.3.3-1) over (5.3.3-1) ...
Preparing to unpack .../lua5.3_5.3.3-1_arm64.deb ...
Unpacking lua5.3 (5.3.3-1) over (5.3.3-1) ...
Preparing to unpack .../make_4.1-9.1_arm64.deb ...
Unpacking make (4.1-9.1) over (4.1-9.1) ...
Setting up make (4.1-9.1) ...
Setting up gcc (4:6.3.0-4) ...
Setting up liblua5.3-dev:arm64 (5.3.3-1) ...
Setting up lua5.3 (5.3.3-1) ...
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable


output of the 2nd:

lrwxrwxrwx 1 root root 33 Aug  1 14:50 /usr/bin/lua -> /etc/alternatives/lua-interpreter
lrwxrwxrwx 1 root root 30 Aug  1 14:50 /usr/bin/luac -> /etc/alternatives/lua-compiler
  Reply
(08-01-2019, 04:09 PM)g_t_j Wrote: Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable


output of the 2nd:

lrwxrwxrwx 1 root root 33 Aug  1 14:50 /usr/bin/lua -> /etc/alternatives/lua-interpreter
lrwxrwxrwx 1 root root 30 Aug  1 14:50 /usr/bin/luac -> /etc/alternatives/lua-compiler

Hello g_t_j,


I don't get why you have that python erros in reinstalling the tools..  Undecided
You should have this installed:
Code:
tuxd3v@desktop0:/$ ls -l /usr/bin/lua{,c}5.3
-rwxr-xr-x 1 root root 232528 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 146128 Dec 19  2016 /usr/bin/luac5.3

root@rockpro64:~# ls -l /etc/alternatives/lua{,c}
lrwxrwxrwx 1 root root 15 Jun 30 19:39 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 Jun 30 19:39 /etc/alternatives/luac -> /usr/bin/luac5.3


Do this:
Code:
update-alternatives --remove lua /etc/alternatives/lua-interpreter
update-alternatives --remove luac /etc/alternatives/lua-compiler
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1

Then you should have this:
Code:
root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root     15 Aug  2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root     16 Aug  2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19  2016 /usr/bin/luac5.3

After, relaunch, ats:
Code:
systemctl restart ats

tell us if problem is solved  Shy

Regards,
  Reply
(08-01-2019, 05:57 PM)tuxd3v Wrote:
(08-01-2019, 04:09 PM)g_t_j Wrote: Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable


output of the 2nd:

lrwxrwxrwx 1 root root 33 Aug  1 14:50 /usr/bin/lua -> /etc/alternatives/lua-interpreter
lrwxrwxrwx 1 root root 30 Aug  1 14:50 /usr/bin/luac -> /etc/alternatives/lua-compiler

Hello g_t_j,


I don't get why you have that python erros in reinstalling the tools..  Undecided
You should have this installed:
Code:
tuxd3v@desktop0:/$ ls -l /usr/bin/lua{,c}5.3
-rwxr-xr-x 1 root root 232528 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 146128 Dec 19  2016 /usr/bin/luac5.3

root@rockpro64:~# ls -l /etc/alternatives/lua{,c}
lrwxrwxrwx 1 root root 15 Jun 30 19:39 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 Jun 30 19:39 /etc/alternatives/luac -> /usr/bin/luac5.3


Do this:
Code:
update-alternatives --remove lua /etc/alternatives/lua-interpreter
update-alternatives --remove luac /etc/alternatives/lua-compiler
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1

Then you should have this:
Code:
root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root     15 Aug  2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root     16 Aug  2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19  2016 /usr/bin/luac5.3

After, relaunch, ats:
Code:
systemctl restart ats

tell us if problem is solved  Shy

Regards,

Thank you so much for your help once again.
I don't get it why I'm getting such aeerors either, especially when I had succefully installed ats in the past Sad

I'm still getting errors when I remove and try to re-install ''update alternatives''


Code:
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter
  Reply
(08-01-2019, 06:37 PM)g_t_j Wrote: Thank you so much for your help once again.
I don't get it why I'm getting such aeerors either, especially when I had succefully installed ats in the past Sad

I'm still getting errors when I remove and try to re-install ''update alternatives''
Code:
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter

Hello g_t_j,
You welcome  Shy

Dot this:
Code:
luarocks remove ats

The remove luarocks:
Code:
apt-get remove luarocks

Them remove alternative links:
Code:
apt-get remove lua5.1 liblua5.1-dev
update-alternatives --remove lua /etc/alternatives/managedlua-interpreter
update-alternatives --remove luac /etc/alternatives//managedlua-interpreter
apt-get install --reinstall lua5.3 liblua5.3-dev
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1
apt-get install luarocks

At this point you should have lua pointing to lua5.3..
check with:
Code:
root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root     15 Aug  2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root     16 Aug  2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19  2016 /usr/bin/luac5.3

then install ats:
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

This should solve your problem,
And the conflict between lua5.1 and lua5.3 versions, since lua5.3 is the default symlink..


If this doesn't solve the problem, then remove links by hand..
Code:
rm /etc/alternatives/lua
rm /etc/alternatives/luac
ln -s /usr/bin/lua5.3 /usr/bin/lua
ln -s /usr/bin/luac5.3 /usr/bin/luac

After remove ats, and install again..
Code:
luarocks remove ats
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

I hope this solves your problem   Shy
  Reply
(08-02-2019, 03:44 AM)tuxd3v Wrote:
(08-01-2019, 06:37 PM)g_t_j Wrote: Thank you so much for your help once again.
I don't get it why I'm getting such aeerors either, especially when I had succefully installed ats in the past Sad

I'm still getting errors when I remove and try to re-install ''update alternatives''
Code:
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter

Hello g_t_j,
You welcome  Shy

Dot this:
Code:
luarocks remove ats

The remove luarocks:
Code:
apt-get remove luarocks

Them remove alternative links:
Code:
apt-get remove lua5.1 liblua5.1-dev
update-alternatives --remove lua /etc/alternatives/managedlua-interpreter
update-alternatives --remove luac /etc/alternatives//managedlua-interpreter
apt-get install --reinstall lua5.3 liblua5.3-dev
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1
apt-get install luarocks

At this point you should have lua pointing to lua5.3..
check with:
Code:
root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root     15 Aug  2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root     16 Aug  2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19  2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19  2016 /usr/bin/luac5.3

then install ats:
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

This should solve your problem,
And the conflict between lua5.1 and lua5.3 versions, since lua5.3 is the default symlink..


If this doesn't solve the problem, then remove links by hand..
Code:
rm /etc/alternatives/lua
rm /etc/alternatives/luac
ln -s /usr/bin/lua5.3 /usr/bin/lua
ln -s /usr/bin/luac5.3 /usr/bin/luac

After remove ats, and install again..
Code:
luarocks remove ats
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

I hope this solves your problem   Shy

It worked at last without the need to remove all links by hand! Smile

Was it my fault with that conflict between lua versions?

Thank you so much for all your help! It's thoroughly appreciated! You saved me a lot of time as, being left out of ideas, I was planning to rebuild the server from scratch!
  Reply
(08-02-2019, 06:49 AM)g_t_j Wrote: It worked at last without the need to remove all links by hand! Smile

Was it my fault with that conflict between lua versions?

Thank you so much for all your help! It's thoroughly appreciated! You saved me a lot of time as, being left out of ideas, I was planning to rebuild the server from scratch!

Hello g_t_j,
You welcome,
Glad to see that you solved it..  Shy

The thing is..
'Luarocks', and or 'mpv', have 'lua5.1' has a dependency in its packages..

To use 'lua5.3' has the default:
1) You need to install it first, and be sure its the default..
2) And only then, install 'luarocks'.. this is the way to solve your problem  Shy

In this way,
'lua5.3' will become the default, and 'Luarocks' package will work with it( 'lua5.3' in the same way it could work with 'lua5.1' )..


About some news( Other Subject )..
Lua, is gaining a Huge tracking, because of ExaScale supercomputers:
They will use 'terra' Language, and maybe 'pallene', wich both are part of Lua Scientific Language ecosystem..
 [ Frontier ] is in the RoadMap, and maybe even [ Aurora ] too!!   Wink



Best Regards,
  Reply
(08-02-2019, 08:52 AM)tuxd3v Wrote:
(08-02-2019, 06:49 AM)g_t_j Wrote: It worked at last without the need to remove all links by hand! Smile

Was it my fault with that conflict between lua versions?

Thank you so much for all your help! It's thoroughly appreciated! You saved me a lot of time as, being left out of ideas, I was planning to rebuild the server from scratch!

Hello g_t_j,
You welcome,
Glad to see that you solved it..  Shy

The thing is..
'Luarocks', and or 'mpv', have 'lua5.1' has a dependency in its packages..

To use 'lua5.3' has the default:
1) You need to install it first, and be sure its the default..
2) And only then, install 'luarocks'.. this is the way to solve your problem  Shy

In this way,
'lua5.3' will become the default, and 'Luarocks' package will work with it( 'lua5.3' in the same way it could work with 'lua5.1' )..


About some news( Other Subject )..
Lua, is gaining a Huge tracking, because of ExaScale supercomputers:
They will use 'terra' Language, and maybe 'pallene', wich both are part of Lua Scientific Language ecosystem..
 [ Frontier ] is in the RoadMap, and maybe even [ Aurora ] too!!   Wink

Excellent insight!
It was actually you that solved it. Not me Tongue
Thankfully I'm now able to continue configuration without having to reinstall OMV.
It seems that I somehow mixed sources with regards to installation information and subsequently used older installation commads for the dependencies that were based on lua5.1!

It would be very nice for Pine64 to gather all this info and make a clear step-by-step guide that would
stop the end user from getting these errors as ATS is currently part of the build and a rather essential component for RockPro54 NAS.

As for ats, is there a general advice on how to configure it?
From what I understand, ats will trigger the fan based on CPU temperature and not HDD temperature which, to my understanding, is not ideal as the drives might still be in need of cooling even if the CPU load is low.

Am I better off leaving ats at the default settings?

Thanks once again for your precious help, advice and patience! 
It's been a while since I visited these forums and am glad that the community is developing into something this helpful and supporting! Smile
  Reply
(08-02-2019, 09:16 AM)g_t_j Wrote: It would be very nice for Pine64 to gather all this info and make a clear step-by-step guide that would 
stop the end user from getting these errors as ATS is currently part of the build and a rather essential component for RockPro54 NAS.

As for ats, is there a general advice on how to configure it? 
From what I understand, ats will trigger the fan based on CPU temperature and not HDD temperature which, to my understanding, is not ideal as the drives might still be in need of cooling even if the CPU load is low. 

Am I better off leaving ats at the default settings?

Thanks once again for your precious help, advice and patience! 
It's been a while since I visited these forums and am glad that the community is developing into something this helpful and supporting! Smile
Hello g_t_j,
You welcome.. Smile 

A package could be created for that,
I currently doesn't have the time, but with somebody else, it could be made..

Yes ats has a thread with help on setup,
Since each setup could be different for every user( different Active cooling Setup/Different Globe Region.. )
Better to configure how it works better for you 

Agree, with the disk, input..
Will make part of next release, so that there will be 3 sources of temperature( CPU, GPU, HDD )..  Shy

Best Regards,
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PWM Fan Control Python Script superbox 0 1,269 02-04-2022, 10:02 PM
Last Post: superbox

Forum Jump:


Users browsing this thread: 3 Guest(s)