rclonebrowser-docker icon indicating copy to clipboard operation
rclonebrowser-docker copied to clipboard

In Unraid, install cjk-font error

Open tyhunter opened this issue 2 years ago • 5 comments

[cont-init.d] 10-cjk-font.sh: executing... [cont-init.d] 10-cjk-font.sh: installing CJK font... [cont-init.d] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz [cont-init.d] 10-cjk-font.sh: ERROR: FDB format error (line 27781) [cont-init.d] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz [cont-init.d] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz [cont-init.d] 10-cjk-font.sh: ERROR: unable to select packages: [cont-init.d] 10-cjk-font.sh: wqy-zenhei (no such package): [cont-init.d] 10-cjk-font.sh: required by: world[wqy-zenhei] [cont-init.d] 10-cjk-font.sh: exited 0.

already set ENABLE_CJK_FONT=1, but still can't install font and make chinese symbol show like box not character

tyhunter avatar Oct 19 '22 16:10 tyhunter

base image alpine v3.12 package apk-tools version is outdated that not support latest test repo format. workaround solution:

  1. goto container console
  2. upgrade apk-tools for latest version apk upgrade apk-tools
  3. install zenhei font manually from testing repo add-pkg font-wqy-zenhei --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing

however, the root cause is current based image version is too low, and EoS already. Need to rework to latest version. I tried but no luck because of some build errors. Hope somebody can help.

kevinzfjiang avatar May 08 '23 16:05 kevinzfjiang

however, the root cause is current based image version is too low, and EoS already. Need to rework to latest version. I tried but no luck because of some build errors. Hope somebody can help.

~~I managed to update the Dockerfile to support alpine v3.15, rclonebrowser beta v2.0 and included the CJK font.~~ Nevermind, it successfully built for once and failed ever since. But I managed to keep everything (rclonebrowser v2, CJK font) working on alpine v3.12. Check out the gist here: https://gist.github.com/jiatern/81cbc2204fadd60577ea7e1d880600a5

If you don't want to use rclonebrowser beta, just remove -b test2 from line 43.

jiatern avatar Jun 12 '23 09:06 jiatern

however, the root cause is current based image version is too low, and EoS already. Need to rework to latest version. I tried but no luck because of some build errors. Hope somebody can help.

~I managed to update the Dockerfile to support alpine v3.15, rclonebrowser beta v2.0 and included the CJK font.~ Nevermind, it successfully built for once and failed ever since. But I managed to keep everything (rclonebrowser v2, CJK font) working on alpine v3.12. Check out the gist here: https://gist.github.com/jiatern/81cbc2204fadd60577ea7e1d880600a5

If you don't want to use rclonebrowser beta, just remove -b test2 from line 43.

Looks the error caused by deprecated functions used by RcloneBrowser, in 3.15 version. In my git repo dockerfile , I added -Wno-error=deprecated-declarations , to let gcc handles as a warning instead of error. Sorry that I did not make a PR to you repo but only for peronsal usage, since it is not a smart way and maybe introduce some security risks on deprecated functions. Some minor differences in my dockerfile: 1) use https for CJK repository URL 2) install curl for my testing cases.

kevinzfjiang avatar Jun 15 '23 01:06 kevinzfjiang

In my git repo dockerfile , I added -Wno-error=deprecated-declarations , to let gcc handles as a warning instead of error.

Thank you, this works perfectly. I managed to build just fine. No worries, my repo is mainly for personal use and I am not very well versed, so it's unlikely to be well maintained in the long term anyway.

jiatern avatar Jun 20 '23 10:06 jiatern

base image alpine v3.12 package apk-tools version is outdated that not support latest test repo format. workaround solution:

  1. goto container console
  2. upgrade apk-tools for latest version apk upgrade apk-tools
  3. install zenhei font manually from testing repo add-pkg font-wqy-zenhei --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing

however, the root cause is current based image version is too low, and EoS already. Need to rework to latest version. I tried but no luck because of some build errors. Hope somebody can help.

thanks for your advice, it works with a few secs!!! It is hard for an newbie in code to deal with such problem.

BladPit avatar Jul 19 '23 17:07 BladPit