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

175번째 줄: 175번째 줄:


  Continue [yN]  Details [d]y
  Continue [yN]  Details [d]y
</source>
<source lang='console'>
<source lang='console'>
Fetching
Fetching

2017년 9월 24일 (일) 18:52 판

우분투 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 }}