dist-upgradeで:エラー、pkgProblemResolver::Resolveが中断を生成します。おそらく、アーカイブされたパッケージが原因で発生する可能性があります。

dist-upgradeで:エラー、pkgProblemResolver::Resolveが中断を生成します。おそらく、アーカイブされたパッケージが原因で発生する可能性があります。

dist-upgrade操作中にaptパッケージに問題が発生しました。

次のコマンドを実行すると同じエラーが発生します。

$ sudo apt dist-upgrade
$ sudo apt --fix-broken install
$ sudo apt-get autoremove

間違い:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 gdm3 : Depends: gir1.2-gdm-1.0 (= 41~rc-0ubuntu2pop0~1634915133~21.10~cf40258) but 42.0-1ubuntu6pop1~1650301427~22.04~2055533 is installed
        Depends: libgdm1 (= 41~rc-0ubuntu2pop0~1634915133~21.10~cf40258) but 42.0-1ubuntu6pop1~1650301427~22.04~2055533 is installed
 gnome-settings-daemon : Depends: gnome-settings-daemon-common (= 40.0.1-1ubuntu3pop0~1639691325~21.10~3bcd31b) but 42.1-1ubuntu3pop0~1651657687~22.04~0386384 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

3つの関連記事を見つけましたが、そのうち私の問題を解決する解決策はありませんでした。

上記の質問では、ディストリビューションのアップグレードではなく特定のパッケージに焦点を当てているようで、問題のあるパッケージを簡単に識別して削除する方法がわかりません。

問題のあるパッケージを削除しようとすると、到着する依存関係のように見えるものが得られ、dist-upgradeそれを台無しにしたくはありません。

$ sudo apt-get remove gdm3
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:
 gnome-settings-daemon : Depends: gnome-settings-daemon-common (= 40.0.1-1ubuntu3pop0~1639691325~21.10~3bcd31b) but 42.1-1ubuntu3pop0~1651657687~22.04~0386384 is to be installed
 pop-desktop : Depends: gdm3 but it is not going to be installed
               Recommends: io.elementary.sideload but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

ベストアンサー1

ここで主要なPopOSアップグレードスレッドを見つけました。

https://www.reddit.com/r/pop_os/comments/ucge6e/upgrade_help_thread/

次の手順で問題を解決しました。

pop-upgrade release repair
sudo apt-get install -f
sudo apt-get full-upgrade --allow-downgrades

--allow-downgrades私が見た他のリソースによると、特に何かが欠けています。

おすすめ記事