![Shotwell 0.32.2 (snap) 无法在全新安装的 Ubuntu 23.10 中导入 HEIC 文件](https://linux22.com/image/954524/Shotwell%200.32.2%20(snap)%20%E6%97%A0%E6%B3%95%E5%9C%A8%E5%85%A8%E6%96%B0%E5%AE%89%E8%A3%85%E7%9A%84%20Ubuntu%2023.10%20%E4%B8%AD%E5%AF%BC%E5%85%A5%20HEIC%20%E6%96%87%E4%BB%B6.png)
我安装了全新的 Ubuntu 23.10,它使用内核 6.5.0
我通过 App Center 安装了 Shotwell snap。
导入 HEIC 文件时失败。日志未提供任何失败原因。大多数其他格式(jpeg、png 等)都可以正常导入。以下是 shotwell 错误日志:
Import Results Report (Shotwell 0.32.2 @ 2023-12-12)
Attempted to import 8763 files. Of these, 4714 files were successfully imported.
Photos/Videos Not Imported for Other Reasons:
/home/montecristo/Pictures/2023/08/07/IMG_0038.HEIC
error message:
/home/montecristo/Pictures/2023/08/08/IMG_0085.HEIC
error message:
/home/montecristo/Pictures/2018/08/11/IMG_0098.HEIC
error message:
这些数字表明,所有 HEIC 文件都是错误的
我认为这可能是包裹问题。
在寻找解决方案后,我安装了软件包heif-gdk-pixbuf
和heif-thumbnailer
。没有明显的效果(尽管我现在可以在 nautilus 中看到 HEIC 缩略图)。
以下是 的输出apt list | grep heif
:
heif-gdk-pixbuf/mantic,now 1.16.2-2ubuntu1 amd64 [installed]
heif-thumbnailer/mantic,now 1.16.2-2ubuntu1 amd64 [installed]
kodi-imagedecoder-heif/mantic 20.1.0+ds1-3 amd64
libheif-dev/mantic 1.16.2-2ubuntu1 amd64
libheif-examples/mantic 1.16.2-2ubuntu1 amd64
libheif-plugin-aomdec/mantic 1.16.2-2ubuntu1 amd64
libheif-plugin-aomenc/mantic,now 1.16.2-2ubuntu1 amd64 [installed,automatic]
libheif-plugin-dav1d/mantic,now 1.16.2-2ubuntu1 amd64 [installed,automatic]
libheif-plugin-libde265/mantic,now 1.16.2-2ubuntu1 amd64 [installed,automatic]
libheif-plugin-rav1e/mantic 1.16.2-2ubuntu1 amd64
libheif-plugin-svtenc/mantic 1.16.2-2ubuntu1 amd64
libheif-plugin-x265/mantic,now 1.16.2-2ubuntu1 amd64 [installed,automatic]
libheif1/mantic,now 1.16.2-2ubuntu1 amd64 [installed,automatic]
librust-libheif-rs-dev/mantic 0.20.0-2 amd64
librust-libheif-sys-dev/mantic 1.16.2-1 amd64
和
apt list | grep gstreamer
baresip-gstreamer/mantic 1.0.0-4build8 amd64
gir1.2-gstreamer-1.0/mantic,now 1.22.5-1 amd64 [installed,automatic]
gstreamer-qapt/mantic 3.0.5-2 amd64
gstreamer1.0-adapter-pulseeffects/mantic 4.8.7-2 amd64
gstreamer1.0-alsa/mantic,now 1.22.6-1 amd64 [installed,automatic]
gstreamer1.0-autogain-pulseeffects/mantic 4.8.7-2 amd64
gstreamer1.0-clutter-3.0/mantic 3.0.27-3 amd64
gstreamer1.0-convolver-pulseeffects/mantic 4.8.7-2 amd64
gstreamer1.0-crystalizer-pulseeffects/mantic 4.8.7-2 amd64
gstreamer1.0-espeak/mantic 0.5.0-1 amd64
gstreamer1.0-fdkaac/mantic 1.20.0-1 amd64
gstreamer1.0-gl/mantic,now 1.22.6-1 amd64 [installed,automatic]
gstreamer1.0-gtk3/mantic 1.22.6-1ubuntu1 amd64
gstreamer1.0-libav/mantic,now 1.22.5-1 amd64 [installed,automatic]
gstreamer1.0-libcamera/mantic 0.1.0-3ubuntu1 amd64
gstreamer1.0-nice/mantic 0.1.21-2 amd64
gstreamer1.0-omx-bellagio-config/mantic 1.22.4-1 amd64
gstreamer1.0-omx-generic-config/mantic 1.22.4-1 amd64
gstreamer1.0-omx-generic/mantic 1.22.4-1 amd64
gstreamer1.0-opencv/mantic-updates,mantic-security 1.22.4-1ubuntu1.1 amd64
gstreamer1.0-packagekit/mantic,now 1.2.7-1 amd64 [installed,automatic]
gstreamer1.0-pipewire/mantic,now 0.3.79-2 amd64 [installed,automatic]
gstreamer1.0-plugins-bad-apps/mantic-updates,mantic-security 1.22.4-1ubuntu1.1 amd64
gstreamer1.0-plugins-bad/mantic-updates,mantic-security 1.22.4-1ubuntu1.1 amd64
gstreamer1.0-plugins-base-apps/mantic,now 1.22.6-1 amd64 [installed,automatic]
gstreamer1.0-plugins-base/mantic,now 1.22.6-1 amd64 [installed,automatic]
gstreamer1.0-plugins-good/mantic,now 1.22.6-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-plugins-rtp/mantic 1.14.4.1 amd64
gstreamer1.0-plugins-ugly/mantic,now 1.22.5-1 amd64 [installed,automatic]
gstreamer1.0-pocketsphinx/mantic 0.8.0+real5prealpha+1-15ubuntu1 amd64
gstreamer1.0-pulseaudio/mantic 1.22.6-1ubuntu1 amd64
gstreamer1.0-python3-plugin-loader/mantic 1.22.5-1 amd64
gstreamer1.0-qt5/mantic 1.22.6-1ubuntu1 amd64
gstreamer1.0-qt6/mantic 1.22.6-1ubuntu1 amd64
gstreamer1.0-rtsp/mantic 1.22.6-1 amd64
gstreamer1.0-tools/mantic,now 1.22.5-1 amd64 [installed,automatic]
gstreamer1.0-vaapi/mantic,now 1.22.6-1 amd64 [installed,automatic]
gstreamer1.0-x/mantic,now 1.22.6-1 amd64 [installed,automatic]
libcanberra-gstreamer/mantic 0.30-10ubuntu4 amd64
libextractor-plugin-gstreamer/mantic 1:1.11-8 amd64
libgstreamer-gl1.0-0/mantic,now 1.22.6-1 amd64 [installed,automatic]
libgstreamer-ocaml-dev/mantic 0.3.1-4 amd64
libgstreamer-ocaml/mantic 0.3.1-4 amd64
libgstreamer-opencv1.0-0/mantic-updates,mantic-security 1.22.4-1ubuntu1.1 amd64
libgstreamer-plugins-bad1.0-0/mantic-updates,mantic-security,now 1.22.4-1ubuntu1.1 amd64 [installed,automatic]
libgstreamer-plugins-bad1.0-dev/mantic-updates,mantic-security 1.22.4-1ubuntu1.1 amd64
libgstreamer-plugins-base1.0-0/mantic,now 1.22.6-1 amd64 [installed,automatic]
libgstreamer-plugins-base1.0-dev/mantic 1.22.6-1 amd64
libgstreamer-plugins-good1.0-0/mantic,now 1.22.6-1ubuntu1 amd64 [installed,automatic]
libgstreamer-plugins-good1.0-dev/mantic 1.22.6-1ubuntu1 amd64
libgstreamer1.0-0/mantic,now 1.22.5-1 amd64 [installed,automatic]
libgstreamer1.0-dev/mantic 1.22.5-1 amd64
libgstreamerd-3-0/mantic 3.10.0-2 amd64
libgstreamerd-3-dev/mantic 3.10.0-2 amd64
libgstreamermm-1.0-1/mantic 1.10.0+dfsg-4 amd64
libgstreamermm-1.0-dev/mantic 1.10.0+dfsg-4 amd64
libgstreamermm-1.0-doc/mantic 1.10.0+dfsg-4 all
libgtk-4-media-gstreamer/mantic-updates,now 4.12.3+ds-1ubuntu0.1 amd64 [installed,automatic]
libqt5gstreamer-1.0-0/mantic 1.2.0-5.2 amd64
libqt5gstreamer-dev/mantic 1.2.0-5.2 amd64
libqt5gstreamerquick-1.0-0/mantic 1.2.0-5.2 amd64
libqt5gstreamerui-1.0-0/mantic 1.2.0-5.2 amd64
libqt5gstreamerutils-1.0-0/mantic 1.2.0-5.2 amd64
librust-gstreamer-audio-dev/mantic 0.21.0-3 amd64
librust-gstreamer-audio-sys-dev/mantic 0.21.0-4 amd64
librust-gstreamer-base-dev/mantic 0.21.0-3 amd64
librust-gstreamer-base-sys-dev/mantic 0.21.0-3 amd64
librust-gstreamer-dev/mantic 0.21.0-3 amd64
librust-gstreamer-player-dev/mantic 0.21.0-0ubuntu2 amd64
librust-gstreamer-player-sys-dev/mantic 0.21.0-2 amd64
librust-gstreamer-sys-dev/mantic 0.21.0-4 amd64
librust-gstreamer-video-dev/mantic 0.21.0-3 amd64
librust-gstreamer-video-sys-dev/mantic 0.21.0-4 amd64
mkchromecast-gstreamer/mantic 0.3.9~git20200902+db2964a-2.1 all
phonon-backend-gstreamer-common/mantic 4:4.10.0-1build1 amd64
phonon4qt5-backend-gstreamer/mantic 4:4.10.0-1build1 amd64
qml-module-qtgstreamer/mantic 1.2.0-5.2 amd64
qtgstreamer-doc/mantic 1.2.0-5.2 all
qtgstreamer-plugins-qt5/mantic 1.2.0-5.2 amd64
ruby-gstreamer/mantic 3.4.3-1+ubuntu7 amd64
可能是gstreamer1.0-plugins-bad
缺少该软件包?尝试安装 74MB 的大量软件包。
我理解 snap 应该附带所有需要的软件包以避免此类问题。
有人知道如何解决或尝试什么吗?
答案1
从 Ubuntu deb 存储库安装 Shotwell,而不是从 snap 包安装
$ sudo snap remove --purge shotwell
$ sudo apt install heif-gdk-pixbuf shotwell