bash on Ubuntu on Windowsを使ってみる – ソフトを削除する!(apt-get remove)

スポンサーリンク

コンテンツ

bash on Windows10を使用できるようにする方法と注意事項は、以下の記事にまとめてあります!正式名称は「bash on Ubuntu on Windows10」です。

Windows10をUbuntuのコマンドで操作する! 1.使えるように準備をする(開発者モードを有効にする)!

64ビット版 Windows10のインストール「bash on Windows10」と呼ばれている機能です。2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません

Windows10をUbuntuのコマンドで操作する! 2.「bash on Windows10」を有効にする!

「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま

Windows10をUbuntuのコマンドで操作する! 3.「bash on Windows10」のインストール!

「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま

Windows10をUbuntuのコマンドで操作する! 4.bash on Windows10(ばっしゅ おん うぃんどうずてん)を起動する!

前回までの記事この記事はbash on Windows10を使えるようにするまでの記事の4番目です。1-3番目の記事は以下をどうぞ!bash on Windows10の起動bash on Windows10を起動するには以下のようにします。

ソフトを削除する

「bash on Windows10」でソフトを削除するには、以下のコマンドを実行します

sudo apt-get remove (ソフトウェア名)

それでは実行してみましょう

t@DESKTOP-1QGFR8O:~$ sudo apt-get remove vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  vim
0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded.
After this operation, 2,237 kB disk space will be freed.
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
(Reading database ... 26389 files and directories currently installed.)
Removing vim (2:7.4.052-1ubuntu3) ...
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/rview (rview) in auto mode

無事に削除出来ました。