차례:
최신 Ubuntu LTS 릴리스 인 Ubuntu 18.04 (Bionic Beaver)는 2018 년 4 월 26 일에 릴리스되었으며 2023 년 4 월까지 5 년 동안 지원됩니다.이 자습서에서는 Ubuntu 16.04 설치 이상을 업그레이드하는 방법을 보여줍니다. 우분투 18.04 (바이오닉 비버).
전제 조건
학습서를 시작하기 전에 sudo 권한이있는 사용자로 로그인했는지 확인하십시오.
데이터 백업
무엇보다도 운영 체제의 주요 업그레이드를 시작하기 전에 데이터를 백업해야합니다. 가상 머신에서 Ubuntu를 실행중인 경우 전체 시스템 스냅 샷을 작성하여 업데이트가 남쪽으로 진행되는 경우 머신을 쉽게 복원 할 수 있도록하는 것이 가장 좋습니다.
현재 설치된 패키지 업데이트
릴리스 업그레이드를 시작하기 전에 현재 설치된 모든 패키지를 최신 버전으로 업데이트하는 것이 좋습니다.
sudo apt update
sudo apt upgrade
또한 설치된 패키지의 주요 버전 업그레이드를 수행하고 불필요한 패키지를 제거 할 수있는
dist-upgrade
를 실행할 것입니다.
우분투 16.04를 우분투 18.04로 업그레이드
Ubuntu는
do-release-upgrade
라는 도구를 제공하므로 업그레이드가 매우 간단합니다. 도구는 시스템에 이미 설치되어 있어야하지만 어떤 이유로 설치되지 않은 경우 다음을 사용하여 설치할 수 있습니다.
sudo apt install do-release-upgrade
업그레이드를 시작하려면
do-release-upgrade
실행하십시오.
sudo do-release-upgrade
Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform an upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue
Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with eg: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press
업그레이드 도구가 패키지 목록을 다운로드하고 변경 사항을 계산하면 계속할 것인지 묻습니다.
Do you want to start the upgrade? 4 installed packages are no longer supported by Canonical. You can still get support from the community. 3 packages are going to be removed. 90 new packages are going to be installed. 397 packages are going to be upgraded. You have to download a total of 267 M. This download will take about 1 minute with your connection. Installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled.
다시
y
입력하면 업그레이드 프로세스가 시작됩니다.
업그레이드 프로세스 중에 기존 구성 파일을 유지할 것인지 또는 패키지 관리자 버전을 설치할 것인지와 같은 다양한 질문이 표시됩니다. 파일을 사용자 지정으로 변경하지 않은 경우
Y
를 입력하여 안전하지 않으면 현재 구성을 유지하려면
N
입력해야합니다.
Configuration file '/etc/sysctl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I: install the package maintainer's version N or O: keep your currently-installed version D: show the differences between the versions Z: start a shell to examine the situation The default action is to keep your current version. *** sysctl.conf (Y/I/N/O/D/Z) ?
업데이트 수와 인터넷 속도에 따라 업그레이드 프로세스에 다소 시간이 걸릴 수 있습니다.
새 패키지가 설치되면 업데이트 도구는 사용하지 않는 소프트웨어를 제거 할 것인지 묻습니다.
d
입력하고 확실하지 않은 경우 사용하지 않는 패키지 목록을 확인하십시오. 대부분의 경우
y
를 입력하고 사용하지 않는 모든 것을 제거하는 것이 안전합니다 패키지:
Searching for obsolete software Reading package lists… Done Building dependency tree Reading state information… Done Reading state information… Done Remove obsolete packages? 17 packages are going to be removed.
업그레이드 프로세스가 완료되고 모든 것이 제대로 진행되면 컴퓨터를 재부팅하라는 메시지가 표시됩니다. 계속하려면
y
를 입력하십시오.
System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue y
업데이트 확인
서버가 재부팅 될 때까지 잠시 기다렸다가 다시 연결하십시오. 로그인 후 다음 메시지가 표시됩니다.
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
다음 명령을 사용하여 Ubuntu 버전을 확인할 수도 있습니다.
lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic
이제 새로운 Ubuntu 18.04 LTS (Bionic Beaver)를 즐길 수 있습니다.
우분투 18.04에서 스왑 공간을 추가하는 방법

스왑은 실제 RAM 메모리 용량이 가득 찬 경우 사용되는 디스크 공간입니다. Linux 시스템에 RAM이 부족하면 비활성 페이지가 RAM에서 스왑 공간으로 이동합니다. 이 튜토리얼은 Ubuntu 18.04에 스왑 파일을 추가하는 데 필요한 단계를 설명합니다.
우분투 18.04에서 호스트 이름을 변경하는 방법

이 튜토리얼은 시스템을 다시 시작할 필요없이 Ubuntu 18.04에서 호스트 이름을 변경하는 과정을 안내합니다.
우분투 18.04에서 파이썬 가상 환경을 만드는 방법

Python 가상 환경은 Python 설치 및 추가 패키지 수를 포함하는 독립적 인 디렉토리 트리입니다. 이 튜토리얼에서는 Ubuntu 18.04에서 Python 가상 환경을 만드는 방법에 대한 단계별 지침을 제공합니다.