SSブログ

snap 外し [X1 Carbon]

無事 X1 Carbon Gen12 に Ubuntu Unity をインストール
KernelをOEMにして、安定動作を得ることができました。

この後は気に食わないところをつぶしていきましょう。

個人的に結構気に食わないのがsnapシステム。
長期利用で、アップデートを重ねると /snap にこれでもかと
大量のマウントが作られるようになります。

最初に firefox が大量にマウントされた状態を見たとき、
本能的な拒否感を感じました。

<<今日のsnapさよなら>>
ではsnapを外しましょう。

まずは状況チェック。 snap list で、マウント状態チェック
# snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical base
core22 20240731 1564 latest/stable canonical base
firefox 129.0.2-1 4793 latest/stable/ mozilla -
gnome-42-2204 0+git.510a601 176 latest/stable/ canonical -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable/ canonical -
snapd 2.63 21759 latest/stable canonical snapd

出てきた Name をすべてアンマウントして、remove します。

# umount /snap/gtk-common-themes/1535
# snap remove gtk-common-themes

/snap/Name/Rev をアンマウントして、snap remove Name で削除です。

snapd は 「おおもと」なので removeできませんが、その他は全部removeします。

そのあと dpkg -r snapd で パッケージを削除。
がしかし、forefox と thunderbird に依存関係があり、消せません。
えーい、全部削除だ。

firefox 削除
# dpkg -r firefox firefox-locale-zh-hans firefox-locale-ru firefox-locale-pt firefox-locale-it firefox-locale-fr firefox-locale-es firefox-locale-en firefox-locale-de

thunderbird 削除
# dpkg -r thunderbird thunderbird-locale-zh-tw thunderbird-locale-zh-hans thunderbird-locale-zh-cn thunderbird-locale-ru thunderbird-locale-pt-pt thunderbird-locale-pt-br thunderbird-locale-pt thunderbird-locale-it thunderbird-locale-fr thunderbird-locale-es-es thunderbird-locale-es-ar thunderbird-locale-es thunderbird-locale-en-us thunderbird-locale-en-gb thunderbird-locale-en thunderbird-locale-de

そして snapd 削除
# dpkg -r snapd

よし、きれいになったぞ。

SNAP.jpg
nice!(1)  コメント(0) 
共通テーマ:日記・雑感