Calibre web error FileNotFoundError: [Errno 2] No such file or directory: 'xdg-icon-resource' in Docker

huangapple go评论90阅读模式
英文:

Calibre web error FileNotFoundError: [Errno 2] No such file or directory: 'xdg-icon-resource' in Docker

问题

Host os: Ubuntu 22.04
device Hewlett Packard Enterprise ProLiant ML350p Gen8

启动calibre web时,出现以下错误:

  1. 设置 libedit2:amd64 (3.1-20210910-1build1) ...
  2. 设置 libsensors-config (1:3.6.0-7ubuntu1) ...
  3. 设置 xkb-data (2.33-1) ...
  4. 设置 libxcb-shm0:amd64 (1.14-3ubuntu3) ...
  5. 设置 libopengl0:amd64 (1.4.0-1) ...
  6. 设置 libxxf86vm1:amd64 (1:1.1.4-1build3) ...
  7. 设置 libxcb-present0:amd64 (1.14-3ubuntu3) ...
  8. 设置 libxfixes3:amd64 (1:6.0.0-1) ...
  9. 设置 libxcb-sync1:amd64 (1.14-3ubuntu3) ...
  10. 设置 xz-utils (5.2.5-2ubuntu1) ...
  11. update-alternatives: 使用 /usr/bin/xz 以提供 /usr/bin/lzma (lzma) 自动模式
  12. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzma.1.gz,因为相关文件 /usr/share/man/man1/xz.1.gz (lzma的链接组) 不存在
  13. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/unlzma.1.gz,因为相关文件 /usr/share/man/man1/unxz.1.gz (lzma的链接组) 不存在
  14. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzcat.1.gz,因为相关文件 /usr/share/man/man1/xzcat.1.gz (lzma的链接组) 不存在
  15. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzmore.1.gz,因为相关文件 /usr/share/man/man1/xzmore.1.gz (lzma的链接组) 不存在
  16. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzless.1.gz,因为相关文件 /usr/share/man/man1/xzless.1.gz (lzma的链接组) 不存在
  17. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzdiff.1.gz,因为相关文件 /usr/share/man/man1/xzdiff.1.gz (lzma的链接组) 不存在
  18. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzcmp.1.gz,因为相关文件 /usr/share/man/man1/xzcmp.1.gz (lzma的链接组) 不存在
  19. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzgrep.1.gz,因为相关文件 /usr/share/man/man1/xzgrep.1.gz (lzma的链接组) 不存在
  20. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzegrep.1.gz,因为相关文件 /usr/share/man/man1/xzegrep.1.gz (lzma的链接组) 不存在
  21. update-alternatives: 警告: 跳过创建 /usr/share/man/man1/lzfgrep.1.gz,因为相关文件 /usr/share/man/man1/xzfgrep.1.gz (lzma的链接组) 不存在
  22. 设置 libsensors5:amd64 (1:3.6.0-7ubuntu1) ...
  23. 设置 libglapi-mesa:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  24. 设置 libxcb-dri2-0:amd64 (1.14-3ubuntu3) ...
  25. 设置 libxshmfence1:amd64 (1.3-1build4) ...
  26. 设置 libllvm15:amd64 (1:15.0.6-3~ubuntu0.22.04.2) ...
  27. 设置 libdrm-common (2.4.113-2~ubuntu0.22.04.1) ...
  28. 设置 libelf1:amd64 (0.186-1build1) ...
  29. 设置 libxkbcommon0:amd64 (1.4.0-1) ...
  30. 设置 libwayland-client0:amd64 (1.20.0-1ubuntu0.1) ...
  31. 设置 libdrm2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  32. 设置 libdrm-amdgpu1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  33. 设置 libdrm-nouveau2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  34. 设置 libgbm1:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  35. 设置 libdrm-radeon1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  36. 设置 libgl1-mesa-dri:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  37. 设置 libegl-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  38. 设置 libegl1:amd64 (1.4.0-1) ...
  39. 设置 libglx-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  40. 设置 libglx0:amd64 (1.4.0-1) ...
  41. 设置 libgl1:amd64 (1.4.0-1) ...
  42. 设置 libgl1-mesa-glx:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  43. libc-bin (2.35-0ubuntu3.1) 进行处理...
  44. **** 安装/更新 calibre ****
  45. % 总计 % 已传输 % Xferd 平均速度 时间 时间 时间 当前
  46. Dload Upload 总计 花费 左时 速度
  47. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  48. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  49. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  50. 4 129M 4 6015
  51. <details>
  52. <summary>英文:</summary>
  53. Host os: Ubuntu 22.04
  54. device Hewlett Packard Enterprise ProLiant ML350p Gen8
  55. When starting up calibre web it gives me this error:
  56. Setting up libedit2:amd64 (3.1-20210910-1build1) ...
  57. Setting up libsensors-config (1:3.6.0-7ubuntu1) ...
  58. Setting up xkb-data (2.33-1) ...
  59. Setting up libxcb-shm0:amd64 (1.14-3ubuntu3) ...
  60. Setting up libopengl0:amd64 (1.4.0-1) ...
  61. Setting up libxxf86vm1:amd64 (1:1.1.4-1build3) ...
  62. Setting up libxcb-present0:amd64 (1.14-3ubuntu3) ...
  63. Setting up libxfixes3:amd64 (1:6.0.0-1) ...
  64. Setting up libxcb-sync1:amd64 (1.14-3ubuntu3) ...
  65. Setting up xz-utils (5.2.5-2ubuntu1) ...
  66. update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
  67. update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn&#39;t exist
  68. update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn&#39;t exist
  69. update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn&#39;t exist
  70. update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn&#39;t exist
  71. update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn&#39;t exist
  72. update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn&#39;t exist
  73. update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn&#39;t exist
  74. update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn&#39;t exist
  75. update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn&#39;t exist
  76. update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn&#39;t exist
  77. Setting up libsensors5:amd64 (1:3.6.0-7ubuntu1) ...
  78. Setting up libglapi-mesa:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  79. Setting up libxcb-dri2-0:amd64 (1.14-3ubuntu3) ...
  80. Setting up libxshmfence1:amd64 (1.3-1build4) ...
  81. Setting up libllvm15:amd64 (1:15.0.6-3~ubuntu0.22.04.2) ...
  82. Setting up libdrm-common (2.4.113-2~ubuntu0.22.04.1) ...
  83. Setting up libelf1:amd64 (0.186-1build1) ...
  84. Setting up libxkbcommon0:amd64 (1.4.0-1) ...
  85. Setting up libwayland-client0:amd64 (1.20.0-1ubuntu0.1) ...
  86. Setting up libdrm2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  87. Setting up libdrm-amdgpu1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  88. Setting up libdrm-nouveau2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  89. Setting up libgbm1:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  90. Setting up libdrm-radeon1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
  91. Setting up libgl1-mesa-dri:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  92. Setting up libegl-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  93. Setting up libegl1:amd64 (1.4.0-1) ...
  94. Setting up libglx-mesa0:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  95. Setting up libglx0:amd64 (1.4.0-1) ...
  96. Setting up libgl1:amd64 (1.4.0-1) ...
  97. Setting up libgl1-mesa-glx:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
  98. Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
  99. **** Installing/updating calibre ****
  100. % Total % Received % Xferd Average Speed Time Time Time Current
  101. Dload Upload Total Spent Left Speed
  102. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  103. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  104. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  105. 4 129M 4 6015k 0 0 3829k 0 0:00:34 0:00:01 0:00:33 6045k
  106. 15 129M 15 20.3M 0 0 8121k 0 0:00:16 0:00:02 0:00:14 10.2M
  107. 26 129M 26 34.9M 0 0 9.7M 0 0:00:13 0:00:03 0:00:10 11.6M
  108. 37 129M 37 48.6M 0 0 10.6M 0 0:00:12 0:00:04 0:00:08 12.1M
  109. 48 129M 48 62.8M 0 0 11.2M 0 0:00:11 0:00:05 0:00:06 12.5M
  110. 59 129M 59 77.4M 0 0 11.7M 0 0:00:11 0:00:06 0:00:05 14.3M
  111. 70 129M 70 91.9M 0 0 12.1M 0 0:00:10 0:00:07 0:00:03 14.3M
  112. 82 129M 82 106M 0 0 12.4M 0 0:00:10 0:00:08 0:00:02 14.3M
  113. 92 129M 92 120M 0 0 12.5M 0 0:00:10 0:00:09 0:00:01 14.3M
  114. 100 129M 100 129M 0 0 12.6M 0 0:00:10 0:00:10 --:--:-- 14.3M
  115. Creating symlinks...
  116. Symlinking /app/calibre/ebook-device to /usr/bin/ebook-device
  117. Symlinking /app/calibre/ebook-meta to /usr/bin/ebook-meta
  118. Symlinking /app/calibre/ebook-convert to /usr/bin/ebook-convert
  119. Symlinking /app/calibre/ebook-polish to /usr/bin/ebook-polish
  120. Symlinking /app/calibre/markdown-calibre to /usr/bin/markdown-calibre
  121. Symlinking /app/calibre/web2disk to /usr/bin/web2disk
  122. Symlinking /app/calibre/calibre-server to /usr/bin/calibre-server
  123. Symlinking /app/calibre/lrf2lrs to /usr/bin/lrf2lrs
  124. Symlinking /app/calibre/lrs2lrf to /usr/bin/lrs2lrf
  125. Symlinking /app/calibre/calibre-debug to /usr/bin/calibre-debug
  126. Symlinking /app/calibre/calibredb to /usr/bin/calibredb
  127. Symlinking /app/calibre/calibre-parallel to /usr/bin/calibre-parallel
  128. Symlinking /app/calibre/calibre-customize to /usr/bin/calibre-customize
  129. Symlinking /app/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
  130. Symlinking /app/calibre/calibre-smtp to /usr/bin/calibre-smtp
  131. Symlinking /app/calibre/calibre to /usr/bin/calibre
  132. Symlinking /app/calibre/lrfviewer to /usr/bin/lrfviewer
  133. Symlinking /app/calibre/ebook-viewer to /usr/bin/ebook-viewer
  134. Symlinking /app/calibre/ebook-edit to /usr/bin/ebook-edit
  135. Setting up command-line completion...
  136. Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
  137. Failed to find directory to install bash completions, using default.
  138. Installing bash completion to: /usr/share/bash-completion/completions/
  139. Setting up desktop integration...
  140. ____________________ WARNING ____________________
  141. Setting up desktop integration failed with error:
  142. __________________________________________________
  143. Traceback (most recent call last):
  144. File &quot;calibre/linux.py&quot;, line 858, in setup_desktop_integration
  145. File &quot;calibre/linux.py&quot;, line 880, in do_setup_desktop_integration
  146. File &quot;calibre/linux.py&quot;, line 911, in install_xdg_junk
  147. File &quot;calibre/linux.py&quot;, line 896, in install_icons
  148. File &quot;calibre/linux.py&quot;, line 890, in install_single_icon
  149. File &quot;subprocess.py&quot;, line 364, in check_call
  150. File &quot;subprocess.py&quot;, line 345, in call
  151. File &quot;subprocess.py&quot;, line 966, in __init__
  152. File &quot;subprocess.py&quot;, line 1842, in _execute_child
  153. FileNotFoundError: [Errno 2] No such file or directory: &#39;xdg-icon-resource&#39;
  154. Creating un-installer: /usr/bin/calibre-uninstall
  155. There were 1 warnings
  156. * Setting up desktop integration failed with error:
  157. [custom-init] No custom files found, skipping...
  158. [ls.io-init] done.
  159. docker-compose.yml:
  160. version: &quot;2.1&quot;
  161. services:
  162. calibre-web:
  163. image: lscr.io/linuxserver/calibre-web:latest
  164. container_name: calibre-web
  165. environment:
  166. - PUID=1000
  167. - PGID=1000
  168. - TZ=Europe/Amsterdam
  169. - DOCKER_MODS=linuxserver/mods:universal-calibre #optional
  170. - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional
  171. - UMASK=022
  172. volumes:
  173. - /mnt/WesternDigital/Docker/calibreweb:/config
  174. - /mnt/WesternDigital/Ebooks/library:/books
  175. ports:
  176. - 8083:8083
  177. restart: unless-stopped
  178. I tried changing PIUD and GUID. Older versions of Calibre web docker image. Also tried portainer and manual docker compose. Has anyone had this in the past? And how did you solve it?
  179. </details>
  180. # 答案1
  181. **得分**: 1
  182. 已更新解决方案:
  183. 我认为问题出在 `- DOCKER_MODS=linuxserver/mods:universal-calibre #optional` 中的 `#optional`
  184. 将其设置为 `DOCKER_MODS=linuxserver/mods:universal-calibre`,然后它应该正常工作。
  185. <details>
  186. <summary>英文:</summary>
  187. Updated with solution:
  188. I believe the issue is the `#optional` in `- DOCKER_MODS=linuxserver/mods:universal-calibre #optional`
  189. Set it to `DOCKER_MODS=linuxserver/mods:universal-calibre` and it should work
  190. </details>

huangapple
  • 本文由 发表于 2023年4月7日 00:35:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75951807.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定