アップデートの代替方法を正しく使用するには?

アップデートの代替方法を正しく使用するには?

vanilla-gnome-desktopちょうど次からインストールしたいと思います。

apt install vanilla-gnome-desktop

...Ubuntu Desktop 18.04のデフォルト設定よりもバニラ的なGNOME環境を提供します。

最初は問題が発生し、apt install次のいずれの方法でも問題が解決しないようです。

# apt install vanilla-gnome-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vanilla-gnome-desktop is already the newest version (0.83).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up plymouth-theme-ubuntu-gnome-logo (18.04.0) ...
update-alternatives: error: alternative link /usr/share/plymouth/themes/default.grub is already managed by default.grub
dpkg: error processing package plymouth-theme-ubuntu-gnome-logo (--configure):
 installed plymouth-theme-ubuntu-gnome-logo package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 plymouth-theme-ubuntu-gnome-logo
E: Sub-process /usr/bin/dpkg returned an error code (1)

とにかく、私は前にパッケージを整理plymouth-theme-ubuntu-logoしたplymouth-theme-ubuntu-textインストール済み plymouth-disabler

/etc/grub-black-and-whiteまた、以下を含む小さなファイルも作成しました。

if background_color 0,0,0,0; then
    clear
fi

私はそれを通して「インストール」しました。

update-alternatives --install /usr/share/plymouth/themes/default.grub default.grub /etc/grub-black-and-white 100

update-alternatives --remove default.grub /etc/grub-black-and-whiteしかし、正しくインストールするには、その項目()を削除する必要がありplymouth-theme-ubuntu-gnome-logo、したがって上記の問題は解決されました。

/usr/share/plymouth/themes/default.grubしかし、今固定ポインタを再インスタンス化しようとすると、再び/etc/grub-black-and-white文句を言います。

# update-alternatives --install /usr/share/plymouth/themes/default.grub default.grub /etc/grub-black-and-white 100
update-alternatives: error: alternative link /usr/share/plymouth/themes/default.grub is already managed by default.plymouth

明らかに手動で再び無視することができますが、私の目標は、いくつかのパッケージが選択する/usr/share/plymouth/themes/default.grubよりも私の設定を優先することです。〜にこだわる

これを達成する方法はありますかupdate-alternatives?どのように?

ベストアンサー1

おすすめ記事