このGStreamerコーデックの更新失敗を解決するには?

このGStreamerコーデックの更新失敗を解決するには?

私は最近、Lenovo IdeapadノートブックにKubuntuをインストールしました。最近のアップデートに関する問題に加えて、うまくいきます。すべてのパッケージを更新した後、3つだけ残りました。

GStreamer Multimedia Codecs
libgstreamer-plugins-bad1.0-0
libgstreamer-plugins-base1.0-0

ニュースは次のように語った。

Package failed to install:

Error while installing package: trying to overwrite '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcamerabin.so', which is also in package gstreamer1.0-plugins-good

これはとても奇妙です。私のシステムに追加した唯一のものは、Krita、Blender(直接ダウンロード、騒音なし)、およびSnapを介したOpenToonzでした。

sudo apt upgrade端末で試してみると、次のような結果が表示されます。

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gstreamer1.0-libav : Depends: libgstreamer-plugins-base1.0-0 (>= 1.22.3) but 1.22.1-1ubuntu1 is installed
 gstreamer1.0-plugins-base : Depends: libgstreamer-plugins-base1.0-0 (>= 1.22.3) but 1.22.1-1ubuntu1 is installed
                             Breaks: gstreamer1.0-plugins-bad (< 1:1.16.0) but 1.22.1-1ubuntu1 is installed
 gstreamer1.0-plugins-ugly : Depends: libgstreamer-plugins-base1.0-0 (>= 1.22.3) but 1.22.1-1ubuntu1 is installed
 gstreamer1.0-x : Depends: libgstreamer-plugins-base1.0-0 (>= 1.22.3) but 1.22.1-1ubuntu1 is installed
 libgstreamer-gl1.0-0 : Depends: libgstreamer-plugins-base1.0-0 (>= 1.22.3) but 1.22.1-1ubuntu1 is installed
                        Breaks: libgstreamer-plugins-bad1.0-0 (< 1:1.16.0) but 1.22.1-1ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

を引き続き使用すると、apt --fix-broken install問題はそのまま残り、変更は適用されません。

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libbdplus0 libdca0 libdirectfb-1.7-7 libfaad2 liblrdf0 libmjpegutils-2.1-0 libmpeg2-4 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libneon27 libopenni2-0 libpocketsphinx3 libsidplay1v5 libsphinxbase3 libssh-gcrypt-4 libvidstab1.1
  linux-headers-6.2.0-20 linux-headers-6.2.0-20-generic linux-image-6.2.0-20-generic linux-modules-6.2.0-20-generic linux-modules-extra-6.2.0-20-generic pocketsphinx-en-us
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0
Suggested packages:
  frei0r-plugins libvisual-0.4-plugins
The following packages will be upgraded:
  gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0
3 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
148 not fully installed or removed.
Need to get 0 B/4,619 kB of archives.
After this operation, 700 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 261983 files and directories currently installed.)
Preparing to unpack .../gstreamer1.0-plugins-bad_1%3a1.22.3-dmo1+deb12u1_amd64.deb ...
Unpacking gstreamer1.0-plugins-bad:amd64 (1:1.22.3-dmo1+deb12u1) over (1.22.1-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/gstreamer1.0-plugins-bad_1%3a1.22.3-dmo1+deb12u1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcamerabin.so', which is also in package gstreamer1.0-plugins-good:amd64 1.22.1-1ubuntu1
Preparing to unpack .../libgstreamer-plugins-bad1.0-0_1%3a1.22.3-dmo1+deb12u1_amd64.deb ...
Unpacking libgstreamer-plugins-bad1.0-0:amd64 (1:1.22.3-dmo1+deb12u1) over (1.22.1-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libgstreamer-plugins-bad1.0-0_1%3a1.22.3-dmo1+deb12u1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libgstbasecamerabinsrc-1.0.so.0', which is also in package libgstreamer-plugins-good1.0-0:amd64 1.22.1-1ubuntu1
dpkg: regarding .../libgstreamer-plugins-base1.0-0_1.22.3-dmo1+deb12u2_amd64.deb containing libgstreamer-plugins-base1.0-0:amd64:
 libgstreamer-plugins-base1.0-0:amd64 conflicts with libgstreamer-plugins-bad1.0-0 (<< 1:1.16.0)
  libgstreamer-plugins-bad1.0-0:amd64 (version 1.22.1-1ubuntu1) is present and installed.

dpkg: error processing archive /var/cache/apt/archives/libgstreamer-plugins-base1.0-0_1.22.3-dmo1+deb12u2_amd64.deb (--unpack):
 conflicting packages - not installing libgstreamer-plugins-base1.0-0:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/gstreamer1.0-plugins-bad_1%3a1.22.3-dmo1+deb12u1_amd64.deb
 /var/cache/apt/archives/libgstreamer-plugins-bad1.0-0_1%3a1.22.3-dmo1+deb12u1_amd64.deb
 /var/cache/apt/archives/libgstreamer-plugins-base1.0-0_1.22.3-dmo1+deb12u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

壊れたパッケージを自動的に削除し、先送りすることを非常に躊躇します。大きな問題は、この破損したパッケージの問題のために何もインストールまたは削除できないようです。

私は安定したシステムでGStreamerを使用するすべてを単に削除し(必要であれば厳密に)再インストールするのが好きですが、明らかにそうすることはできません。

誰かがこの奇妙な依存関係の問題を解決するのに役立ちますか?

ベストアンサー1

だから見つけました。一種の。

最初は、問題のあるすべてのパッケージを削除し始めました。リストは非常に長くなり、依存関係によってヘビが尾を食べるという問題が絶えず提起されています。

sudo apt remove gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-x libgstreamer-gl1.0-0 phonon4qt5-backend-gstreamer gstreamer1.0-gl libgstreamer-plugins-bad1.0-0 libgtk-4-media-gstreamer libqt5multimediagsttools5 libqt5multimedia5-plugins elisa

phonon結局、まったく新しい質問を始めたとき、私はやめなければなりませんでした。結局、LiveUSBに戻り、新しくインストールしようとしたときに、古いファイルをできるだけ多く保持しました。

プロフィールとメディアはBlenderと同じように保存され、私のカスタマイズに従ってバイナリを直接ダウンロードしました。 KritaはDiscover Software Centerを介してインストールされ、以前の設定とファイルの両方がすぐに含まれていてとても良かったです。 OpenToonzが問題かもしれません。

だから最初にflatpakにflathubリポジトリを追加しました。

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

その後、単に実行しました。

flatpak install flathub io.github.OpenToonz

インストールには少し時間がかかりましたが、Snapを捨ててFlatpakを使用した後、依存関係の問題なしに完全な機能を備えたKubuntuシステムがありました。私はすでにSnapについて倫理的な懸念を抱いていますが、より深い技術的問題がある可能性があると思います。

これが今後他の人に役立つことを願っています。

おすすめ記事