os:ubuntu:upgrade_wsl
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
os:ubuntu:upgrade_wsl [2020/06/18 02:03] – hayashi | os:ubuntu:upgrade_wsl [2020/06/18 04:07] (現在) – [WSL終了] hayashi | ||
---|---|---|---|
行 2: | 行 2: | ||
===== 事前のバージョン確認 ===== | ===== 事前のバージョン確認 ===== | ||
- | |||
< | < | ||
~$ lsb_release -a | ~$ lsb_release -a | ||
行 11: | 行 10: | ||
Codename: | Codename: | ||
</ | </ | ||
+ | ((LSBはLinux Standard Baseのこと。通常は不要)) | ||
+ | |||
< | < | ||
行 25: | 行 26: | ||
VERSION_CODENAME=xenial | VERSION_CODENAME=xenial | ||
UBUNTU_CODENAME=xenial | UBUNTU_CODENAME=xenial | ||
+ | </ | ||
+ | |||
+ | ===== 事前にPKGの更新 ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | ~$ sudo apt update && sudo apt upgrade | ||
+ | ......... | ||
+ | </ | ||
+ | |||
+ | ===== update-manager-coreをインストール ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | ~$ sudo apt install update-manager-core | ||
+ | </ | ||
+ | |||
+ | 今回は以下のようにインストール済みと表示された | ||
+ | |||
+ | update-manager-core is already the newest version | ||
+ | |||
+ | ==== 設定の確認 ==== | ||
+ | |||
+ | <file config / | ||
+ | # Default behavior for the release upgrader. | ||
+ | |||
+ | [DEFAULT] | ||
+ | # Default prompting behavior, valid options: | ||
+ | # | ||
+ | # never - Never check for a new release. | ||
+ | # normal - Check to see if a new release is available. | ||
+ | # | ||
+ | # the release that immediately succeeds the currently-running | ||
+ | # | ||
+ | # lts - Check to see if a new LTS release is available. | ||
+ | # will attempt to upgrade to the first LTS release available after | ||
+ | # the currently-running one. Note that this option should not be | ||
+ | # used if the currently-running release is not itself an LTS | ||
+ | # | ||
+ | # | ||
+ | Prompt=lts | ||
+ | </ | ||
+ | **LTS**が指定されている | ||
+ | Prompt=lts | ||
+ | |||
+ | ===== Upgrade ===== | ||
+ | |||
+ | < | ||
+ | ~$ sudo do-release-upgrade | ||
+ | Do you want to start the upgrade? | ||
+ | |||
+ | |||
+ | 3 installed packages are no longer supported by Canonical. You can | ||
+ | still get support from the community. | ||
+ | |||
+ | 3 packages are going to be removed. 86 new packages are going to be | ||
+ | installed. 395 packages are going to be upgraded. | ||
+ | |||
+ | You have to download a total of 137 M. This download will take about | ||
+ | 40 seconds with your connection. | ||
+ | |||
+ | Installing the upgrade can take several hours. Once the download has | ||
+ | finished, the process cannot be canceled. | ||
+ | |||
+ | | ||
+ | </ | ||
+ | 「**y**」で実行 | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 今回は「keep the local install version xurrently installed」を選択 | ||
+ | |||
+ | < | ||
+ | Searching for obsolete software | ||
+ | Reading state information... Done | ||
+ | |||
+ | Remove obsolete packages? | ||
+ | |||
+ | |||
+ | 4 packages are going to be removed. | ||
+ | |||
+ | | ||
+ | </ | ||
+ | |||
+ | 「**y**」で実行 | ||
+ | |||
+ | < | ||
+ | System upgrade is complete. | ||
+ | |||
+ | Restart required | ||
+ | |||
+ | To finish the upgrade, a restart is required. | ||
+ | If you select ' | ||
+ | |||
+ | Continue [yN] | ||
+ | </ | ||
+ | |||
+ | WSLで、rebootできないため「**N**」 | ||
+ | |||
+ | ===== WSL終了 ===== | ||
+ | |||
+ | < | ||
+ | ~$ exit | ||
+ | </ | ||
+ | |||
+ | ===== 確認 ===== | ||
+ | |||
+ | < | ||
+ | ~$ lsb_release -a | ||
+ | No LSB modules are available. | ||
+ | Distributor ID: Ubuntu | ||
+ | Description: | ||
+ | Release: | ||
+ | Codename: | ||
</ | </ | ||
os/ubuntu/upgrade_wsl.1592445829.txt.gz · 最終更新: 2020/06/18 02:03 by hayashi