Skip to content

[BUG] firefox-fonts - fonts wont install. Needs updating for apt-key depcrecation handling. #1007

@karubits

Description

@karubits

Is there an existing issue for this?

  • I have searched the existing issues

Name of mod

firefox-fonts

Name of base container

firefox

Current Behavior

Hi,

I’d like to report an issue with apt packages failing to install due to the deprecation of apt key handling.

  • Fonts are not being installed, resulting in Asian characters displaying incorrectly (mojibake).
  • Upon container startup, the required fonts fail to download.

Error Snippet

firefox  | W: https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
firefox  | Reading package lists...
firefox  | Building dependency tree...
firefox  | Reading state information...
firefox  | E: Unable to locate package ttf-dejavu
firefox  | E: Unable to locate package font-noto-emoji
firefox  | E: Unable to locate package font-noto-cjk
firefox  | E: Unable to locate package font-croscore

Compose File:

  firefox:
    container_name: firefox
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Asia/Tokyo
      - DOCKER_MODS=linuxserver/mods:firefox-fonts
    volumes:

Expected Behavior

  • apt key is not used.
  • the key for the MorzillaTeam repo is added as a file.
  • the source file references the key as trusted with the key path.
  • apt can install the missing the fonts.
  • Asian characters are rendered correctly in the brower

Steps To Reproduce

Create a compose file with the mod and try to start. Compose file provided below.

Environment

- OS: PopOS 24.04
- How docker service was installed: Latest version of docker with compose via dockers own installation script. 
❯ docker --version
Docker version 27.5.0, build a187fa5

CPU architecture

x86-64

Docker creation

docker compose up -d

---
services:
  firefox:
    container_name: firefox
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Asia/Tokyo
      - DOCKER_MODS=linuxserver/mods:firefox-fonts
    volumes:
      - ./config:/config
      - /etc/firefox/policies/policies.json:/etc/firefox/policies/policies.json:ro
    image: lscr.io/linuxserver/firefox:latest
    ports:
      - 3000:3000

Container logs

firefox  | [mod-init] Running Docker Modification Logic
firefox  | [mod-init] Adding linuxserver/mods:firefox-fonts to container
firefox  | [mod-init] Downloading linuxserver/mods:firefox-fonts from lscr.io
firefox  | [mod-init] Installing linuxserver/mods:firefox-fonts
firefox  | [mod-init] linuxserver/mods:firefox-fonts applied to container
firefox  | [migrations] started
firefox  | [migrations] no migrations found
firefox  | ───────────────────────────────────────
firefox  | 
firefox  |       ██╗     ███████╗██╗ ██████╗
firefox  |       ██║     ██╔════╝██║██╔═══██╗
firefox  |       ██║     ███████╗██║██║   ██║
firefox  |       ██║     ╚════██║██║██║   ██║
firefox  |       ███████╗███████║██║╚██████╔╝
firefox  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
firefox  | 
firefox  |    Brought to you by linuxserver.io
firefox  | ───────────────────────────────────────
firefox  | 
firefox  | To support LSIO projects visit:
firefox  | https://www.linuxserver.io/donate/
firefox  | 
firefox  | ───────────────────────────────────────
firefox  | GID/UID
firefox  | ───────────────────────────────────────
firefox  | 
firefox  | User UID:    1001
firefox  | User GID:    1001
firefox  | ───────────────────────────────────────
firefox  | /etc/s6-overlay/s6-rc.d/init-mod-firefox-fonts-add-package/run: line 3: apk: command not found
firefox  | **** Adding firefox-fonts packages to install list ****
firefox  | [pkg-install-init] **** Installing all mod packages ****
firefox  | Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
firefox  | Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
firefox  | Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
firefox  | Hit:4 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu noble InRelease
firefox  | Get:5 http://archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
firefox  | Get:6 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,266 kB]
firefox  | Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [984 kB]
firefox  | Fetched 2,503 kB in 2s (1,065 kB/s)
firefox  | Reading package lists...
firefox  | W: https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
firefox  | Reading package lists...
firefox  | Building dependency tree...
firefox  | Reading state information...
firefox  | E: Unable to locate package ttf-dejavu
firefox  | E: Unable to locate package font-noto-emoji
firefox  | E: Unable to locate package font-noto-cjk
firefox  | E: Unable to locate package font-croscore
firefox  | [custom-init] No custom files found, skipping...
firefox  | _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
firefox  | 
firefox  | Xvnc KasmVNC 1.3.3 - built Jan 11 2025 19:09:44
firefox  | Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
firefox  | See http://kasmweb.com for information on KasmVNC.
firefox  | Underlying X server release 12101012
firefox  | 
firefox  | [ls.io-init] done.
firefox  | The XKEYBOARD keymap compiler (xkbcomp) reports:
firefox  | > Warning:          Could not resolve keysym XF86CameraAccessEnable
firefox  | > Warning:          Could not resolve keysym XF86CameraAccessDisable
firefox  | > Warning:          Could not resolve keysym XF86CameraAccessToggle
firefox  | > Warning:          Could not resolve keysym XF86NextElement
firefox  | > Warning:          Could not resolve keysym XF86PreviousElement
firefox  | > Warning:          Could not resolve keysym XF86AutopilotEngageToggle
firefox  | > Warning:          Could not resolve keysym XF86MarkWaypoint
firefox  | > Warning:          Could not resolve keysym XF86Sos
firefox  | > Warning:          Could not resolve keysym XF86NavChart
firefox  | > Warning:          Could not resolve keysym XF86FishingChart
firefox  | > Warning:          Could not resolve keysym XF86SingleRangeRadar
firefox  | > Warning:          Could not resolve keysym XF86DualRangeRadar
firefox  | > Warning:          Could not resolve keysym XF86RadarOverlay
firefox  | > Warning:          Could not resolve keysym XF86TraditionalSonar
firefox  | > Warning:          Could not resolve keysym XF86ClearvuSonar
firefox  | > Warning:          Could not resolve keysym XF86SidevuSonar
firefox  | > Warning:          Could not resolve keysym XF86NavInfo
firefox  | Errors from xkbcomp are not fatal to the X server
firefox  | [mi] mieq: warning: overriding existing handler (nil) with 0x627a08a9e930 for event 2
firefox  | [mi] mieq: warning: overriding existing handler (nil) with 0x627a08a9e930 for event 3
firefox  | Obt-Message: Xinerama extension is not present on the server
firefox  | MESA: error: ZINK: failed to choose pdev
firefox  | glx: failed to create drisw screen
firefox  | 19
firefox  |  2025-01-18 15:50:11,734 [INFO] websocket 0: got client connection from 127.0.0.1
firefox  |  2025-01-18 15:50:11,738 [PRIO] Connections: accepted: @172.18.0.1_1737183011.735062::websocket
firefox  |  2025-01-18 15:51:44,432 [PRIO] Connections: closed: @172.18.0.1_1737183011.735062::websocket (Clean disconnection)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions