It is currently Fri Jun 25, 2021 8:17 pm
All times are UTC + 8 hours

Piece of Crap

Linux Center is Linux Container APP, can run different isolated Linux systems on Asustor Nas system using a single Linux kernel.

Piece of Crap

Postby Nox71 » Wed Jul 31, 2019 9:26 pm

Wow man, what a piece of crap to add when you think that it would allow you to do something because running Docker container is a nightmare on this device compared to Synology or Unraid. Asus you are late on the NAS market and i regret my purchase of this thing since on my SYnology everything was working and on that ADM it's a nightmare.

Linux Center is useless out of the box, it wont autostart with the NAS, it won't allow me to install any app since i gettting error after error when trying to do an apt-update or apt-upgrade or install any app from an external source. I have spent so may hours with this and the Docker app that i am thinking now to send back the unit and buy another Synology.
Nox71
 
Posts: 1
Joined: Wed Jul 31, 2019 8:57 pm

Re: Piece of Crap

Postby mariusft » Tue Apr 07, 2020 8:00 pm

Seem the kernel version doesn't allow to update libc6 on Dev v8 from Linux Center.
Preinstall scripts expects to have numbers and they find non integer.
Kernels requires numbers instead of letters for the first 3 groups of digits: <numeric>.<numeric>.<numeric> now we have <numeric>.<numeric>.<character>

4.14.x should be something like 4.14.nn

Preparing to unpack .../libc6_2.19-18+deb8u10_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: 381: [: Illegal number:
/var/lib/dpkg/tmp.ci/preinst: 18: /var/lib/dpkg/tmp.ci/preinst: arithmetic expression: expecting primary: "4 * 10000 + 14 * 100 + "
mariusft
 
Posts: 2
Joined: Sun Sep 22, 2019 7:23 pm

Re: Piece of Crap

Postby father.mande » Tue Apr 07, 2020 8:57 pm

Hi,
mariusft wrote:Seem the kernel version doesn't allow to update libc6 on Dev v8 from Linux Center.
Preinstall scripts expects to have numbers and they find non integer.
Kernels requires numbers instead of letters for the first 3 groups of digits: <numeric>.<numeric>.<numeric> now we have <numeric>.<numeric>.<character>
4.14.x should be something like 4.14.nn
Preparing to unpack .../libc6_2.19-18+deb8u10_amd64.deb ...
/var/lib/dpkg/tmp.ci/preinst: 381: [: Illegal number:
/var/lib/dpkg/tmp.ci/preinst: 18: /var/lib/dpkg/tmp.ci/preinst: arithmetic expression: expecting primary: "4 * 10000 + 14 * 100 + "


The Linux in Asustor is not a standard distribution, but more an embedded Linux with private tools to manage function generally done via scripts (or systemd)
It's always possible to patch applications (and kernel) to avoid stop based on malformed version number ex. 4.14.x ... so without a number at last value

The solution is to repack the .deb after do a short modification in preinst shell script
Another is to discuss directly with libc6 dev. team ... for ex. I have worked with team developing strace tool to integrate the support of malformed kernel version ... so now I have a solution to use strace with 4.14.x when the default strace ... crash due to malformed kernel version.

N.B. using a letter is not "common" but totally possible in kernel version ... but not integrated by lot of script developer (build from long time ago ... like Debian install script)
Philippe.
AS5202T /AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1187
Joined: Sat Sep 12, 2015 2:55 am

Re: Piece of Crap

Postby Nazar78 » Tue Apr 14, 2020 4:56 pm

I used to repack the deb packages like Philippe mentioned but now I do this, rename the /bin/uname to /bin/uname.asustor, create a new file /bin/uname with cat contents below then chmod it to 0755. Save the trouble of repacking and it works everytime upgrading libc6 even with strace. Hope this helps.

Code: Select all
(LXC)admin@Ubuntu:~$ cat `which uname`
#!/bin/sh

/bin/uname.asustor "$@"|sed 's/\.x/\.0/g'
(LXC)admin@Ubuntu:~$ uname -a
Linux Ubuntu 4.14.0 #1 SMP Tue Mar 24 00:37:44 CST 202
0 x86_64 x86_64 x86_64 GNU/Linux
(LXC)admin@Ubuntu:~$
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
User avatar
Nazar78
 
Posts: 295
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: Piece of Crap

Postby father.mande » Tue Apr 14, 2020 9:19 pm

Hi,

Yes it's a good solution for containers ... not for ADM itself (for all potential applications)

Thanks to share.

NB Sorry ... for an unknown reason ... I don't understand that the question is for containers (LXC or APKG using private namespace without LXC limit) so my response was a possibility but for any Linux and not for this specific case.

Philippe.
AS5202T /AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1187
Joined: Sat Sep 12, 2015 2:55 am

Return to Linux-Center

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest

cron