본문 바로가기

|배움의 길|/리눅스 명령어

Ubuntu OS 버전 업그레이드 방법

반응형

우분투 운영체제 버전 업그레이드 하는법

 

 

사전 체크
- 기존 자료 백업 필수
- 운영 중인 서버의 경우 upgrade 후 service test 필수

- sudo apt-get update

- sudo apt-get upgrade

- sudo apt-get dist-upgrade

dist-upgrade는 의존성 패키지들까지 전부 업그레이드 하는 명령어입니다.

- reboot now (업그레이드 후 재부팅)

- update-manager-core 설치확인

dpkg -l | grep update-manager-core (설치된 프로그램중 update-manager-core)가 있는지 확인

..저는 있네요..아래처럼 없을경우 sudo apt-get install update-manager-core 로 설치

ii  update-manager-core                   1:0.196.25                                 all          manage release upgrades

 




운영체제 업그레이드
- 버전확인

> cat /etc/issue

 Ubuntu 14.04.5 LTS \n \l

> lsb_release -a

 No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

 

- 업그레이드

> sudo do-release-upgrade -d

release 항목이 없을경우

Checking for a new Ubuntu release
No new release found

> release 진행시 상당한 시간이 소요됨

> release 후 자동재부팅이 되겠지만 안될경우 수동 rebooting 진행

> lsb_release -a

 

- 다시 아래의 명렁어 입력

> sudo apt-get update

> sudo apt-get upgrade

만약 50unattended 관련 오류가 뜨면

sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ufc-old 라고 하면 된다네요..

 

- 수고하셨습니다 -