Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Unraid, install cjk-font error #39

Open
tyhunter opened this issue Oct 19, 2022 · 5 comments
Open

In Unraid, install cjk-font error #39

tyhunter opened this issue Oct 19, 2022 · 5 comments

Comments

@tyhunter
Copy link

[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

@kevinzfjiang
Copy link

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.

@jiatern
Copy link

jiatern commented Jun 12, 2023

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.

@kevinzfjiang
Copy link

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.

@jiatern
Copy link

jiatern commented Jun 20, 2023

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.

@BladPit
Copy link

BladPit commented Jul 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants