"우분투 14 → 16 업그레이드"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
5번째 줄: 5번째 줄:
* 디스크 남은 용량 확인
* 디스크 남은 용량 확인
* 현재 우분투 버전 확인
* 현재 우분투 버전 확인
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# cat /etc/issue
root@zetawiki:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l
Ubuntu 14.04.4 LTS \n \l
</source>
</syntaxhighlight>


==apt-get update==
==apt-get update==
{{참고|apt-get update}}
{{참고|apt-get update}}
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt-get update
root@zetawiki:~# apt-get update
Hit https://deb.nodesource.com trusty InRelease
Hit https://deb.nodesource.com trusty InRelease
22번째 줄: 22번째 줄:
Fetched 3,520 kB in 18s (193 kB/s)                                             
Fetched 3,520 kB in 18s (193 kB/s)                                             
Reading package lists... Done
Reading package lists... Done
</source>
</syntaxhighlight>


==apt-get dist-upgrade==
==apt-get dist-upgrade==
{{참고|apt-get dist-upgrade}}
{{참고|apt-get dist-upgrade}}
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt-get dist-upgrade
root@zetawiki:~# apt-get dist-upgrade
Reading package lists... Done
Reading package lists... Done
51번째 줄: 51번째 줄:
After this operation, 334 MB of additional disk space will be used.
After this operation, 334 MB of additional disk space will be used.
Do you want to continue? [Y/n]  
Do you want to continue? [Y/n]  
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main base-files amd64 7.2ubuntu5.5 [67.5 kB]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main base-files amd64 7.2ubuntu5.5 [67.5 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main libssl-doc all 1.1.0f-2~ubuntu14.04.1+deb.sury.org+1 [1,487 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main libssl-doc all 1.1.0f-2~ubuntu14.04.1+deb.sury.org+1 [1,487 kB]
60번째 줄: 60번째 줄:
Processing triggers for libapache2-mod-php7.1 (7.1.8-2+ubuntu14.04.1+deb.sury.org+4) ...
Processing triggers for libapache2-mod-php7.1 (7.1.8-2+ubuntu14.04.1+deb.sury.org+4) ...
Processing triggers for libapache2-mod-php7.0 (7.0.22-2+ubuntu14.04.1+deb.sury.org+4) ...
Processing triggers for libapache2-mod-php7.0 (7.0.22-2+ubuntu14.04.1+deb.sury.org+4) ...
</source>
</syntaxhighlight>


==apt-get install update-manager-core==
==apt-get install update-manager-core==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# apt-get install update-manager-core
root@zetawiki:~# apt-get install update-manager-core
Reading package lists... Done
Reading package lists... Done
73번째 줄: 73번째 줄:
Use 'apt-get autoremove' to remove them.
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
</source>
</syntaxhighlight>


==do-release-upgrade==
==do-release-upgrade==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# do-release-upgrade
root@zetawiki:~# do-release-upgrade
Checking for a new Ubuntu release
Checking for a new Ubuntu release
97번째 줄: 97번째 줄:


Continue [yN] y
Continue [yN] y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Starting additional sshd  
Starting additional sshd  


110번째 줄: 110번째 줄:


To continue please press [ENTER]
To continue please press [ENTER]
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Reading package lists... Done
Reading package lists... Done
Building dependency tree         
Building dependency tree         
138번째 줄: 138번째 줄:


To continue please press [ENTER]
To continue please press [ENTER]
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Get:1 http://us.archive.ubuntu.com xenial InRelease [247 kB]                                 
Get:1 http://us.archive.ubuntu.com xenial InRelease [247 kB]                                 
Get:2 http://security.ubuntu.com xenial-security InRelease [102 kB]                         
Get:2 http://security.ubuntu.com xenial-security InRelease [102 kB]                         
175번째 줄: 175번째 줄:


  Continue [yN]  Details [d]y
  Continue [yN]  Details [d]y
<source lang='console'>
</syntaxhighlight>
<syntaxhighlight lang='console'>
Fetching
Fetching
Get:1 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main base-files amd64 9.4ubuntu4.5 [68.4 kB]
Get:1 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main base-files amd64 9.4ubuntu4.5 [68.4 kB]
181번째 줄: 182번째 줄:
Get:3 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main libc-bin amd64 2.23-0ubuntu9 [627 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main libc-bin amd64 2.23-0ubuntu9 [627 kB]
... (생략)
... (생략)
</source>
</syntaxhighlight>
* "Configuring libssl1.0.0:amd64" --- "Restart services during package upgrades without asking?" --- 〈Yes〉 {{Enter}}
* "Configuring libssl1.0.0:amd64" --- "Restart services during package upgrades without asking?" --- 〈Yes〉 {{Enter}}
<source lang='console'>
<syntaxhighlight lang='console'>
Restarting services possibly affected by the upgrade:
Restarting services possibly affected by the upgrade:
  * Stopping Postfix Mail Transport Agent postfix
  * Stopping Postfix Mail Transport Agent postfix
204번째 줄: 205번째 줄:
  The default action is to keep your current version.
  The default action is to keep your current version.
*** ntp.conf (Y/I/N/O/D/Z) [default=N] ? y
*** ntp.conf (Y/I/N/O/D/Z) [default=N] ? y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Installing new version of config file /etc/ntp.conf ...
Installing new version of config file /etc/ntp.conf ...
  * Starting NTP server ntpd
  * Starting NTP server ntpd
224번째 줄: 225번째 줄:
  The default action is to keep your current version.
  The default action is to keep your current version.
*** jail.conf (Y/I/N/O/D/Z) [default=N] ? y
*** jail.conf (Y/I/N/O/D/Z) [default=N] ? y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Installing new version of config file /etc/fail2ban/jail.conf ...
Installing new version of config file /etc/fail2ban/jail.conf ...
Installing new version of config file /etc/init.d/fail2ban ...
Installing new version of config file /etc/init.d/fail2ban ...
Installing new version of config file /etc/logrotate.d/fail2ban ...
Installing new version of config file /etc/logrotate.d/fail2ban ...
... (생략)
... (생략)
</source>
</syntaxhighlight>
* "What do you want to do about modified configuration file 50unattended-upgrades?" --- install the package maintainer's version {{Enter}}
* "What do you want to do about modified configuration file 50unattended-upgrades?" --- install the package maintainer's version {{Enter}}
<source lang='console'>
<syntaxhighlight lang='console'>
Replacing config file /etc/apt/apt.conf.d/50unattended-upgrades with new version             
Replacing config file /etc/apt/apt.conf.d/50unattended-upgrades with new version             
Setting up zathura-pdf-poppler (0.2.6-1) ...
Setting up zathura-pdf-poppler (0.2.6-1) ...
251번째 줄: 252번째 줄:


  Continue [yN]  Details [d]y
  Continue [yN]  Details [d]y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
Fetched 0 B in 0s (0 B/s)                                                                   
Fetched 0 B in 0s (0 B/s)                                                                   
(Reading database ... 147428 files and directories currently installed.)
(Reading database ... 147428 files and directories currently installed.)
266번째 줄: 267번째 줄:


Continue [yN] y
Continue [yN] y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
=== Command detached from window (Mon Aug  7 01:09:51 2017) ===
=== Command detached from window (Mon Aug  7 01:09:51 2017) ===
=== Command terminated normally (Mon Aug  7 01:10:01 2017) ===
=== Command terminated normally (Mon Aug  7 01:10:01 2017) ===
</source>
</syntaxhighlight>
* 재부팅 진행
* 재부팅 진행


==확인 2==
==확인 2==
* SSH 재접속하여 버전 확인
* SSH 재접속하여 버전 확인
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# cat /etc/issue
root@zetawiki:~# cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
Ubuntu 16.04.3 LTS \n \l
</source>
</syntaxhighlight>


==참고==
==참고==

2021년 9월 24일 (금) 23:33 기준 최신판

우분투 14 → 16 업그레이드
우분투 14를 16으로 업그레이드

1 확인[ | ]

  • 디스크 남은 용량 확인
  • 현재 우분투 버전 확인
root@zetawiki:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l

2 apt-get update[ | ]

root@zetawiki:~# apt-get update
Hit https://deb.nodesource.com trusty InRelease
Hit https://deb.nodesource.com trusty/main Sources                             
Hit https://deb.nodesource.com trusty/main amd64 Packages                      
... (생략)
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 3,520 kB in 18s (193 kB/s)                                             
Reading package lists... Done

3 apt-get dist-upgrade[ | ]

root@zetawiki:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libssl1.0.2 zlib1g-dev
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libpcre16-3 libpcre32-3 libssl1.1 linux-headers-3.19.0-80
  linux-headers-3.19.0-80-generic linux-image-3.19.0-80-generic
  linux-image-extra-3.19.0-80-generic
The following packages will be upgraded:
  accountsservice apache2 apache2-bin apache2-data apport apt
  apt-transport-https apt-utils base-files bash bash-completion bind9-host
  binutils bsdutils coreutils cpp-4.8 curl dbus dh-apparmor dh-php dnsutils
... (생략)
  systemd-services tar tcpdump tzdata ubuntu-release-upgrader-core udev
  unattended-upgrades update-manager-core update-notifier-common usbutils
  util-linux uuid-runtime vim vim-common vim-runtime vim-tiny w3m wget
234 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 223 MB of archives.
After this operation, 334 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main base-files amd64 7.2ubuntu5.5 [67.5 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main libssl-doc all 1.1.0f-2~ubuntu14.04.1+deb.sury.org+1 [1,487 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main bash amd64 4.3-7ubuntu1.7 [575 kB]
... (생략)
update-initramfs: Generating /boot/initrd.img-3.19.0-80-generic
Processing triggers for libapache2-mod-php7.1 (7.1.8-2+ubuntu14.04.1+deb.sury.org+4) ...
Processing triggers for libapache2-mod-php7.0 (7.0.22-2+ubuntu14.04.1+deb.sury.org+4) ...

4 apt-get install update-manager-core[ | ]

root@zetawiki:~# apt-get install update-manager-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
update-manager-core is already the newest version.
The following packages were automatically installed and are no longer required:
  libssl1.0.2 zlib1g-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

5 do-release-upgrade[ | ]

root@zetawiki:~# do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [836 B]                                                        
Get:2 Upgrade tool [1,265 kB]                                                               
... (생략)
Reading cache

Checking package manager

Continue running under SSH? 

This session appears to be running under ssh. It is not recommended 
to perform a 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 [yN] y
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 e.g.: 
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' 

To continue please press [ENTER]
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Building data structures... Done 
Hit https://deb.nodesource.com trusty InRelease                                             
Hit https://deb.nodesource.com trusty/main Sources                                          
Hit https://deb.nodesource.com trusty/main amd64 Packages                                   
... (생략)
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en                           
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en                           
Hit http://us.archive.ubuntu.com trusty/universe Translation-en                             
Fetched 3,520 kB in 6s (12.7 MB/s)                                                          
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Updating repository information

Third party sources disabled 

Some third party entries in your sources.list were disabled. You can 
re-enable them after the upgrade with the 'software-properties' tool 
or your package manager. 

To continue please press [ENTER]
Get:1 http://us.archive.ubuntu.com xenial InRelease [247 kB]                                
Get:2 http://security.ubuntu.com xenial-security InRelease [102 kB]                         
Get:3 http://us.archive.ubuntu.com xenial-updates InRelease [102 kB]                        
... (생략)
Get:66 http://us.archive.ubuntu.com xenial-backports/multiverse Translation-en [64 B]       
Get:67 http://us.archive.ubuntu.com xenial-backports/restricted Translation-en [64 B]       
Get:68 http://us.archive.ubuntu.com xenial-backports/universe Translation-en [3,004 B]      
Fetched 36.5 MB in 6s (2,083 kB/s)                                                          

Checking package manager
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Calculating the changes

Calculating the changes

Do you want to start the upgrade? 


13 installed packages are no longer supported by Canonical. You can 
still get support from the community. 

14 packages are going to be removed. 120 new packages are going to be 
installed. 536 packages are going to be upgraded. 

You have to download a total of 339 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. 

 Continue [yN]  Details [d]y
Fetching
Get:1 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main base-files amd64 9.4ubuntu4.5 [68.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main libc6 amd64 2.23-0ubuntu9 [2,586 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ xenial-updates/main libc-bin amd64 2.23-0ubuntu9 [627 kB]
... (생략)
  • "Configuring libssl1.0.0:amd64" --- "Restart services during package upgrades without asking?" --- 〈Yes〉 Enter
Restarting services possibly affected by the upgrade:
 * Stopping Postfix Mail Transport Agent postfix
   ...done.
 * Starting Postfix Mail Transport Agent postfix
   ...done.
... (생략)
Installing new version of config file /etc/cron.daily/ntp ...
Installing new version of config file /etc/dhcp/dhclient-exit-hooks.d/ntp ...
Installing new version of config file /etc/init.d/ntp ...

Configuration file '/etc/ntp.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.
*** ntp.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/ntp.conf ...
 * Starting NTP server ntpd
   ...done.
... (생략)
Installing new version of config file /etc/fail2ban/filter.d/sshd.conf ...
Installing new version of config file /etc/fail2ban/filter.d/vsftpd.conf ...
Installing new version of config file /etc/fail2ban/filter.d/wuftpd.conf ...

Configuration file '/etc/fail2ban/jail.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.
*** jail.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/fail2ban/jail.conf ...
Installing new version of config file /etc/init.d/fail2ban ...
Installing new version of config file /etc/logrotate.d/fail2ban ...
... (생략)
  • "What do you want to do about modified configuration file 50unattended-upgrades?" --- install the package maintainer's version Enter
Replacing config file /etc/apt/apt.conf.d/50unattended-upgrades with new version             
Setting up zathura-pdf-poppler (0.2.6-1) ...
Setting up ssh-import-id (5.5-0ubuntu1) ...
Setting up kbd (1.15.5-1ubuntu5) ...
... (생략)
Searching for obsolete software
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 
Building data structures... Done 

Remove obsolete packages? 


63 packages are going to be removed. 

 Continue [yN]  Details [d]y
Fetched 0 B in 0s (0 B/s)                                                                   
(Reading database ... 147428 files and directories currently installed.)
Removing apt-xapian-index (0.47ubuntu8.3) ...
Removing index /var/lib/apt-xapian-index...
... (생략)
System upgrade is complete.

Restart required 

To finish the upgrade, a restart is required. 
If you select 'y' the system will be restarted. 

Continue [yN] y
=== Command detached from window (Mon Aug  7 01:09:51 2017) ===
=== Command terminated normally (Mon Aug  7 01:10:01 2017) ===
  • 재부팅 진행

6 확인 2[ | ]

  • SSH 재접속하여 버전 확인
root@zetawiki:~# cat /etc/issue
Ubuntu 16.04.3 LTS \n \l

7 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}