Unity 7.4.5 を削除する方法

Unity 7.4.5 を削除する方法

私のコンピューター (Ubuntu 16.04.4) には Unity と Gnome がインストールされています。損傷を与えずに Unity を削除するにはどうすればよいでしょうか? Synaptic Manager で検索すると (unity を検索)、500 行の結果が表示され、どのパッケージを削除すればよいのかわかりません...

答え1

試してみましょう: テキストのみのモードで開始する

Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.

Select the line which starts with Advanced options.

Select the line ending with (recovery mode)

Press Return and your machine will begin the boot process.

After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.

The PC will start in a terminal.

次のコマンドを実行します。

パーティションを読み書きモードでマウントする

mount -o remount,rw /
mount --all

リポジトリの更新

apt update

aptitudeとdeborphanをインストールする

apt install --reinstall aptitude deborphan

gnomeに必要のないunityのコンポーネントを削除する

aptitude remove '?and(?reverse-depends(unity),?not(?reverse-depends(?exact-name(gnome))))'

gnomeを再インストールする

apt install --reinstall gnome

孤立したパッケージを排除する

deborphan
apt --purge remove $(deborphan)
deborphan --libdevel
apt --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)

不要なパッケージを削除する

apt autoremove

ダウンロードしたパッケージを削除する

apt clean

システムを再起動する

reboot

関連情報