jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

With option ENABLE_CJK_FONT=1 the container fails to create #202

Closed szom1 closed 8 months ago

szom1 commented 8 months ago

Current Behavior

[cont-init ] 10-cjk-font.sh: installing CJK font... [cont-init ] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: ERROR: unable to select packages: [cont-init ] 10-cjk-font.sh: font-wqy-zenhei (no such package): [cont-init ] 10-cjk-font.sh: required by: world[font-wqy-zenhei] [cont-init ] 10-cjk-font.sh: terminated with error 1.

Expected Behavior

Please fix this issue

Steps To Reproduce

No response

Environment

Container creation

[cont-init ] 10-cjk-font.sh: installing CJK font... [cont-init ] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz [cont-init ] 10-cjk-font.sh: ERROR: unable to select packages: [cont-init ] 10-cjk-font.sh: font-wqy-zenhei (no such package): [cont-init ] 10-cjk-font.sh: required by: world[font-wqy-zenhei] [cont-init ] 10-cjk-font.sh: terminated with error 1.

Container log

[cont-init   ] 10-cjk-font.sh: installing CJK font...
[cont-init   ] 10-cjk-font.sh: fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
[cont-init   ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
[cont-init   ] 10-cjk-font.sh: fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
[cont-init   ] 10-cjk-font.sh: ERROR: unable to select packages:
[cont-init   ] 10-cjk-font.sh:   font-wqy-zenhei (no such package):
[cont-init   ] 10-cjk-font.sh:     required by: world[font-wqy-zenhei]
[cont-init   ] 10-cjk-font.sh: terminated with error 1.

Container inspect

No response

Anything else?

No response

jlesage commented 8 months ago

Looks like the package moved to the community repo. I will fix this.

stevenshea commented 8 months ago

Thanks for your work.

I have this problem too.

Can you save this font package for good instead of downloading everytime after reboot?

906051999 commented 8 months ago

解决方案:

jlesage commented 8 months ago

Can you save this font package for good instead of downloading everytime after reboot?

Once installed, the package won't be re-installed everytime you restart the container. Only when re-creating the container.

jlesage commented 8 months ago

Fixed with the latest version of the image.