
ubuntu 21.04 をインストールし、すべてのパッケージを更新した後、gnome-tweak-tool をインストールしようとしましたが、依存関係のためにエラーが発生しました。
smaceda@molexps15:~$ sudo apt install gnome-tweak-tool
[sudo] password for smaceda:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: gnome-shell-extension-prefs :
Depends: gnome-shell (=3.38.4-1ubuntu3~21.04.1) but 3.38.4-1ubuntu2 is to be installed
Depends: gnome-shell-common (= 3.38.4-1ubuntu3~21.04.1) but 3.38.4-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
smaceda@molexps15:~$
どうすれば解決できますか? 私はUbuntu初心者です。
答え1
一致するバージョンのパッケージを更新しましたが、動作するようです:
sudo apt -f install gnome-shell=3.38.4-1ubuntu3~21.04.1 gnome-shell-common=3.38.4-1ubuntu3~21.04.1