Upgrade WSL Ubuntu 18.04 to 20.04

Development/Linux & Android 2021. 10. 12. 17:39

$ sudo apt update

$ sudo apt list --upgradable

$ sudo apt upgrade

 

$ sudo apt --purge autoremove

$ sudo apt intall update-manager-core

$ sudo do-release-upgrade -d

 

Issue 1. Proxy

 - 프록시를 사용중이라면 /etc/apt/apt.conf.d 에서 90proxy 파일로 프록시 설정 추가

  - /etc/wgetrc 를 수정해서 wget 도 프록시 추가

 

Issue 2. SSL connection

 - OpenSSL connection 오류 발생시

 - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xx.yyy

 - export http_proxy=http://xxx.xxx.xxx.xxx:pppp

 - export https_proxy=http://xxx.xxx.xxx.xxx:pppp

 

 - proxy CA 인증 관련글

  . 회사 인증서 SSL, 해결할 수 없다면 피하라. (pinedance.github.io)

  . 회사 프록시와 인증서에 고통받는 그대를 위한 글 (Bash, Gradle, Python, wget, nodejs(npm), apt-get, cURL, git, yarn, androidStudio) ~ 김보안의 블로깅 (securekim.com)

 

Issue 3. Reboot

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to talk to init daemon.

 - 설치 중 Ubuntu 재부팅이 필요한 상황이며 Windows Powershell에서 다음 명령어로 재부팅

 

Issue 4. Aborting 메시지

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command terminated with exit status 1 (Fri May 14 10:31:40 2021) ===

 - Aborting 메시지와 함께 업그레이드가 중단되면 sudo apt remove snapd 로 패키지 삭제 후 재시도

 - Ref.: Exit 1 when upgrading to Ubuntu 21.04 · Issue #6942 · microsoft/WSL (github.com)

: