linuxserver / docker-tvheadend

GNU General Public License v3.0
171 stars 90 forks source link

[BUG] bash: apt: command not found #222

Closed lukasheinz92 closed 1 year ago

lukasheinz92 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Not sure if it is a bug but when I try to run an apt command like apt update then I get this error: bash: apt: command not found. I tried to Google how to install the apt but nothing worked for me. I need this to add a local IPTV and when running some scripts I needed to install other packages.

Expected Behavior

No response

Steps To Reproduce

Run command apt update within the Docker container

Environment

- OS: Openmediavault
- How docker service was installed: GUI of Openmediavault
- Device: Raspberry Pi 4
- Architecture: ARM32v7
- Image: ghcr.io/linuxserver/tvheadend:arm32v7-latest

CPU architecture

arm64

Docker creation

Docker-compose:

version: "2.1"
volumes:
  config:
services:
  tvheadend:
    image: ghcr.io/linuxserver/tvheadend:arm32v7-latest
    container_name: tvheadend
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Prague
    volumes:
      - config:/config/
    ports:
      - 9991:9981
      - 9992:9982
    restart: unless-stopped

Container logs

2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_fi_sv created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_it created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_na_tvmedia created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_uk_tvguide created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_fi created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_huro created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson_sqlite created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_tr created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_is created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_na_dd created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_ch_search created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_combiner created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_eu_xmltvse created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_fr created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_ar created
2023-03-27 21:36:37.412 [   INFO] epggrab: module /usr/bin/tv_grab_na_dtv created
2023-03-27 21:36:37.413 [   INFO] tbl-eit: module eit - scraper disabled by config
2023-03-27 21:36:37.414 [   INFO] dvr: Purging obsolete autorec entries for current schedule
2023-03-27 21:36:37.414 [ NOTICE] START: HTS Tvheadend version 4.3-2096~g02987438d started, running as PID:131 UID:1000 GID:1000, CWD:/run/s6/legacy-services/tvheadend CNF:/config
2023-03-27 21:36:37.899 [   INFO] scanfile: DVB-S - loaded 1 regions with 116 networks
2023-03-27 21:36:37.899 [   INFO] scanfile: DVB-T - loaded 46 regions with 1134 networks
2023-03-27 21:36:37.899 [   INFO] scanfile: DVB-C - loaded 20 regions with 82 networks
2023-03-27 21:36:37.899 [   INFO] scanfile: ATSC-T - loaded 2 regions with 13 networks
2023-03-27 21:36:37.899 [   INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2023-03-27 21:36:37.900 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks
2023-03-27 21:56:41.519 [  ERROR] http: 192.168.0.101: HTTP/1.1 GET (1) /static/img/logo.png -- 500
2023-03-27 22:09:17.958 [   INFO] bouquet: new bouquet 'SledovaniTV'
2023-03-27 22:09:17.966 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-03-27 22:09:18.743 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 5: jq: command not found
2023-03-27 22:09:18.747 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 22: jq: command not found
2023-03-27 22:09:18.749 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 23: jq: command not found
2023-03-27 22:09:18.751 [  ERROR] spawn: Neexistuje soubor s konfiguraci zarizeni. Pouzijte sledovanitv-register.sh
2023-03-27 22:09:18.751 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 20: /sledovanitv/playlist: No such file or directory
2023-03-27 22:09:18.754 [  ERROR] spawn: mkdir: cannot create directory ‘/sledovanitv’: Permission denied
2023-03-27 22:09:18.756 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 27: jq: command not found
2023-03-27 22:09:18.759 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 28: jq: command not found
2023-03-27 22:09:18.899 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 32: jq: command not found
2023-03-27 22:09:18.902 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 35: jq: command not found
2023-03-27 22:09:18.903 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 37: [: !=: unary operator expected
2023-03-27 22:09:18.905 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 42: jq: command not found
2023-03-27 22:09:18.915 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 50: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:18.918 [  ERROR] spawn: sed: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:18.919 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 55: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:18.922 [  ERROR] spawn: cat: /sledovanitv/playlist: No such file or directory
2023-03-27 22:09:18.927 [  ERROR] spawn: rm: cannot remove '/sledovanitv/playlist_tmp': No such file or directory
2023-03-27 22:09:18.958 [  ERROR] iptv: unknown playlist format for network 'SledovaniTV'
2023-03-27 22:09:39.746 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-03-27 22:09:40.502 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 5: jq: command not found
2023-03-27 22:09:40.505 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 22: jq: command not found
2023-03-27 22:09:40.508 [  ERROR] spawn: /config/sledovanitv/sledovanitv-token.sh: line 23: jq: command not found
2023-03-27 22:09:40.509 [  ERROR] spawn: Neexistuje soubor s konfiguraci zarizeni. Pouzijte sledovanitv-register.sh
2023-03-27 22:09:40.510 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 20: /sledovanitv/playlist: No such file or directory
2023-03-27 22:09:40.513 [  ERROR] spawn: mkdir: cannot create directory ‘/sledovanitv’: Permission denied
2023-03-27 22:09:40.515 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 27: jq: command not found
2023-03-27 22:09:40.518 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 28: jq: command not found
2023-03-27 22:09:40.657 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 32: jq: command not found
2023-03-27 22:09:40.660 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 35: jq: command not found
2023-03-27 22:09:40.661 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 37: [: !=: unary operator expected
2023-03-27 22:09:40.664 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 42: jq: command not found
2023-03-27 22:09:40.674 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 50: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:40.676 [  ERROR] spawn: sed: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:40.677 [  ERROR] spawn: /config/sledovanitv/sledovanitv-autoconfig.sh: line 55: /sledovanitv/playlist_tmp: No such file or directory
2023-03-27 22:09:40.680 [  ERROR] spawn: cat: /sledovanitv/playlist: No such file or directory
2023-03-27 22:09:40.683 [  ERROR] spawn: rm: cannot remove '/sledovanitv/playlist_tmp': No such file or directory
2023-03-27 22:09:40.743 [  ERROR] iptv: unknown playlist format for network 'SledovaniTV'
2023-03-27 22:11:17.851 [   INFO] mpegts: SledovaniTV in SledovaniTV - tuning on IPTV #1
2023-03-27 22:11:17.851 [  ERROR] iptv: SledovaniTV in SledovaniTV - unsupported scheme [none]
s6-rc: info: service 99-ci-service-check: stopping
s6-rc: info: service 99-ci-service-check successfully stopped
s6-rc: info: service legacy-services: stopping
2023-03-27 22:17:32.760 [   INFO] epgdb: snapshot start
2023-03-27 22:17:32.760 [   INFO] epgdb: queued to save (size 57)
2023-03-27 22:17:32.760 [   INFO] epgdb:   broadcasts 0
2023-03-27 22:17:32.770 [   INFO] mpegts: SledovaniTV in SledovaniTV (0xb0ad7020) - deleting
2023-03-27 22:17:32.773 [   INFO] epgdb: save start
2023-03-27 22:17:32.775 [   INFO] epgdb: stored (size 79)
2023-03-27 22:17:32.814 [   INFO] codec: removing codec profiles
2023-03-27 22:17:32.815 [   INFO] codec: forgetting codecs
2023-03-27 22:17:32.815 [   INFO] transcode: forgetting context helpers
2023-03-27 22:17:32.815 [   INFO] transcode: forgetting context types
2023-03-27 22:17:33.214 [ NOTICE] STOP: Exiting HTS Tvheadend
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service init-services: stopping
s6-rc: info: service 00-legacy: stopping
s6-rc: info: service init-services successfully stopped
s6-rc: info: service init-mods-end: stopping
s6-rc: info: service 00-legacy successfully stopped
s6-rc: info: service init-mods-end successfully stopped
s6-rc: info: service init-mods-package-install: stopping
s6-rc: info: service init-mods-package-install successfully stopped
s6-rc: info: service init-mods: stopping
s6-rc: info: service init-mods successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 1 year ago

Because the container is based on alpine so it's apk.

thespad commented 1 year ago

The container uses an Alpine base image, and so you need to use the apk package manager to install anything additional.

We have a mod available to simply things https://github.com/linuxserver/docker-mods/tree/universal-package-install