【ログ】Ubuntu 20.04: sudo apt install build-essential

  • 実行コマンド:sudo apt install build-essential
  • 実行日 2021/04/09
  • 実行環境:Ubuntu 20.04
adminvps@xx1-234-56789:~$ sudo apt install build-essential
[sudo] password for adminvps: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc
  gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0
  libctf0 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1
  liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make
  manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc
  gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-9-multilib glibc-doc bzr
  libstdc++-9-doc make-doc
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot
  g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0
  libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-9-dev
  libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1
  linux-libc-dev make manpages-dev
0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.0 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-common amd64 2.34-6ubuntu1.1 [207 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libbinutils amd64 2.34-6ubuntu1.1 [475 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.1 [47.1 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf0 amd64 2.34-6ubuntu1.1 [46.6 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.1 [1613 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils amd64 2.34-6ubuntu1.1 [3380 B]
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.2 [71.8 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-70.78 [1120 kB]
Get:9 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libcrypt-dev amd64 1:4.4.10-10ubuntu4 [104 kB]
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.2 [2520 kB]
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.3.0-17ubuntu1~20.04 [19.1 kB]
Get:12 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libisl22 amd64 0.22.1-1 [592 kB]
Get:13 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]
Get:14 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.3.0-17ubuntu1~20.04 [7494 kB]
Get:15 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 cpp amd64 4:9.3.0-1ubuntu2 [27.6 kB]
Get:16 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcc1-0 amd64 10.2.0-5ubuntu1~20.04 [41.1 kB]
Get:17 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgomp1 amd64 10.2.0-5ubuntu1~20.04 [102 kB]
Get:18 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1 amd64 10.2.0-5ubuntu1~20.04 [26.4 kB]
Get:19 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.2.0-5ubuntu1~20.04 [9300 B]
Get:20 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.3.0-17ubuntu1~20.04 [394 kB]
Get:21 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0 amd64 10.2.0-5ubuntu1~20.04 [144 kB]
Get:22 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0 amd64 10.2.0-5ubuntu1~20.04 [320 kB]
Get:23 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1 amd64 10.2.0-5ubuntu1~20.04 [136 kB]
Get:24 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libquadmath0 amd64 10.2.0-5ubuntu1~20.04 [146 kB]
Get:25 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.3.0-17ubuntu1~20.04 [2360 kB]
Get:26 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04 [8241 kB]
Get:27 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 gcc amd64 4:9.3.0-1ubuntu2 [5208 B]
Get:28 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.3.0-17ubuntu1~20.04 [1714 kB]
Get:29 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04 [8405 kB]
Get:30 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1604 B]
Get:31 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 make amd64 4.2.1-1.2 [162 kB]
Get:32 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libdpkg-perl all 1.19.7ubuntu3 [230 kB]
Get:33 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 dpkg-dev all 1.19.7ubuntu3 [679 kB]
Get:34 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 build-essential amd64 12.8ubuntu1.1 [4664 B]
Get:35 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libfakeroot amd64 1.24-1 [25.7 kB]
Get:36 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 fakeroot amd64 1.24-1 [62.6 kB]
Get:37 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-perl all 1.19.03-2 [46.6 kB]
Get:38 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6 [11.3 kB]
Get:39 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:40 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libfile-fcntllock-perl amd64 0.22-3build4 [33.1 kB]
Get:41 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2266 kB]
Fetched 40.0 MB in 4s (10.3 MB/s)      
Extracting templates from packages: 100%
Selecting previously unselected package binutils-common:amd64.
(Reading database ... 107077 files and directories currently installed.)
Preparing to unpack .../00-binutils-common_2.34-6ubuntu1.1_amd64.deb ...
Unpacking binutils-common:amd64 (2.34-6ubuntu1.1) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../01-libbinutils_2.34-6ubuntu1.1_amd64.deb ...
Unpacking libbinutils:amd64 (2.34-6ubuntu1.1) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../02-libctf-nobfd0_2.34-6ubuntu1.1_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.1) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../03-libctf0_2.34-6ubuntu1.1_amd64.deb ...
Unpacking libctf0:amd64 (2.34-6ubuntu1.1) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.34-6ubuntu1.1_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../05-binutils_2.34-6ubuntu1.1_amd64.deb ...
Unpacking binutils (2.34-6ubuntu1.1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../06-libc-dev-bin_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../07-linux-libc-dev_5.4.0-70.78_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.4.0-70.78) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../08-libcrypt-dev_1%3a4.4.10-10ubuntu4_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../09-libc6-dev_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Selecting previously unselected package gcc-9-base:amd64.
Preparing to unpack .../10-gcc-9-base_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package libisl22:amd64.
Preparing to unpack .../11-libisl22_0.22.1-1_amd64.deb ...
Unpacking libisl22:amd64 (0.22.1-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../12-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-9.
Preparing to unpack .../13-cpp-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking cpp-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package cpp.
Preparing to unpack .../14-cpp_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking cpp (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../15-libcc1-0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libcc1-0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../16-libgomp1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libgomp1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../17-libitm1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libitm1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../18-libatomic1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libatomic1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../19-libasan5_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../20-liblsan0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking liblsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../21-libtsan0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libtsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../22-libubsan1_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libubsan1:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../23-libquadmath0_10.2.0-5ubuntu1~20.04_amd64.deb ...
Unpacking libquadmath0:amd64 (10.2.0-5ubuntu1~20.04) ...
Selecting previously unselected package libgcc-9-dev:amd64.
Preparing to unpack .../24-libgcc-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc-9.
Preparing to unpack .../25-gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../26-gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking gcc (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libstdc++-9-dev:amd64.
Preparing to unpack .../27-libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++-9.
Preparing to unpack .../28-g++-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking g++-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../29-g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking g++ (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package make.
Preparing to unpack .../30-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../31-libdpkg-perl_1.19.7ubuntu3_all.deb ...
Unpacking libdpkg-perl (1.19.7ubuntu3) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../32-dpkg-dev_1.19.7ubuntu3_all.deb ...
Unpacking dpkg-dev (1.19.7ubuntu3) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../33-build-essential_12.8ubuntu1.1_amd64.deb ...
Unpacking build-essential (12.8ubuntu1.1) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../34-libfakeroot_1.24-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.24-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../35-fakeroot_1.24-1_amd64.deb ...
Unpacking fakeroot (1.24-1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../36-libalgorithm-diff-perl_1.19.03-2_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-2) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../37-libalgorithm-diff-xs-perl_0.04-6_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-6) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../38-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../39-libfile-fcntllock-perl_0.22-3build4_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build4) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../40-manpages-dev_5.05-1_all.deb ...
Unpacking manpages-dev (5.05-1) ...
Setting up manpages-dev (5.05-1) ...
Setting up libfile-fcntllock-perl (0.22-3build4) ...
Setting up libalgorithm-diff-perl (1.19.03-2) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1.1) ...
Setting up linux-libc-dev:amd64 (5.4.0-70.78) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.1) ...
Setting up libgomp1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libfakeroot:amd64 (1.24-1) ...
Setting up fakeroot (1.24-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up make (4.2.1-1.2) ...
Setting up libquadmath0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libatomic1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libdpkg-perl (1.19.7ubuntu3) ...
Setting up libubsan1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Setting up libisl22:amd64 (0.22.1-1) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1.1) ...
Setting up libc-dev-bin (2.31-0ubuntu9.2) ...
Setting up libalgorithm-diff-xs-perl (0.04-6) ...
Setting up libcc1-0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up liblsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libitm1:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libtsan0:amd64 (10.2.0-5ubuntu1~20.04) ...
Setting up libctf0:amd64 (2.34-6ubuntu1.1) ...
Setting up libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up cpp-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.1) ...
Setting up binutils (2.34-6ubuntu1.1) ...
Setting up dpkg-dev (1.19.7ubuntu3) ...
Setting up libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up cpp (4:9.3.0-1ubuntu2) ...
Setting up gcc-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up gcc (4:9.3.0-1ubuntu2) ...
Setting up g++-9 (9.3.0-17ubuntu1~20.04) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.8ubuntu1.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
adminvps@xx1-234-56789:~$ 

【ログ】Ubuntu 20.04: sudo apt upgrade

  • 実行コマンド:sudo apt upgrade
  • 実行日 2021/04/10
  • 実行環境:Ubuntu 20.04
vpsadmin@xx1-234-56789:~$ sudo apt 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:
  linux-headers-5.4.0-52 linux-headers-5.4.0-52-generic linux-image-5.4.0-52-generic linux-modules-5.4.0-52-generic linux-modules-extra-5.4.0-52-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  linux-headers-5.4.0-70 linux-headers-5.4.0-70-generic linux-image-5.4.0-70-generic linux-modules-5.4.0-70-generic linux-modules-extra-5.4.0-70-generic motd-news-config
  python3-pexpect python3-ptyprocess
The following packages will be upgraded:
  accountsservice alsa-ucm-conf apport apt apt-utils base-files bcache-tools bind9-dnsutils bind9-host bind9-libs bolt bsdutils busybox-initramfs busybox-static ca-certificates
  command-not-found cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run curl dirmngr fdisk finalrd friendly-recovery git git-man gnupg gnupg-l10n gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grub-common grub-pc grub-pc-bin grub2-common initramfs-tools initramfs-tools-bin initramfs-tools-core intel-microcode
  isc-dhcp-client isc-dhcp-common krb5-locales landscape-common language-selector-common libaccountsservice0 libapt-pkg6.0 libasound2 libasound2-data libblkid1 libc-bin libc6
  libcryptsetup12 libcurl3-gnutls libcurl4 libdns-export1109 libdrm-common libdrm2 libefiboot1 libefivar1 libfdisk1 libglib2.0-0 libglib2.0-bin libglib2.0-data libgssapi-krb5-2
  libisc-export1105 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common liblzma5 libmaxminddb0 libmount1 libnetplan0 libnss-systemd libp11-kit0 libpam-modules
  libpam-modules-bin libpam-runtime libpam-systemd libpam0g libparted2 libplymouth5 libproxy1v5 libpython3.8 libpython3.8-minimal libpython3.8-stdlib libsmartcols1 libssl1.1
  libsystemd0 libudev1 libuuid1 libzstd1 linux-firmware linux-generic linux-headers-generic linux-image-generic locales lshw lsof mdadm mount netplan.io open-vm-tools openssh-client
  openssh-server openssh-sftp-server openssl parted plymouth plymouth-theme-ubuntu-text pollinate python-apt-common python3-apport python3-apt python3-commandnotfound
  python3-cryptography python3-distupgrade python3-problem-report python3-software-properties python3-twisted python3-twisted-bin python3-update-manager python3.8 python3.8-minimal
  rsyslog screen software-properties-common sosreport sudo systemd systemd-sysv systemd-timesyncd tar tmux tzdata ubuntu-keyring ubuntu-minimal ubuntu-release-upgrader-core
  ubuntu-server ubuntu-standard udev unattended-upgrades update-manager-core update-notifier-common util-linux uuid-runtime wireless-regdb xz-utils zlib1g
156 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 236 MB of archives.
After this operation, 402 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-server amd64 1.450.2 [2680 B]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 base-files amd64 11ubuntu5.3 [60.6 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 motd-news-config all 11ubuntu5.3 [4560 B]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6 amd64 2.31-0ubuntu9.2 [2715 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-client amd64 2.2.19-3ubuntu2.1 [97.6 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 dirmngr amd64 2.2.19-3ubuntu2.1 [329 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-utils amd64 2.2.19-3ubuntu2.1 [480 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-server amd64 2.2.19-3ubuntu2.1 [90.3 kB]
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-agent amd64 2.2.19-3ubuntu2.1 [232 kB]
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg amd64 2.2.19-3ubuntu2.1 [483 kB]
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgconf amd64 2.2.19-3ubuntu2.1 [124 kB]
Get:12 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-l10n all 2.2.19-3ubuntu2.1 [51.7 kB]
Get:13 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg all 2.2.19-3ubuntu2.1 [259 kB]
Get:14 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgsm amd64 2.2.19-3ubuntu2.1 [217 kB]
Get:15 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-2ubuntu1.2 [53.6 kB]
Get:16 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-common all 2.4.49+dfsg-2ubuntu1.7 [17.1 kB]
Get:17 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-2.4-2 amd64 2.4.49+dfsg-2ubuntu1.7 [155 kB]
Get:18 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgv amd64 2.2.19-3ubuntu2.1 [199 kB]
Get:19 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblzma5 amd64 5.2.4-1ubuntu1 [91.7 kB]
Get:20 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.6 [95.8 kB]
Get:21 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.6 [1366 kB]
Get:22 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.6 [77.1 kB]
Get:23 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libblkid1 amd64 2.34-0.1ubuntu9.1 [137 kB]
Get:24 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.6 [10.3 kB]
Get:25 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libuuid1 amd64 2.34-0.1ubuntu9.1 [20.0 kB]
Get:26 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libfdisk1 amd64 2.34-0.1ubuntu9.1 [175 kB]
Get:27 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libmount1 amd64 2.34-0.1ubuntu9.1 [149 kB]
Get:28 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsmartcols1 amd64 2.34-0.1ubuntu9.1 [100 kB]
Get:29 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 fdisk amd64 2.34-0.1ubuntu9.1 [119 kB]
Get:30 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 util-linux amd64 2.34-0.1ubuntu9.1 [1021 kB]
Get:31 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.6 [28.1 kB]
Get:32 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam0g amd64 1.3.1-5ubuntu4.1 [55.4 kB]
Get:33 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-modules-bin amd64 1.3.1-5ubuntu4.1 [37.6 kB]
Get:34 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-modules amd64 1.3.1-5ubuntu4.1 [250 kB]
Get:35 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-runtime all 1.3.1-5ubuntu4.1 [37.3 kB]
Get:36 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.6 [186 kB]
Get:37 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.3 [1320 kB]
Get:38 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcryptsetup12 amd64 2:2.2.2-3ubuntu2.3 [183 kB]
Get:39 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 mount amd64 2.34-0.1ubuntu9.1 [115 kB]
Get:40 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.6 [3805 kB]
Get:41 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.6 [269 kB]
Get:42 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libzstd1 amd64 1.4.4+dfsg-3ubuntu0.1 [237 kB]
Get:43 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libapt-pkg6.0 amd64 2.0.5 [834 kB]
Get:44 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python-apt-common all 2.0.0ubuntu0.20.04.4 [17.4 kB]
Get:45 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apt amd64 2.0.0ubuntu0.20.04.4 [154 kB]
Get:46 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-problem-report all 2.20.11-0ubuntu27.16 [9708 B]
Get:47 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apport all 2.20.11-0ubuntu27.16 [84.9 kB]
Get:48 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libefivar1 amd64 37-2ubuntu2.2 [47.7 kB]
Get:49 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libefiboot1 amd64 37-2ubuntu2.2 [40.5 kB]
Get:50 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 grub-pc amd64 2.04-1ubuntu26.9 [125 kB]
Get:51 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 grub2-common amd64 2.04-1ubuntu26.9 [592 kB]
Get:52 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 grub-pc-bin amd64 2.04-1ubuntu26.9 [971 kB]
Get:53 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 grub-common amd64 2.04-1ubuntu26.9 [1877 kB]
Get:54 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 apport all 2.20.11-0ubuntu27.16 [129 kB]
Get:55 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bcache-tools amd64 1.0.8-3ubuntu0.1 [19.5 kB]
Get:56 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libk5crypto3 amd64 1.17-6ubuntu4.1 [79.9 kB]
Get:57 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgssapi-krb5-2 amd64 1.17-6ubuntu4.1 [121 kB]
Get:58 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5-3 amd64 1.17-6ubuntu4.1 [330 kB]
Get:59 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5support0 amd64 1.17-6ubuntu4.1 [30.9 kB]
Get:60 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.5 [161 kB]
Get:61 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.5 [234 kB]
Get:62 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.1 [884 kB]
Get:63 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.5 [232 kB]
Get:64 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.1 [4557 kB]
Get:65 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 mdadm amd64 4.1-5ubuntu1.2 [417 kB]
Get:66 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 pollinate all 4.33-3ubuntu1.20.04.1 [22.6 kB]
Get:67 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 screen amd64 4.8.0-1ubuntu0.1 [577 kB]
Get:68 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 software-properties-common all 0.98.9.4 [10.6 kB]
Get:69 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-software-properties all 0.98.9.4 [25.1 kB]
Get:70 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.3 [620 kB]
Get:71 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.1 [146 kB]
Get:72 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-ptyprocess all 0.6.0-1ubuntu1 [13.3 kB]
Get:73 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-pexpect all 4.6.0-1build1 [44.6 kB]
Get:74 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 sosreport amd64 4.0-1~ubuntu0.20.04.3 [237 kB]
Get:75 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 tmux amd64 3.0a-2ubuntu0.2 [292 kB]
Get:76 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-release-upgrader-core all 1:20.04.31 [23.8 kB]
Get:77 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 update-manager-core all 1:20.04.10.6 [11.3 kB]
Get:78 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-update-manager all 1:20.04.10.6 [38.1 kB]
Get:79 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distupgrade all 1:20.04.31 [104 kB]
Get:80 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 update-notifier-common all 3.192.30.6 [131 kB]
Get:81 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bsdutils amd64 1:2.34-0.1ubuntu9.1 [63.1 kB]
Get:82 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 tar amd64 1.30+dfsg-7ubuntu0.20.04.1 [240 kB]
Get:83 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 locales all 2.31-0ubuntu9.2 [3872 kB]
Get:84 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-bin amd64 2.31-0ubuntu9.2 [639 kB]
Get:85 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 apt amd64 2.0.5 [1290 kB]
Get:86 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 apt-utils amd64 2.0.5 [213 kB]
Get:87 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-keyring all 2020.02.11.4 [22.1 kB]
Get:88 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8 amd64 3.8.5-1~20.04.2 [1624 kB]
Get:89 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.5-1~20.04.2 [373 kB]
Get:90 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.5-1~20.04.2 [1671 kB]
Get:91 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-minimal amd64 3.8.5-1~20.04.2 [1899 kB]
Get:92 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.5-1~20.04.2 [715 kB]
Get:93 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 rsyslog amd64 8.2001.0-1ubuntu1.1 [427 kB]
Get:94 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6-1~ubuntu20.04.3 [5988 B]
Get:95 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6-1~ubuntu20.04.3 [73.0 kB]
Get:96 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6-1~ubuntu20.04.3 [1285 kB]
Get:97 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 accountsservice amd64 0.6.55-0ubuntu12~20.04.4 [61.2 kB]
Get:98 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libaccountsservice0 amd64 0.6.55-0ubuntu12~20.04.4 [72.5 kB]
Get:99 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 language-selector-common all 0.204.2 [224 kB]
Get:100 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 uuid-runtime amd64 2.34-0.1ubuntu9.1 [35.1 kB]
Get:101 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libp11-kit0 amd64 0.23.20-1ubuntu0.1 [188 kB]
Get:102 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libisc-export1105 amd64 1:9.11.16+dfsg-3~ubuntu1 [175 kB]
Get:103 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libdns-export1109 amd64 1:9.11.16+dfsg-3~ubuntu1 [765 kB]
Get:104 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-client amd64 4.4.1-2.1ubuntu5.20.04.1 [247 kB]
Get:105 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-common amd64 4.4.1-2.1ubuntu5.20.04.1 [44.8 kB]
Get:106 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.101-0ubuntu3~20.04.2 [28.5 kB]
Get:107 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 friendly-recovery all 0.2.41ubuntu0.20.04.1 [8980 B]
Get:108 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools all 0.136ubuntu6.4 [9216 B]
Get:109 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools-core all 0.136ubuntu6.4 [47.8 kB]
Get:110 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 busybox-initramfs amd64 1:1.30.1-4ubuntu6.3 [169 kB]
Get:111 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools-bin amd64 0.136ubuntu6.4 [13.6 kB]
Get:112 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 netplan.io amd64 0.101-0ubuntu3~20.04.2 [94.2 kB]
Get:113 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 sudo amd64 1.8.31-1ubuntu1.2 [514 kB]
Get:114 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 tzdata all 2021a-0ubuntu0.20.04 [295 kB]
Get:115 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-minimal amd64 1.450.2 [2752 B]
Get:116 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 xz-utils amd64 5.2.4-1ubuntu1 [82.5 kB]
Get:117 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libmaxminddb0 amd64 1.4.2-0ubuntu1.20.04.1 [26.2 kB]
Get:118 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-dnsutils amd64 1:9.16.1-0ubuntu2.7 [134 kB]
Get:119 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-libs amd64 1:9.16.1-0ubuntu2.7 [1114 kB]
Get:120 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-host amd64 1:9.16.1-0ubuntu2.7 [43.0 kB]
Get:121 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 busybox-static amd64 1:1.30.1-4ubuntu6.3 [949 kB]
Get:122 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 command-not-found all 20.04.4 [5240 B]
Get:123 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-commandnotfound all 20.04.4 [10.1 kB]
Get:124 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 krb5-locales all 1.17-6ubuntu4.1 [11.4 kB]
Get:125 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libdrm-common all 2.4.102-1ubuntu1~20.04.1 [5388 B]
Get:126 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libdrm2 amd64 2.4.102-1ubuntu1~20.04.1 [32.3 kB]
Get:127 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 parted amd64 3.3-4ubuntu0.20.04.1 [43.3 kB]
Get:128 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libparted2 amd64 3.3-4ubuntu0.20.04.1 [159 kB]
Get:129 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libplymouth5 amd64 0.9.4git20200323-0ubuntu6.2 [98.6 kB]
Get:130 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 lshw amd64 02.18.85-0.3ubuntu2.20.04.1 [271 kB]
Get:131 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 lsof amd64 4.93.2+dfsg-1ubuntu0.20.04.1 [252 kB]
Get:132 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.2 [51.5 kB]
Get:133 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.2 [377 kB]
Get:134 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.2 [671 kB]
Get:135 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 plymouth-theme-ubuntu-text amd64 0.9.4git20200323-0ubuntu6.2 [9504 B]
Get:136 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 plymouth amd64 0.9.4git20200323-0ubuntu6.2 [118 kB]
Get:137 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-standard amd64 1.450.2 [2800 B]
Get:138 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 alsa-ucm-conf all 1.2.2-1ubuntu0.6 [25.8 kB]
Get:139 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 bolt amd64 0.8-4ubuntu1 [132 kB]
Get:140 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 cryptsetup-initramfs all 2:2.2.2-3ubuntu2.3 [25.5 kB]
Get:141 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 cryptsetup-bin amd64 2:2.2.2-3ubuntu2.3 [119 kB]
Get:142 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 cryptsetup amd64 2:2.2.2-3ubuntu2.3 [159 kB]
Get:143 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 cryptsetup-run all 2:2.2.2-3ubuntu2.3 [6072 B]
Get:144 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 finalrd all 6~ubuntu20.04.1 [6852 B]
Get:145 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-twisted-bin amd64 18.9.0-11ubuntu0.20.04.1 [11.1 kB]
Get:146 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-twisted all 18.9.0-11ubuntu0.20.04.1 [1931 kB]
Get:147 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 landscape-common amd64 19.12-0ubuntu4.2 [86.4 kB]
Get:148 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasound2 amd64 1.2.2-2.1ubuntu2.3 [335 kB]
Get:149 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasound2-data all 1.2.2-2.1ubuntu2.3 [20.0 kB]
Get:150 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libproxy1v5 amd64 0.4.15-10ubuntu1.2 [49.1 kB]
Get:151 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-firmware all 1.187.10 [103 MB]
Get:152 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-5.4.0-70-generic amd64 5.4.0-70.78 [14.8 MB]                                                        
Get:153 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-5.4.0-70-generic amd64 5.4.0-70.78 [8971 kB]                                                          
Get:154 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.4.0-70-generic amd64 5.4.0-70.78 [39.4 MB]                                                  
Get:155 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 intel-microcode amd64 3.20201110.0ubuntu0.20.04.2 [2743 kB]                                                       
Get:156 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-generic amd64 5.4.0.70.73 [1896 B]                                                                          
Get:157 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-generic amd64 5.4.0.70.73 [2560 B]                                                                    
Get:158 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-70 all 5.4.0-70.78 [11.0 MB]                                                                  
Get:159 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.4.0-70-generic amd64 5.4.0-70.78 [1400 kB]                                                        
Get:160 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-generic amd64 5.4.0.70.73 [2428 B]                                                                  
Get:161 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-cryptography amd64 2.8-3ubuntu0.1 [211 kB]                                                                
Get:162 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 unattended-upgrades all 2.3ubuntu0.1 [48.7 kB]                                                                    
Get:163 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 wireless-regdb all 2020.11.20-0ubuntu1~20.04.1 [10.3 kB]                                                          
Get:164 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 open-vm-tools amd64 2:11.2.5-2ubuntu1~ubuntu20.04.1 [604 kB]                                                  
Fetched 236 MB in 21s (11.5 MB/s)                                                                                                                                                      
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 70321 files and directories currently installed.)
Preparing to unpack .../ubuntu-server_1.450.2_amd64.deb ...
Unpacking ubuntu-server (1.450.2) over (1.450.1) ...
Preparing to unpack .../base-files_11ubuntu5.3_amd64.deb ...
Warning: Stopping motd-news.service, but it can still be activated by:
  motd-news.timer
Unpacking base-files (11ubuntu5.3) over (11ubuntu5.1) ...
Setting up base-files (11ubuntu5.3) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/update-motd.d/50-motd-news ...
motd-news.service is a disabled or a static unit, not starting it.
Removing obsolete conffile /etc/default/motd-news ...
Selecting previously unselected package motd-news-config.
(Reading database ... 70320 files and directories currently installed.)
Preparing to unpack .../motd-news-config_11ubuntu5.3_all.deb ...
Unpacking motd-news-config (11ubuntu5.3) ...
Preparing to unpack .../libc6_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc6:amd64 (2.31-0ubuntu9.2) over (2.31-0ubuntu9) ...
Setting up libc6:amd64 (2.31-0ubuntu9.2) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../00-gpg-wks-client_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../01-dirmngr_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking dirmngr (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../02-gnupg-utils_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gnupg-utils (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../03-gpg-wks-server_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../04-gpg-agent_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-agent (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../05-gpg_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../06-gpgconf_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgconf (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../07-gnupg-l10n_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg-l10n (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../08-gnupg_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../09-gpgsm_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgsm (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../10-zlib1g_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.2) over (1:1.2.11.dfsg-2ubuntu1) ...
Setting up zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libldap-common_2.4.49+dfsg-2ubuntu1.7_all.deb ...
Unpacking libldap-common (2.4.49+dfsg-2ubuntu1.7) over (2.4.49+dfsg-2ubuntu1.3) ...
Preparing to unpack .../libldap-2.4-2_2.4.49+dfsg-2ubuntu1.7_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.7) over (2.4.49+dfsg-2ubuntu1.3) ...
Preparing to unpack .../gpgv_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgv (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Setting up gpgv (2.2.19-3ubuntu2.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../liblzma5_5.2.4-1ubuntu1_amd64.deb ...
Unpacking liblzma5:amd64 (5.2.4-1ubuntu1) over (5.2.4-1) ...
Setting up liblzma5:amd64 (5.2.4-1ubuntu1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_245.4-4ubuntu3.6_amd64.deb ...
Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../udev_245.4-4ubuntu3.6_amd64.deb ...
Unpacking udev (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../libudev1_245.4-4ubuntu3.6_amd64.deb ...
Unpacking libudev1:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Setting up libudev1:amd64 (245.4-4ubuntu3.6) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking libblkid1:amd64 (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Setting up libblkid1:amd64 (2.34-0.1ubuntu9.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_245.4-4ubuntu3.6_amd64.deb ...
Unpacking systemd-sysv (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../libuuid1_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking libuuid1:amd64 (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Setting up libuuid1:amd64 (2.34-0.1ubuntu9.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libfdisk1_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking libfdisk1:amd64 (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Preparing to unpack .../libmount1_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking libmount1:amd64 (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Setting up libmount1:amd64 (2.34-0.1ubuntu9.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Setting up libsmartcols1:amd64 (2.34-0.1ubuntu9.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../fdisk_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking fdisk (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Preparing to unpack .../util-linux_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking util-linux (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Setting up util-linux (2.34-0.1ubuntu9.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../systemd-timesyncd_245.4-4ubuntu3.6_amd64.deb ...
Unpacking systemd-timesyncd (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../libpam0g_1.3.1-5ubuntu4.1_amd64.deb ...
Unpacking libpam0g:amd64 (1.3.1-5ubuntu4.1) over (1.3.1-5ubuntu4) ...
Setting up libpam0g:amd64 (1.3.1-5ubuntu4.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.3.1-5ubuntu4.1_amd64.deb ...
Unpacking libpam-modules-bin (1.3.1-5ubuntu4.1) over (1.3.1-5ubuntu4) ...
Setting up libpam-modules-bin (1.3.1-5ubuntu4.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.3.1-5ubuntu4.1_amd64.deb ...
Unpacking libpam-modules:amd64 (1.3.1-5ubuntu4.1) over (1.3.1-5ubuntu4) ...
Setting up libpam-modules:amd64 (1.3.1-5ubuntu4.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libpam-runtime_1.3.1-5ubuntu4.1_all.deb ...
Unpacking libpam-runtime (1.3.1-5ubuntu4.1) over (1.3.1-5ubuntu4) ...
Setting up libpam-runtime (1.3.1-5ubuntu4.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../0-libpam-systemd_245.4-4ubuntu3.6_amd64.deb ...
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../1-libssl1.1_1.1.1f-1ubuntu2.3_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.3) over (1.1.1f-1ubuntu2) ...
Preparing to unpack .../2-libcryptsetup12_2%3a2.2.2-3ubuntu2.3_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../3-mount_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking mount (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Preparing to unpack .../4-systemd_245.4-4ubuntu3.6_amd64.deb ...
Unpacking systemd (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Preparing to unpack .../5-libsystemd0_245.4-4ubuntu3.6_amd64.deb ...
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.2) ...
Setting up libsystemd0:amd64 (245.4-4ubuntu3.6) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libzstd1_1.4.4+dfsg-3ubuntu0.1_amd64.deb ...
Unpacking libzstd1:amd64 (1.4.4+dfsg-3ubuntu0.1) over (1.4.4+dfsg-3) ...
Setting up libzstd1:amd64 (1.4.4+dfsg-3ubuntu0.1) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../libapt-pkg6.0_2.0.5_amd64.deb ...
Unpacking libapt-pkg6.0:amd64 (2.0.5) over (2.0.2ubuntu0.1) ...
Setting up libapt-pkg6.0:amd64 (2.0.5) ...
(Reading database ... 70324 files and directories currently installed.)
Preparing to unpack .../00-python-apt-common_2.0.0ubuntu0.20.04.4_all.deb ...
Unpacking python-apt-common (2.0.0ubuntu0.20.04.4) over (2.0.0ubuntu0.20.04.1) ...
Preparing to unpack .../01-python3-apt_2.0.0ubuntu0.20.04.4_amd64.deb ...
Unpacking python3-apt (2.0.0ubuntu0.20.04.4) over (2.0.0ubuntu0.20.04.1) ...
Preparing to unpack .../02-python3-problem-report_2.20.11-0ubuntu27.16_all.deb ...
Unpacking python3-problem-report (2.20.11-0ubuntu27.16) over (2.20.11-0ubuntu27.6) ...
Preparing to unpack .../03-python3-apport_2.20.11-0ubuntu27.16_all.deb ...
Unpacking python3-apport (2.20.11-0ubuntu27.16) over (2.20.11-0ubuntu27.6) ...
Preparing to unpack .../04-libefivar1_37-2ubuntu2.2_amd64.deb ...
Unpacking libefivar1:amd64 (37-2ubuntu2.2) over (37-2ubuntu2) ...
Preparing to unpack .../05-libefiboot1_37-2ubuntu2.2_amd64.deb ...
Unpacking libefiboot1:amd64 (37-2ubuntu2.2) over (37-2ubuntu2) ...
Preparing to unpack .../06-grub-pc_2.04-1ubuntu26.9_amd64.deb ...
Unpacking grub-pc (2.04-1ubuntu26.9) over (2.04-1ubuntu26.6) ...
Preparing to unpack .../07-grub2-common_2.04-1ubuntu26.9_amd64.deb ...
Unpacking grub2-common (2.04-1ubuntu26.9) over (2.04-1ubuntu26.6) ...
Preparing to unpack .../08-grub-pc-bin_2.04-1ubuntu26.9_amd64.deb ...
Unpacking grub-pc-bin (2.04-1ubuntu26.9) over (2.04-1ubuntu26.6) ...
Preparing to unpack .../09-grub-common_2.04-1ubuntu26.9_amd64.deb ...
Unpacking grub-common (2.04-1ubuntu26.9) over (2.04-1ubuntu26.6) ...
Preparing to unpack .../10-apport_2.20.11-0ubuntu27.16_all.deb ...
Unpacking apport (2.20.11-0ubuntu27.16) over (2.20.11-0ubuntu27.6) ...
Preparing to unpack .../11-bcache-tools_1.0.8-3ubuntu0.1_amd64.deb ...
Unpacking bcache-tools (1.0.8-3ubuntu0.1) over (1.0.8-3) ...
Preparing to unpack .../12-libk5crypto3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-6ubuntu4.1) over (1.17-6ubuntu4) ...
Preparing to unpack .../13-libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) over (1.17-6ubuntu4) ...
Preparing to unpack .../14-libkrb5-3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-6ubuntu4.1) over (1.17-6ubuntu4) ...
Preparing to unpack .../15-libkrb5support0_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-6ubuntu4.1) over (1.17-6ubuntu4) ...
Preparing to unpack .../16-curl_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.5) over (7.68.0-1ubuntu2.2) ...
Preparing to unpack .../17-libcurl4_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.5) over (7.68.0-1ubuntu2.2) ...
Preparing to unpack .../18-git-man_1%3a2.25.1-1ubuntu3.1_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3.1) over (1:2.25.1-1ubuntu3) ...
Preparing to unpack .../19-libcurl3-gnutls_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) over (7.68.0-1ubuntu2.2) ...
Preparing to unpack .../20-git_1%3a2.25.1-1ubuntu3.1_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3.1) over (1:2.25.1-1ubuntu3) ...
Preparing to unpack .../21-mdadm_4.1-5ubuntu1.2_amd64.deb ...
Unpacking mdadm (4.1-5ubuntu1.2) over (4.1-5ubuntu1) ...
Preparing to unpack .../22-pollinate_4.33-3ubuntu1.20.04.1_all.deb ...
Unpacking pollinate (4.33-3ubuntu1.20.04.1) over (4.33-3ubuntu1) ...
Preparing to unpack .../23-screen_4.8.0-1ubuntu0.1_amd64.deb ...
Unpacking screen (4.8.0-1ubuntu0.1) over (4.8.0-1) ...
Preparing to unpack .../24-software-properties-common_0.98.9.4_all.deb ...
Unpacking software-properties-common (0.98.9.4) over (0.98.9.2) ...
Preparing to unpack .../25-python3-software-properties_0.98.9.4_all.deb ...
Unpacking python3-software-properties (0.98.9.4) over (0.98.9.2) ...
Preparing to unpack .../26-openssl_1.1.1f-1ubuntu2.3_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.3) over (1.1.1f-1ubuntu2) ...
Preparing to unpack .../27-ca-certificates_20210119~20.04.1_all.deb ...
Unpacking ca-certificates (20210119~20.04.1) over (20201027ubuntu0.20.04.1) ...
Selecting previously unselected package python3-ptyprocess.
Preparing to unpack .../28-python3-ptyprocess_0.6.0-1ubuntu1_all.deb ...
Unpacking python3-ptyprocess (0.6.0-1ubuntu1) ...
Selecting previously unselected package python3-pexpect.
Preparing to unpack .../29-python3-pexpect_4.6.0-1build1_all.deb ...
Unpacking python3-pexpect (4.6.0-1build1) ...
Preparing to unpack .../30-sosreport_4.0-1~ubuntu0.20.04.3_amd64.deb ...
Unpacking sosreport (4.0-1~ubuntu0.20.04.3) over (3.9.1-1ubuntu0.20.04.2) ...
Preparing to unpack .../31-tmux_3.0a-2ubuntu0.2_amd64.deb ...
Unpacking tmux (3.0a-2ubuntu0.2) over (3.0a-2) ...
Preparing to unpack .../32-ubuntu-release-upgrader-core_1%3a20.04.31_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:20.04.31) over (1:20.04.23) ...
Preparing to unpack .../33-update-manager-core_1%3a20.04.10.6_all.deb ...
Unpacking update-manager-core (1:20.04.10.6) over (1:20.04.10.1) ...
Preparing to unpack .../34-python3-update-manager_1%3a20.04.10.6_all.deb ...
Unpacking python3-update-manager (1:20.04.10.6) over (1:20.04.10.1) ...
Preparing to unpack .../35-python3-distupgrade_1%3a20.04.31_all.deb ...
Unpacking python3-distupgrade (1:20.04.31) over (1:20.04.23) ...
Preparing to unpack .../36-update-notifier-common_3.192.30.6_all.deb ...
Unpacking update-notifier-common (3.192.30.6) over (3.192.30) ...
Preparing to unpack .../37-bsdutils_1%3a2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking bsdutils (1:2.34-0.1ubuntu9.1) over (1:2.34-0.1ubuntu9) ...
Setting up bsdutils (1:2.34-0.1ubuntu9.1) ...
(Reading database ... 70401 files and directories currently installed.)
Preparing to unpack .../tar_1.30+dfsg-7ubuntu0.20.04.1_amd64.deb ...
Unpacking tar (1.30+dfsg-7ubuntu0.20.04.1) over (1.30+dfsg-7) ...
Setting up tar (1.30+dfsg-7ubuntu0.20.04.1) ...
(Reading database ... 70401 files and directories currently installed.)
Preparing to unpack .../locales_2.31-0ubuntu9.2_all.deb ...
Unpacking locales (2.31-0ubuntu9.2) over (2.31-0ubuntu9) ...
Preparing to unpack .../libc-bin_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc-bin (2.31-0ubuntu9.2) over (2.31-0ubuntu9) ...
Setting up libc-bin (2.31-0ubuntu9.2) ...
(Reading database ... 70401 files and directories currently installed.)
Preparing to unpack .../archives/apt_2.0.5_amd64.deb ...
Unpacking apt (2.0.5) over (2.0.2ubuntu0.1) ...
Setting up apt (2.0.5) ...
(Reading database ... 70401 files and directories currently installed.)
Preparing to unpack .../apt-utils_2.0.5_amd64.deb ...
Unpacking apt-utils (2.0.5) over (2.0.2ubuntu0.1) ...
Preparing to unpack .../ubuntu-keyring_2020.02.11.4_all.deb ...
Unpacking ubuntu-keyring (2020.02.11.4) over (2020.02.11.2) ...
Setting up ubuntu-keyring (2020.02.11.4) ...
(Reading database ... 70401 files and directories currently installed.)
Preparing to unpack .../00-libpython3.8_3.8.5-1~20.04.2_amd64.deb ...
Unpacking libpython3.8:amd64 (3.8.5-1~20.04.2) over (3.8.5-1~20.04) ...
Preparing to unpack .../01-python3.8_3.8.5-1~20.04.2_amd64.deb ...
Unpacking python3.8 (3.8.5-1~20.04.2) over (3.8.5-1~20.04) ...
Preparing to unpack .../02-libpython3.8-stdlib_3.8.5-1~20.04.2_amd64.deb ...
Unpacking libpython3.8-stdlib:amd64 (3.8.5-1~20.04.2) over (3.8.5-1~20.04) ...
Preparing to unpack .../03-python3.8-minimal_3.8.5-1~20.04.2_amd64.deb ...
Unpacking python3.8-minimal (3.8.5-1~20.04.2) over (3.8.5-1~20.04) ...
Preparing to unpack .../04-libpython3.8-minimal_3.8.5-1~20.04.2_amd64.deb ...
Unpacking libpython3.8-minimal:amd64 (3.8.5-1~20.04.2) over (3.8.5-1~20.04) ...
Preparing to unpack .../05-rsyslog_8.2001.0-1ubuntu1.1_amd64.deb ...
Unpacking rsyslog (8.2001.0-1ubuntu1.1) over (8.2001.0-1ubuntu1) ...
Preparing to unpack .../06-libglib2.0-data_2.64.6-1~ubuntu20.04.3_all.deb ...
Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.3) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../07-libglib2.0-bin_2.64.6-1~ubuntu20.04.3_amd64.deb ...
Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.3) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../08-libglib2.0-0_2.64.6-1~ubuntu20.04.3_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.3) over (2.64.3-1~ubuntu20.04.1) ...
Preparing to unpack .../09-accountsservice_0.6.55-0ubuntu12~20.04.4_amd64.deb ...
Unpacking accountsservice (0.6.55-0ubuntu12~20.04.4) over (0.6.55-0ubuntu12~20.04.1) ...
Preparing to unpack .../10-libaccountsservice0_0.6.55-0ubuntu12~20.04.4_amd64.deb ...
Unpacking libaccountsservice0:amd64 (0.6.55-0ubuntu12~20.04.4) over (0.6.55-0ubuntu12~20.04.1) ...
Preparing to unpack .../11-language-selector-common_0.204.2_all.deb ...
Unpacking language-selector-common (0.204.2) over (0.204) ...
Preparing to unpack .../12-uuid-runtime_2.34-0.1ubuntu9.1_amd64.deb ...
Unpacking uuid-runtime (2.34-0.1ubuntu9.1) over (2.34-0.1ubuntu9) ...
Preparing to unpack .../13-libp11-kit0_0.23.20-1ubuntu0.1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.23.20-1ubuntu0.1) over (0.23.20-1build1) ...
Setting up libp11-kit0:amd64 (0.23.20-1ubuntu0.1) ...
(Reading database ... 70403 files and directories currently installed.)
Preparing to unpack .../00-libisc-export1105_1%3a9.11.16+dfsg-3~ubuntu1_amd64.deb ...
Unpacking libisc-export1105:amd64 (1:9.11.16+dfsg-3~ubuntu1) over (1:9.11.16+dfsg-3~build1) ...
Preparing to unpack .../01-libdns-export1109_1%3a9.11.16+dfsg-3~ubuntu1_amd64.deb ...
Unpacking libdns-export1109 (1:9.11.16+dfsg-3~ubuntu1) over (1:9.11.16+dfsg-3~build1) ...
Preparing to unpack .../02-isc-dhcp-client_4.4.1-2.1ubuntu5.20.04.1_amd64.deb ...
Unpacking isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.1) over (4.4.1-2.1ubuntu5) ...
Preparing to unpack .../03-isc-dhcp-common_4.4.1-2.1ubuntu5.20.04.1_amd64.deb ...
Unpacking isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.1) over (4.4.1-2.1ubuntu5) ...
Preparing to unpack .../04-libnetplan0_0.101-0ubuntu3~20.04.2_amd64.deb ...
Unpacking libnetplan0:amd64 (0.101-0ubuntu3~20.04.2) over (0.99-0ubuntu3~20.04.2) ...
Preparing to unpack .../05-friendly-recovery_0.2.41ubuntu0.20.04.1_all.deb ...
Unpacking friendly-recovery (0.2.41ubuntu0.20.04.1) over (0.2.41) ...
Preparing to unpack .../06-initramfs-tools_0.136ubuntu6.4_all.deb ...
Unpacking initramfs-tools (0.136ubuntu6.4) over (0.136ubuntu6.2) ...
Preparing to unpack .../07-initramfs-tools-core_0.136ubuntu6.4_all.deb ...
Unpacking initramfs-tools-core (0.136ubuntu6.4) over (0.136ubuntu6.2) ...
Preparing to unpack .../08-busybox-initramfs_1%3a1.30.1-4ubuntu6.3_amd64.deb ...
Unpacking busybox-initramfs (1:1.30.1-4ubuntu6.3) over (1:1.30.1-4ubuntu6.2) ...
Preparing to unpack .../09-initramfs-tools-bin_0.136ubuntu6.4_amd64.deb ...
Unpacking initramfs-tools-bin (0.136ubuntu6.4) over (0.136ubuntu6.2) ...
Preparing to unpack .../10-netplan.io_0.101-0ubuntu3~20.04.2_amd64.deb ...
Unpacking netplan.io (0.101-0ubuntu3~20.04.2) over (0.99-0ubuntu3~20.04.2) ...
Preparing to unpack .../11-sudo_1.8.31-1ubuntu1.2_amd64.deb ...
Unpacking sudo (1.8.31-1ubuntu1.2) over (1.8.31-1ubuntu1) ...
Preparing to unpack .../12-tzdata_2021a-0ubuntu0.20.04_all.deb ...
Unpacking tzdata (2021a-0ubuntu0.20.04) over (2020d-0ubuntu0.20.04) ...
Preparing to unpack .../13-ubuntu-minimal_1.450.2_amd64.deb ...
Unpacking ubuntu-minimal (1.450.2) over (1.450.1) ...
Preparing to unpack .../14-xz-utils_5.2.4-1ubuntu1_amd64.deb ...
Unpacking xz-utils (5.2.4-1ubuntu1) over (5.2.4-1) ...
Preparing to unpack .../15-libmaxminddb0_1.4.2-0ubuntu1.20.04.1_amd64.deb ...
Unpacking libmaxminddb0:amd64 (1.4.2-0ubuntu1.20.04.1) over (1.4.2-0ubuntu1) ...
Preparing to unpack .../16-bind9-dnsutils_1%3a9.16.1-0ubuntu2.7_amd64.deb ...
Unpacking bind9-dnsutils (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.3) ...
Preparing to unpack .../17-bind9-libs_1%3a9.16.1-0ubuntu2.7_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.3) ...
Preparing to unpack .../18-bind9-host_1%3a9.16.1-0ubuntu2.7_amd64.deb ...
Unpacking bind9-host (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.3) ...
Preparing to unpack .../19-busybox-static_1%3a1.30.1-4ubuntu6.3_amd64.deb ...
Unpacking busybox-static (1:1.30.1-4ubuntu6.3) over (1:1.30.1-4ubuntu6.2) ...
Preparing to unpack .../20-command-not-found_20.04.4_all.deb ...
Unpacking command-not-found (20.04.4) over (20.04.2) ...
Preparing to unpack .../21-python3-commandnotfound_20.04.4_all.deb ...
Unpacking python3-commandnotfound (20.04.4) over (20.04.2) ...
Preparing to unpack .../22-krb5-locales_1.17-6ubuntu4.1_all.deb ...
Unpacking krb5-locales (1.17-6ubuntu4.1) over (1.17-6ubuntu4) ...
Preparing to unpack .../23-libdrm-common_2.4.102-1ubuntu1~20.04.1_all.deb ...
Unpacking libdrm-common (2.4.102-1ubuntu1~20.04.1) over (2.4.101-2) ...
Preparing to unpack .../24-libdrm2_2.4.102-1ubuntu1~20.04.1_amd64.deb ...
Unpacking libdrm2:amd64 (2.4.102-1ubuntu1~20.04.1) over (2.4.101-2) ...
Preparing to unpack .../25-parted_3.3-4ubuntu0.20.04.1_amd64.deb ...
Unpacking parted (3.3-4ubuntu0.20.04.1) over (3.3-4) ...
Preparing to unpack .../26-libparted2_3.3-4ubuntu0.20.04.1_amd64.deb ...
Unpacking libparted2:amd64 (3.3-4ubuntu0.20.04.1) over (3.3-4) ...
Preparing to unpack .../27-libplymouth5_0.9.4git20200323-0ubuntu6.2_amd64.deb ...
Unpacking libplymouth5:amd64 (0.9.4git20200323-0ubuntu6.2) over (0.9.4git20200323-0ubuntu6) ...
Preparing to unpack .../28-lshw_02.18.85-0.3ubuntu2.20.04.1_amd64.deb ...
Unpacking lshw (02.18.85-0.3ubuntu2.20.04.1) over (02.18.85-0.3ubuntu2) ...
Preparing to unpack .../29-lsof_4.93.2+dfsg-1ubuntu0.20.04.1_amd64.deb ...
Unpacking lsof (4.93.2+dfsg-1ubuntu0.20.04.1) over (4.93.2+dfsg-1) ...
Preparing to unpack .../30-openssh-sftp-server_1%3a8.2p1-4ubuntu0.2_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.2) over (1:8.2p1-4ubuntu0.1) ...
Preparing to unpack .../31-openssh-server_1%3a8.2p1-4ubuntu0.2_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.2) over (1:8.2p1-4ubuntu0.1) ...
Preparing to unpack .../32-openssh-client_1%3a8.2p1-4ubuntu0.2_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.2) over (1:8.2p1-4ubuntu0.1) ...
Preparing to unpack .../33-plymouth-theme-ubuntu-text_0.9.4git20200323-0ubuntu6.2_amd64.deb ...
Unpacking plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) over (0.9.4git20200323-0ubuntu6) ...
Preparing to unpack .../34-plymouth_0.9.4git20200323-0ubuntu6.2_amd64.deb ...
Unpacking plymouth (0.9.4git20200323-0ubuntu6.2) over (0.9.4git20200323-0ubuntu6) ...
Preparing to unpack .../35-ubuntu-standard_1.450.2_amd64.deb ...
Unpacking ubuntu-standard (1.450.2) over (1.450.1) ...
Preparing to unpack .../36-alsa-ucm-conf_1.2.2-1ubuntu0.6_all.deb ...
Unpacking alsa-ucm-conf (1.2.2-1ubuntu0.6) over (1.2.2-1ubuntu0.1) ...
Preparing to unpack .../37-bolt_0.8-4ubuntu1_amd64.deb ...
Unpacking bolt (0.8-4ubuntu1) over (0.8-4) ...
Preparing to unpack .../38-cryptsetup-initramfs_2%3a2.2.2-3ubuntu2.3_all.deb ...
Unpacking cryptsetup-initramfs (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../39-cryptsetup-bin_2%3a2.2.2-3ubuntu2.3_amd64.deb ...
Unpacking cryptsetup-bin (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../40-cryptsetup_2%3a2.2.2-3ubuntu2.3_amd64.deb ...
Unpacking cryptsetup (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../41-cryptsetup-run_2%3a2.2.2-3ubuntu2.3_all.deb ...
Unpacking cryptsetup-run (2:2.2.2-3ubuntu2.3) over (2:2.2.2-3ubuntu2.2) ...
Preparing to unpack .../42-finalrd_6~ubuntu20.04.1_all.deb ...
Unpacking finalrd (6~ubuntu20.04.1) over (5) ...
Preparing to unpack .../43-python3-twisted-bin_18.9.0-11ubuntu0.20.04.1_amd64.deb ...
Unpacking python3-twisted-bin:amd64 (18.9.0-11ubuntu0.20.04.1) over (18.9.0-11) ...
Preparing to unpack .../44-python3-twisted_18.9.0-11ubuntu0.20.04.1_all.deb ...
Unpacking python3-twisted (18.9.0-11ubuntu0.20.04.1) over (18.9.0-11) ...
Preparing to unpack .../45-landscape-common_19.12-0ubuntu4.2_amd64.deb ...
Unpacking landscape-common (19.12-0ubuntu4.2) over (19.12-0ubuntu4.1) ...
Preparing to unpack .../46-libasound2_1.2.2-2.1ubuntu2.3_amd64.deb ...
Unpacking libasound2:amd64 (1.2.2-2.1ubuntu2.3) over (1.2.2-2.1ubuntu1) ...
Preparing to unpack .../47-libasound2-data_1.2.2-2.1ubuntu2.3_all.deb ...
Unpacking libasound2-data (1.2.2-2.1ubuntu2.3) over (1.2.2-2.1ubuntu1) ...
Preparing to unpack .../48-libproxy1v5_0.4.15-10ubuntu1.2_amd64.deb ...
Unpacking libproxy1v5:amd64 (0.4.15-10ubuntu1.2) over (0.4.15-10ubuntu1.1) ...
Preparing to unpack .../49-linux-firmware_1.187.10_all.deb ...
Unpacking linux-firmware (1.187.10) over (1.187.3) ...
Selecting previously unselected package linux-modules-5.4.0-70-generic.
Preparing to unpack .../50-linux-modules-5.4.0-70-generic_5.4.0-70.78_amd64.deb ...
Unpacking linux-modules-5.4.0-70-generic (5.4.0-70.78) ...
Selecting previously unselected package linux-image-5.4.0-70-generic.
Preparing to unpack .../51-linux-image-5.4.0-70-generic_5.4.0-70.78_amd64.deb ...
Unpacking linux-image-5.4.0-70-generic (5.4.0-70.78) ...
Selecting previously unselected package linux-modules-extra-5.4.0-70-generic.
Preparing to unpack .../52-linux-modules-extra-5.4.0-70-generic_5.4.0-70.78_amd64.deb ...
Unpacking linux-modules-extra-5.4.0-70-generic (5.4.0-70.78) ...
Preparing to unpack .../53-intel-microcode_3.20201110.0ubuntu0.20.04.2_amd64.deb ...
Unpacking intel-microcode (3.20201110.0ubuntu0.20.04.2) over (3.20200609.0ubuntu0.20.04.2) ...
Preparing to unpack .../54-linux-generic_5.4.0.70.73_amd64.deb ...
Unpacking linux-generic (5.4.0.70.73) over (5.4.0.52.55) ...
Preparing to unpack .../55-linux-image-generic_5.4.0.70.73_amd64.deb ...
Unpacking linux-image-generic (5.4.0.70.73) over (5.4.0.52.55) ...
Selecting previously unselected package linux-headers-5.4.0-70.
Preparing to unpack .../56-linux-headers-5.4.0-70_5.4.0-70.78_all.deb ...
Unpacking linux-headers-5.4.0-70 (5.4.0-70.78) ...
Selecting previously unselected package linux-headers-5.4.0-70-generic.
Preparing to unpack .../57-linux-headers-5.4.0-70-generic_5.4.0-70.78_amd64.deb ...
Unpacking linux-headers-5.4.0-70-generic (5.4.0-70.78) ...
Preparing to unpack .../58-linux-headers-generic_5.4.0.70.73_amd64.deb ...
Unpacking linux-headers-generic (5.4.0.70.73) over (5.4.0.52.55) ...
Preparing to unpack .../59-python3-cryptography_2.8-3ubuntu0.1_amd64.deb ...
Unpacking python3-cryptography (2.8-3ubuntu0.1) over (2.8-3) ...
Preparing to unpack .../60-unattended-upgrades_2.3ubuntu0.1_all.deb ...
Unpacking unattended-upgrades (2.3ubuntu0.1) over (2.3) ...
Preparing to unpack .../61-wireless-regdb_2020.11.20-0ubuntu1~20.04.1_all.deb ...
Unpacking wireless-regdb (2020.11.20-0ubuntu1~20.04.1) over (2018.05.09-0ubuntu1) ...
Preparing to unpack .../62-open-vm-tools_2%3a11.2.5-2ubuntu1~ubuntu20.04.1_amd64.deb ...
Unpacking open-vm-tools (2:11.2.5-2ubuntu1~ubuntu20.04.1) over (2:11.0.5-4) ...
Setting up motd-news-config (11ubuntu5.3) ...
Setting up bcache-tools (1.0.8-3ubuntu0.1) ...
Setting up libproxy1v5:amd64 (0.4.15-10ubuntu1.2) ...
Setting up apt-utils (2.0.5) ...
Setting up alsa-ucm-conf (1.2.2-1ubuntu0.6) ...
Setting up linux-firmware (1.187.10) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-52-generic
I: The initramfs will attempt to resume from /dev/vda2
I: (UUID=a1234b56-c7de-89fg-0hi1-2jkl3nop4567)
I: Set the RESUME variable to override this.
Setting up python3-problem-report (2.20.11-0ubuntu27.16) ...
Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.3) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.3) ...
Setting up intel-microcode (3.20201110.0ubuntu0.20.04.2) ...
update-initramfs: deferring update (trigger activated)
intel-microcode: microcode will be updated at next boot
Setting up libmaxminddb0:amd64 (1.4.2-0ubuntu1.20.04.1) ...
Setting up wireless-regdb (2020.11.20-0ubuntu1~20.04.1) ...
Setting up rsyslog (8.2001.0-1ubuntu1.1) ...
The user `syslog' is already a member of `adm'.
Adding user `syslog' to group `tty' ...
Adding user syslog to group tty
Done.
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up python3-twisted-bin:amd64 (18.9.0-11ubuntu0.20.04.1) ...
Setting up libnetplan0:amd64 (0.101-0ubuntu3~20.04.2) ...
Setting up screen (4.8.0-1ubuntu0.1) ...
Setting up krb5-locales (1.17-6ubuntu4.1) ...
Setting up lshw (02.18.85-0.3ubuntu2.20.04.1) ...
Setting up locales (2.31-0ubuntu9.2) ...
Generating locales (this might take a while)...
Generation complete.
Setting up libldap-common (2.4.49+dfsg-2ubuntu1.7) ...
Setting up finalrd (6~ubuntu20.04.1) ...
Setting up libkrb5support0:amd64 (1.17-6ubuntu4.1) ...
Setting up tzdata (2021a-0ubuntu0.20.04) ...

Current default time zone: 'Asia/Tokyo'
Local time is now:      Sat Apr 10 08:28:24 JST 2021.
Universal Time is now:  Fri Apr  9 23:28:24 UTC 2021.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up libasound2-data (1.2.2-2.1ubuntu2.3) ...
Setting up libisc-export1105:amd64 (1:9.11.16+dfsg-3~ubuntu1) ...
Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.3) ...
Setting up busybox-static (1:1.30.1-4ubuntu6.3) ...
Setting up gnupg-l10n (2.2.19-3ubuntu2.1) ...
Setting up python3-twisted (18.9.0-11ubuntu0.20.04.1) ...
Setting up python3-cryptography (2.8-3ubuntu0.1) ...
Setting up xz-utils (5.2.4-1ubuntu1) ...
Setting up udev (245.4-4ubuntu3.6) ...
update-initramfs: deferring update (trigger activated)
Setting up sudo (1.8.31-1ubuntu1.2) ...
Setting up libk5crypto3:amd64 (1.17-6ubuntu4.1) ...
Setting up busybox-initramfs (1:1.30.1-4ubuntu6.3) ...
Setting up lsof (4.93.2+dfsg-1ubuntu0.20.04.1) ...
Setting up libfdisk1:amd64 (2.34-0.1ubuntu9.1) ...
Setting up libparted2:amd64 (3.3-4ubuntu0.20.04.1) ...
Setting up python-apt-common (2.0.0ubuntu0.20.04.4) ...
Setting up mount (2.34-0.1ubuntu9.1) ...
Setting up uuid-runtime (2.34-0.1ubuntu9.1) ...
Setting up libplymouth5:amd64 (0.9.4git20200323-0ubuntu6.2) ...
Setting up libasound2:amd64 (1.2.2-2.1ubuntu2.3) ...
Setting up gpgconf (2.2.19-3ubuntu2.1) ...
Setting up libefivar1:amd64 (37-2ubuntu2.2) ...
Setting up linux-headers-5.4.0-70 (5.4.0-70.78) ...
Setting up git-man (1:2.25.1-1ubuntu3.1) ...
Setting up libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.3) ...
Setting up isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.1) ...
Setting up libkrb5-3:amd64 (1.17-6ubuntu4.1) ...
Setting up libaccountsservice0:amd64 (0.6.55-0ubuntu12~20.04.4) ...
Setting up openssl (1.1.1f-1ubuntu2.3) ...
Setting up libdrm-common (2.4.102-1ubuntu1~20.04.1) ...
Setting up tmux (3.0a-2ubuntu0.2) ...
Setting up linux-modules-5.4.0-70-generic (5.4.0-70.78) ...
Setting up accountsservice (0.6.55-0ubuntu12~20.04.4) ...
Setting up gpg (2.2.19-3ubuntu2.1) ...
Setting up mdadm (4.1-5ubuntu1.2) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-70-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
File descriptor 3 (pipe:[89714]) leaked on lvs invocation. Parent PID 29980: /bin/sh
done
Created symlink /etc/systemd/system/mdmonitor.service.wants/mdcheck_continue.timer → /lib/systemd/system/mdcheck_continue.timer.
Setting up bolt (0.8-4ubuntu1) ...
bolt.service is a disabled or a static unit not running, not starting it.
Setting up gnupg-utils (2.2.19-3ubuntu2.1) ...
Setting up python3-ptyprocess (0.6.0-1ubuntu1) ...
Setting up initramfs-tools-bin (0.136ubuntu6.4) ...
Setting up cryptsetup-bin (2:2.2.2-3ubuntu2.3) ...
Setting up libpython3.8-minimal:amd64 (3.8.5-1~20.04.2) ...
Setting up gpg-agent (2.2.19-3ubuntu2.1) ...
Setting up cryptsetup (2:2.2.2-3ubuntu2.3) ...
Setting up libdns-export1109 (1:9.11.16+dfsg-3~ubuntu1) ...
Setting up python3-apt (2.0.0ubuntu0.20.04.4) ...
Setting up gpgsm (2.2.19-3ubuntu2.1) ...
Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.3) ...
Setting up isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.1) ...
Setting up libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.7) ...
Setting up parted (3.3-4ubuntu0.20.04.1) ...
Setting up libefiboot1:amd64 (37-2ubuntu2.2) ...
Setting up fdisk (2.34-0.1ubuntu9.1) ...
Setting up python3-apport (2.20.11-0ubuntu27.16) ...
Setting up grub-common (2.04-1ubuntu26.9) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up dirmngr (2.2.19-3ubuntu2.1) ...
Setting up ca-certificates (20210119~20.04.1) ...
Updating certificates in /etc/ssl/certs...
1 added, 10 removed; done.
Setting up unattended-upgrades (2.3ubuntu0.1) ...
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.0-70-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.0-70-generic
Setting up cryptsetup-run (2:2.2.2-3ubuntu2.3) ...
Setting up python3-software-properties (0.98.9.4) ...
Setting up linux-headers-5.4.0-70-generic (5.4.0-70.78) ...
Setting up python3-pexpect (4.6.0-1build1) ...
Setting up python3-commandnotfound (20.04.4) ...
Setting up libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ...
Setting up sosreport (4.0-1~ubuntu0.20.04.3) ...
Setting up gpg-wks-server (2.2.19-3ubuntu2.1) ...
Setting up libdrm2:amd64 (2.4.102-1ubuntu1~20.04.1) ...
Setting up python3.8-minimal (3.8.5-1~20.04.2) ...
Setting up open-vm-tools (2:11.2.5-2ubuntu1~ubuntu20.04.1) ...
Installing new version of config file /etc/vmware-tools/tools.conf.example ...
Installing new version of config file /etc/vmware-tools/vgauth.conf ...
Setting up language-selector-common (0.204.2) ...
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.5) ...
Setting up curl (7.68.0-1ubuntu2.5) ...
Setting up libpython3.8-stdlib:amd64 (3.8.5-1~20.04.2) ...
Setting up initramfs-tools-core (0.136ubuntu6.4) ...
Setting up python3.8 (3.8.5-1~20.04.2) ...
Setting up initramfs-tools (0.136ubuntu6.4) ...
update-initramfs: deferring update (trigger activated)
Setting up gpg-wks-client (2.2.19-3ubuntu2.1) ...
Setting up bind9-libs:amd64 (1:9.16.1-0ubuntu2.7) ...
Setting up grub2-common (2.04-1ubuntu26.9) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.2) ...
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) ...
Setting up linux-headers-generic (5.4.0.70.73) ...
Setting up landscape-common (19.12-0ubuntu4.2) ...
Setting up linux-modules-extra-5.4.0-70-generic (5.4.0-70.78) ...
Setting up grub-pc-bin (2.04-1ubuntu26.9) ...
Setting up software-properties-common (0.98.9.4) ...
Setting up apport (2.20.11-0ubuntu27.16) ...
apport-autoreport.service is a disabled or a static unit, not starting it.
Setting up grub-pc (2.04-1ubuntu26.9) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-70-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
done
Setting up pollinate (4.33-3ubuntu1.20.04.1) ...
Setting up command-not-found (20.04.4) ...
Setting up libpython3.8:amd64 (3.8.5-1~20.04.2) ...
Setting up git (1:2.25.1-1ubuntu3.1) ...
Setting up gnupg (2.2.19-3ubuntu2.1) ...
Setting up bind9-host (1:9.16.1-0ubuntu2.7) ...
Setting up cryptsetup-initramfs (2:2.2.2-3ubuntu2.3) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: deferring update (trigger activated)
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.2) ...
Setting up linux-image-generic (5.4.0.70.73) ...
Setting up openssh-server (1:8.2p1-4ubuntu0.2) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up linux-generic (5.4.0.70.73) ...
Setting up bind9-dnsutils (1:9.16.1-0ubuntu2.7) ...
Setting up systemd (245.4-4ubuntu3.6) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved ...
Installing new version of config file /etc/systemd/resolved.conf ...
Setting up netplan.io (0.101-0ubuntu3~20.04.2) ...
Setting up systemd-timesyncd (245.4-4ubuntu3.6) ...
Setting up python3-update-manager (1:20.04.10.6) ...
Setting up systemd-sysv (245.4-4ubuntu3.6) ...
Setting up ubuntu-minimal (1.450.2) ...
Setting up plymouth (0.9.4git20200323-0ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libnss-systemd:amd64 (245.4-4ubuntu3.6) ...
Setting up python3-distupgrade (1:20.04.31) ...
Setting up plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
Setting up friendly-recovery (0.2.41ubuntu0.20.04.1) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-70-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
done
Setting up ubuntu-release-upgrader-core (1:20.04.31) ...
Setting up update-manager-core (1:20.04.10.6) ...
Setting up libpam-systemd:amd64 (245.4-4ubuntu3.6) ...
Setting up update-notifier-common (3.192.30.6) ...
Setting up ubuntu-standard (1.450.2) ...
Setting up ubuntu-server (1.450.2) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for ufw (0.36-6) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for ca-certificates (20210119~20.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for linux-image-5.4.0-70-generic (5.4.0-70.78) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/vda2
I: (UUID=a1234b56-c7de-89fg-0hi1-2jkl3nop4567)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-70-generic
Found initrd image: /boot/initrd.img-5.4.0-70-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
done
Processing triggers for initramfs-tools (0.136ubuntu6.4) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
I: The initramfs will attempt to resume from /dev/vda2
I: (UUID=a1234b56-c7de-89fg-0hi1-2jkl3nop4567)
I: Set the RESUME variable to override this.
vpsadmin@xx1-234-56789:~$ 

【ログ】Ubuntu 20.04: sudo apt update

  • 実行コマンド:sudo apt update
  • 実行日:2021/04/09
  • 実行環境:Ubuntu 20.04
ubuntu@xx1-234-56789:~$ sudo apt update
[sudo] password for ubuntu: 
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [896 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [209 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [13.0 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [171 kB]
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [25.3 kB]
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [436 B]
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [758 kB]
Get:12 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [161 kB]
Get:13 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [16.6 kB]
Get:14 http://jp.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [21.6 kB]
Get:15 http://jp.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [5508 B]
Get:16 http://jp.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [596 B]
Get:17 http://jp.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [4032 B]
Get:18 http://jp.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [224 B]
Get:19 http://jp.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [575 kB]
Get:20 http://jp.archive.ubuntu.com/ubuntu focal-security/main Translation-en [120 kB]
Get:21 http://jp.archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [7436 B]
Get:22 http://jp.archive.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [148 kB]
Get:23 http://jp.archive.ubuntu.com/ubuntu focal-security/restricted Translation-en [21.6 kB]
Get:24 http://jp.archive.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [392 B]
Get:25 http://jp.archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [551 kB]
Get:26 http://jp.archive.ubuntu.com/ubuntu focal-security/universe Translation-en [81.4 kB]
Get:27 http://jp.archive.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [10.7 kB]
Get:28 http://jp.archive.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [14.8 kB]
Get:29 http://jp.archive.ubuntu.com/ubuntu focal-security/multiverse Translation-en [3160 B]
Get:30 http://jp.archive.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [340 B]
Fetched 4139 kB in 1s (4278 kB/s) 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
156 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@xx1-234-56789:~$ 

【ログ】Ubuntu 20.04: apt list –upgradable

  • 実行コマンド:apt list –upgradable
  • 実行日 2021/04/09
  • 実行環境:Ubuntu 20.04
ubuntu@xx1-234-56789:~$ apt list --upgradable
Listing... Done
accountsservice/focal-updates 0.6.55-0ubuntu12~20.04.2 amd64 [upgradable from: 0.6.55-0ubuntu12~20.04.1]
alsa-ucm-conf/focal-updates 1.2.2-1ubuntu0.4 all [upgradable from: 1.2.2-1ubuntu0.1]
apport/focal-updates 2.20.11-0ubuntu27.10 all [upgradable from: 2.20.11-0ubuntu27.6]
base-files/focal-updates 11ubuntu5.2 amd64 [upgradable from: 11ubuntu5.1]
bcache-tools/focal-updates 1.0.8-3ubuntu0.1 amd64 [upgradable from: 1.0.8-3]
bind9-dnsutils/focal-updates 1:9.16.1-0ubuntu2.4 amd64 [upgradable from: 1:9.16.1-0ubuntu2.3]
bind9-host/focal-updates 1:9.16.1-0ubuntu2.4 amd64 [upgradable from: 1:9.16.1-0ubuntu2.3]
bind9-libs/focal-updates 1:9.16.1-0ubuntu2.4 amd64 [upgradable from: 1:9.16.1-0ubuntu2.3]
bolt/focal-updates 0.8-4ubuntu1 amd64 [upgradable from: 0.8-4]
bsdutils/focal-updates 1:2.34-0.1ubuntu9.1 amd64 [upgradable from: 1:2.34-0.1ubuntu9]
command-not-found/focal-updates 20.04.4 all [upgradable from: 20.04.2]
cryptsetup-bin/focal-updates 2:2.2.2-3ubuntu2.3 amd64 [upgradable from: 2:2.2.2-3ubuntu2.2]
cryptsetup-initramfs/focal-updates 2:2.2.2-3ubuntu2.3 all [upgradable from: 2:2.2.2-3ubuntu2.2]
cryptsetup-run/focal-updates 2:2.2.2-3ubuntu2.3 all [upgradable from: 2:2.2.2-3ubuntu2.2]
cryptsetup/focal-updates 2:2.2.2-3ubuntu2.3 amd64 [upgradable from: 2:2.2.2-3ubuntu2.2]
fdisk/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
finalrd/focal-updates 6~ubuntu20.04.1 all [upgradable from: 5]
initramfs-tools-bin/focal-updates 0.136ubuntu6.3 amd64 [upgradable from: 0.136ubuntu6.2]
initramfs-tools-core/focal-updates 0.136ubuntu6.3 all [upgradable from: 0.136ubuntu6.2]
initramfs-tools/focal-updates 0.136ubuntu6.3 all [upgradable from: 0.136ubuntu6.2]
language-selector-common/focal-updates 0.204.2 all [upgradable from: 0.204]
libaccountsservice0/focal-updates 0.6.55-0ubuntu12~20.04.2 amd64 [upgradable from: 0.6.55-0ubuntu12~20.04.1]
libasound2-data/focal-updates 1.2.2-2.1ubuntu2 all [upgradable from: 1.2.2-2.1ubuntu1]
libasound2/focal-updates 1.2.2-2.1ubuntu2 amd64 [upgradable from: 1.2.2-2.1ubuntu1]
libblkid1/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
libc-bin/focal-updates 2.31-0ubuntu9.1 amd64 [upgradable from: 2.31-0ubuntu9]
libc6/focal-updates 2.31-0ubuntu9.1 amd64 [upgradable from: 2.31-0ubuntu9]
libcryptsetup12/focal-updates 2:2.2.2-3ubuntu2.3 amd64 [upgradable from: 2:2.2.2-3ubuntu2.2]
libdns-export1109/focal-updates 1:9.11.16+dfsg-3~ubuntu1 amd64 [upgradable from: 1:9.11.16+dfsg-3~build1]
libfdisk1/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
libisc-export1105/focal-updates 1:9.11.16+dfsg-3~ubuntu1 amd64 [upgradable from: 1:9.11.16+dfsg-3~build1]
liblzma5/focal-updates 5.2.4-1ubuntu1 amd64 [upgradable from: 5.2.4-1]
libmount1/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
libnetplan0/focal-updates 0.100-0ubuntu4~20.04.2 amd64 [upgradable from: 0.99-0ubuntu3~20.04.2]
libpam-modules-bin/focal-updates 1.3.1-5ubuntu4.1 amd64 [upgradable from: 1.3.1-5ubuntu4]
libpam-modules/focal-updates 1.3.1-5ubuntu4.1 amd64 [upgradable from: 1.3.1-5ubuntu4]
libpam-runtime/focal-updates 1.3.1-5ubuntu4.1 all [upgradable from: 1.3.1-5ubuntu4]
libpam0g/focal-updates 1.3.1-5ubuntu4.1 amd64 [upgradable from: 1.3.1-5ubuntu4]
libplymouth5/focal-updates 0.9.4git20200323-0ubuntu6.1 amd64 [upgradable from: 0.9.4git20200323-0ubuntu6]
libsmartcols1/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
libuuid1/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
locales/focal-updates 2.31-0ubuntu9.1 all [upgradable from: 2.31-0ubuntu9]
mdadm/focal-updates 4.1-5ubuntu1.2 amd64 [upgradable from: 4.1-5ubuntu1]
mount/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
netplan.io/focal-updates 0.100-0ubuntu4~20.04.2 amd64 [upgradable from: 0.99-0ubuntu3~20.04.2]
open-vm-tools/focal-updates 2:11.1.5-1~ubuntu20.04.2 amd64 [upgradable from: 2:11.0.5-4]
plymouth-theme-ubuntu-text/focal-updates 0.9.4git20200323-0ubuntu6.1 amd64 [upgradable from: 0.9.4git20200323-0ubuntu6]
plymouth/focal-updates 0.9.4git20200323-0ubuntu6.1 amd64 [upgradable from: 0.9.4git20200323-0ubuntu6]
python3-apport/focal-updates 2.20.11-0ubuntu27.10 all [upgradable from: 2.20.11-0ubuntu27.6]
python3-commandnotfound/focal-updates 20.04.4 all [upgradable from: 20.04.2]
python3-distupgrade/focal-updates 1:20.04.28 all [upgradable from: 1:20.04.23]
python3-problem-report/focal-updates 2.20.11-0ubuntu27.10 all [upgradable from: 2.20.11-0ubuntu27.6]
rsyslog/focal-updates 8.2001.0-1ubuntu1.1 amd64 [upgradable from: 8.2001.0-1ubuntu1]
sosreport/focal-updates 4.0-1~ubuntu0.20.04.2 amd64 [upgradable from: 3.9.1-1ubuntu0.20.04.2]
sudo/focal-updates 1.8.31-1ubuntu1.1 amd64 [upgradable from: 1.8.31-1ubuntu1]
tmux/focal-updates 3.0a-2ubuntu0.1 amd64 [upgradable from: 3.0a-2]
ubuntu-minimal/focal-updates 1.450.2 amd64 [upgradable from: 1.450.1]
ubuntu-release-upgrader-core/focal-updates 1:20.04.28 all [upgradable from: 1:20.04.23]
ubuntu-server/focal-updates 1.450.2 amd64 [upgradable from: 1.450.1]
ubuntu-standard/focal-updates 1.450.2 amd64 [upgradable from: 1.450.1]
unattended-upgrades/focal-updates 2.3ubuntu0.1 all [upgradable from: 2.3]
util-linux/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
uuid-runtime/focal-updates 2.34-0.1ubuntu9.1 amd64 [upgradable from: 2.34-0.1ubuntu9]
xz-utils/focal-updates 5.2.4-1ubuntu1 amd64 [upgradable from: 5.2.4-1]
zlib1g/focal-updates 1:1.2.11.dfsg-2ubuntu1.1 amd64 [upgradable from: 1:1.2.11.dfsg-2ubuntu1]
ubuntu@xx1-234-56789:~$ 

【Ubuntu】sudo ユーザーを作成する方法

ユーザーの作成

root ユーザーに昇格します。

ubuntu@xx1-234-56789:~$ sudo su -

「adduser ユーザー名」でユーザーを作成します。

root@xx1-234-56789:~# adduser adminvps
Adding user `adminvps' ...
Adding new group `adminvps' (1002) ...
Adding new user `adminvps' (1002) with group `adminvps' ...
Creating home directory `/home/adminvps' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for adminvps
Enter the new value, or press ENTER for the default
	Full Name []: 
	Room Number []: 
	Work Phone []: 
	Home Phone []: 
	Other []: 
Is the information correct? [Y/n] Y
root@xx1-234-56789:~#

sudo グループに追加

このユーザーで sudo コマンドが使える様、sudo グループに追加します。

root@xx1-234-56789:~# gpasswd -a adminvps sudo
Adding user adminvps to group sudo
root@xx1-234-56789:~#

「exit」で root から出ます。

root@xx1-234-56789:~# exit
logout
ubuntu@xx1-234-56789:~$

今追加したユーザーで接続してみます。質問に「yes」と回答してパスワードを入力すると無事新ユーザーで接続ができます。

ubuntu@xx1-234-56789:~$ ssh adminvps@xx1-234-56789.vs.sakura.ne.jp
The authenticity of host '@xx1-234-56789 (127.0.1.1)' can't be established.
ECDSA key fingerprint is QWE123:QWERTYUIOPASD+QWERTYUIOP+ZXCVBNM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'xx1-234-56789' (ECDSA) to the list of known hosts.
adminvps@xx1-234-56789's password: 
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Fri Apr  9 19:43:32 JST 2021

  System load:  0.0               Processes:             119
  Usage of /:   2.6% of 94.43GB   Users logged in:       1
  Memory usage: 18%               IPv4 address for ens3: 133.125.39.81
  Swap usage:   0%

 * Introducing self-healing high availability clusters in MicroK8s.
   Simple, hardened, Kubernetes for production, from RaspberryPi to DC.

     https://microk8s.io/high-availability

0 updates can be installed immediately.
0 of these updates are security updates.



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.


SAKURA internet [Virtual Private Server SERVICE]

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

adminvps@xx1-234-56789:~$ 

Python の YouTube Data API v3 でチャンネル・動画情報を取得する方法

YouTube Data API v3 では、YouTube 上の様々な情報を取得する事ができます。こちらの記事では API キーの作成からチャンネル、動画情報の取得までを解説します。

  1. API キーの作成
  2. ライブラリのインストール
  3. API リクエストを試してみる
  4. 取得できる情報

1. API キーの作成

「認証情報」のタブを開きます。

「+認証情報を作成」をクリックし「API キー」を選択。

黒く塗りつぶしてますが、ここに API キーが表示されます。

2. ライブラリのインストール

仮想環境内で Google APIs Client Library for Python をインストールします。

コマンド「pip install –upgrade google-api-python-client」を実行します。

(sample_venv) % pip install --upgrade google-api-python-client
Collecting google-api-python-client
  Downloading https://files.pythonhosted.org/packages/b7/56/bc7314cd180d1420e4ef11202dc9548ec22237a0a6de1aaf37b460ee7753/google_api_python_client-2.0.2-py2.py3-none-any.whl (6.5MB)
     |████████████████████████████████| 6.5MB 9.0MB/s 
Collecting google-auth<2dev,>=1.16.0 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/b5/ef/13d3b65c41ddde1a57e89de6adfc610093d109ebd472545a33e76dcdd8bf/google_auth-1.28.0-py2.py3-none-any.whl (136kB)
     |████████████████████████████████| 143kB 10.8MB/s 
Collecting google-api-core<2dev,>=1.21.0 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/66/21/891884b4fe2eda194e5cdc9ea617b63ab41e0aca595c865492380e2c10b3/google_api_core-1.26.2-py2.py3-none-any.whl (93kB)
     |████████████████████████████████| 102kB 11.4MB/s 
Collecting httplib2<1dev,>=0.15.0 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/15/7e/51e5bd333c0afa1c7bdbf98eb3b0ccf5167e2b1ecc8b4d13e9cc29291f81/httplib2-0.19.0-py3-none-any.whl (95kB)
     |████████████████████████████████| 102kB 11.4MB/s 
Collecting uritemplate<4dev,>=3.0.0 (from google-api-python-client)
  Using cached https://files.pythonhosted.org/packages/bf/0c/60d82c077998feb631608dca3cc1fe19ac074e772bf0c24cf409b977b815/uritemplate-3.0.1-py2.py3-none-any.whl
Collecting google-auth-httplib2>=0.0.3 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/ba/db/721e2f3f32339080153995d16e46edc3a7657251f167ddcb9327e632783b/google_auth_httplib2-0.1.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: six<2dev,>=1.13.0 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from google-api-python-client) (1.15.0)
Collecting cachetools<5.0,>=2.0.0 (from google-auth<2dev,>=1.16.0->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/bb/72/8df2e0dc991f1a1d2c6869404e7622e8ee50d80bff357dbb57c3df70305b/cachetools-4.2.1-py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth<2dev,>=1.16.0->google-api-python-client)
  Using cached https://files.pythonhosted.org/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-none-any.whl
Collecting rsa<5,>=3.1.4; python_version >= "3.6" (from google-auth<2dev,>=1.16.0->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/e9/93/0c0f002031f18b53af7a6166103c02b9c0667be528944137cc954ec921b3/rsa-4.7.2-py3-none-any.whl
Requirement already satisfied, skipping upgrade: setuptools>=40.3.0 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from google-auth<2dev,>=1.16.0->google-api-python-client) (41.2.0)
Collecting packaging>=14.3 (from google-api-core<2dev,>=1.21.0->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB)
     |████████████████████████████████| 40kB 8.7MB/s 
Requirement already satisfied, skipping upgrade: requests<3.0.0dev,>=2.18.0 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client) (2.25.1)
Collecting googleapis-common-protos<2.0dev,>=1.6.0 (from google-api-core<2dev,>=1.21.0->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/55/08/796a6bc0b550e2b7116041c953d3d5100016abea106131d71e5651826e7b/googleapis_common_protos-1.53.0-py2.py3-none-any.whl (198kB)
     |████████████████████████████████| 204kB 11.0MB/s 
Collecting protobuf>=3.12.0 (from google-api-core<2dev,>=1.21.0->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/62/be/f610958bf64f2a64b6b0b3403d17564af53bbfad5dad69f69b164cca038d/protobuf-3.15.6-cp38-cp38-macosx_10_9_x86_64.whl (1.0MB)
     |████████████████████████████████| 1.0MB 10.8MB/s 
Requirement already satisfied, skipping upgrade: pytz in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from google-api-core<2dev,>=1.21.0->google-api-python-client) (2021.1)
Requirement already satisfied, skipping upgrade: pyparsing<3,>=2.4.2 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from httplib2<1dev,>=0.15.0->google-api-python-client) (2.4.7)
Collecting pyasn1<0.5.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<2dev,>=1.16.0->google-api-python-client)
  Using cached https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client) (2020.12.5)
Requirement already satisfied, skipping upgrade: chardet<5,>=3.0.2 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client) (4.0.0)
Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client) (1.26.4)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /Users/ユーザー名/PythonProjects/sample_venv/lib/python3.8/site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core<2dev,>=1.21.0->google-api-python-client) (2.10)
Installing collected packages: cachetools, pyasn1, pyasn1-modules, rsa, google-auth, packaging, protobuf, googleapis-common-protos, google-api-core, httplib2, uritemplate, google-auth-httplib2, google-api-python-client
Successfully installed cachetools-4.2.1 google-api-core-1.26.2 google-api-python-client-2.0.2 google-auth-1.28.0 google-auth-httplib2-0.1.0 googleapis-common-protos-1.53.0 httplib2-0.19.0 packaging-20.9 protobuf-3.15.6 pyasn1-0.4.8 pyasn1-modules-0.2.8 rsa-4.7.2 uritemplate-3.0.1
(sample_venv) %

3. API リクエストを試してみる

まずはブラウザの URL バーから

まずは Python 関係なく、単純にブラウザの URL バーに下記の URL を入れてみます。(APIキーはご自分のを入れてください)

https://youtube.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics&id=UC_x5XG1OV2P6uZZ5FSM9Ttw&key=APIキー

すると下記の JSON テキストが表示されました。ID「UC_x5XG1OV2P6uZZ5FSM9Ttw」の Google Developers チャンネルの情報が取れました。

Python での実行

同じことを Python でやろうとすると下記の様なコードになるそうです。(Google のサイト参照

import os

import googleapiclient.discovery

def main():
    # Disable OAuthlib's HTTPS verification when running locally.
    # *DO NOT* leave this option enabled in production.
    os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"

    api_service_name = "youtube"
    api_version = "v3"
    DEVELOPER_KEY = "API キー"

    youtube = googleapiclient.discovery.build(api_service_name, api_version, developerKey = DEVELOPER_KEY)

    request = youtube.channels().list( # channels().list
        part="snippet,contentDetails,statistics", # 取得したい情報の指定
        id="UC_x5XG1OV2P6uZZ5FSM9Ttw" # チャンネル ID を指定(複数も可)
    )
    response = request.execute()

    print(response)

if __name__ == "__main__":
    main()

「part」に渡しているのが取得するデータの種類です。この記事の最後に取得できる part のリストを載せておきます。

動画情報の場合は下記の通り。個人的に好きで見てた FF 7 リメイクのプレイ動画です。 動画ID「fdsaZ8EMR2U」で指定しています。

import os

import googleapiclient.discovery

def main():
    # Disable OAuthlib's HTTPS verification when running locally.
    # *DO NOT* leave this option enabled in production.
    os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"

    api_service_name = "youtube"
    api_version = "v3"
    DEVELOPER_KEY = "API キー"

    youtube = googleapiclient.discovery.build(
        api_service_name, api_version, developerKey = DEVELOPER_KEY)

    request = youtube.videos().list( # videos().list
        part="contentDetails", # 取得したい情報の指定
        id="fdsaZ8EMR2U" # 動画 ID を指定(複数も可)
    )
    response = request.execute()

    print(response)

if __name__ == "__main__":
    main()

動画情報の part の内下記は投稿主のみアクセスできるそうです。

  • fileDetails
  • processingDetails
  • suggestions

そして急上昇ランキングを取る場合はこう。動画 ID の指定は消して「chart=”mostPopular”」、「regionCode=”JP”」、「maxResults=50」 を追記します。

JP(日本)の mostPopular(急上昇ランキング)から 50 件のデータを取るという意味です。

import os

import googleapiclient.discovery

def main():
    # Disable OAuthlib's HTTPS verification when running locally.
    # *DO NOT* leave this option enabled in production.
    os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"

    api_service_name = "youtube"
    api_version = "v3"
    DEVELOPER_KEY = "API キー"

    youtube = googleapiclient.discovery.build(
        api_service_name, api_version, developerKey = DEVELOPER_KEY)

    request = youtube.videos().list(
        part="snippet,contentDetails,statistics", # 取得したい情報の指定
        chart="mostPopular", # chart に「mostPopular」を指定
        maxResults=50, # 最大件数
        regionCode="JP" # 地域コード
    )
    response = request.execute()

    print(response)

if __name__ == "__main__":
    main()

実行すると下記の様な内容の dict データが取れるはずです。(実際は整形されていない状態)

{
  "kind": "youtube#videoListResponse",
  "etag": "jUM1iWDvm5ncH7VdFCrks9TZYQY",
  "items": [
    {
      "kind": "youtube#video",
      "etag": "jtNs4gdyS4wCzxvZKpEA0GbXJ0M",
      "id": "GOBeIaj7Ml0",
      "snippet": {
        "publishedAt": "2021-03-27T11:00:43Z",
        "channelId": "UCpOjLndjOqMoffA-fr8cbKA",
        "title": "【コムドット】生意気な後輩YouTuberと学校貸し切って本気でドロケイした結果【アバ溜りドット】",
        "description": "まだまだ道は開けない!!\n\nアバンティーズ\nhttps://www.youtube.com/user/avntisdouga\n\nコムドット \nhttps://www.youtube.com/channel/UCRxPrFmRHsXGWfAyE6oqrPQ\n\nフォーエイト とのドロケイ動画はこちらです!\nhttps://youtu.be/cbrQUkl6iD8\n\n動画がいいなと思っていただけたら高評価押してください!再生数よりもこちらを参考にして動画を作りたい!!そして少しでも面白いなと思っていただけたらぜひ【チャンネル登録】お願いします!\n\n水溜りボンドLINE公式アカウント!\nhttps://lin.ee/cVkWzGW\n最新情報不定期配信中!僕らからのメッセージも届きますよ!\nぜひ友だち登録してください!\n\nしゃべる!水溜りボンドLINEスタンプ\nhttps://00m.in/AcJcI\n水溜りボンドLINEスタンプ\nhttps://00m.in/2mzGU\n水溜りボンドのグッズはこちら!\nhttps://muuu.com/users/c7bf52c2b9fb5c5a\nおすすめでございます!!\n\n6年間1度も休まず毎日投稿しておりました!これからも少しでもみなさんが楽しんでいただければ幸いです。\n\n\n\n☆水溜りボンドを初めて知った方に是非見ていただきたい動画はこちら!☆\nhttps://www.youtube.com/watch?v=BvRvt6Nxny8\n\n●水溜りボンドの日常!僕らのサブチャンネルです。毎日比較的ゆったりやってます〜\nhttps://www.youtube.com/channel/UCaTFX7ckdowpnwHWcJGH2KQ\n\n\n●水溜りボンドのオールナイトニッポン0の詳細はこちらから\nぜひフォローお願いいたします!!\nhttps://twitter.com/mizuann0\n●限定動画や専用の絵文字など。チャンネルメンバーシップはこちらから!\nhttps://www.youtube.com/channel/UCpOjLndjOqMoffA-fr8cbKA/join\n\n◆Twitter\nカンタのアカウント\nhttps://twitter.com/kantamizutamari\nトミーのアカウント\nhttps://twitter.com/miztamari_nikki\n\n■インスタグラム\nカンタのアカウント\nhttps://bit.ly/2UckzeP\nトミーのアカウント\nhttps://www.instagram.com/tommymizutamaribond/\nーーーーーー\nよく使用している友人のBGM作曲者さん↓\nhttps://twitter.com/gt_k_2014?lang=ja\n素材提供 Music-Note.jp(ミュージックノート)\n他の楽曲提供:Production Music by http://www.epidemicsound.com\n素材提供 PIXTA\n\n#水溜りボンド\n#ドロケイ\n#コムドット",
        "thumbnails": {
          "default": {
            "url": "https://i.ytimg.com/vi/GOBeIaj7Ml0/default.jpg",
            "width": 120,
            "height": 90
          },
          "medium": {
            "url": "https://i.ytimg.com/vi/GOBeIaj7Ml0/mqdefault.jpg",
            "width": 320,
            "height": 180
          },
          "high": {
            "url": "https://i.ytimg.com/vi/GOBeIaj7Ml0/hqdefault.jpg",
            "width": 480,
            "height": 360
          },
          "standard": {
            "url": "https://i.ytimg.com/vi/GOBeIaj7Ml0/sddefault.jpg",
            "width": 640,
            "height": 480
          },
          "maxres": {
            "url": "https://i.ytimg.com/vi/GOBeIaj7Ml0/maxresdefault.jpg",
            "width": 1280,
            "height": 720
          }
        },
        "channelTitle": "水溜りボンド",
        "tags": [
          "水溜りボンド",
          "都市伝説",
          "検証",
          "実験",
          "科学",
          "お笑い",
          "面白",
          "面白い",
          "企画",
          "楽しい",
          "ワクワク",
          "カンタ",
          "トミー"
        ],
        "categoryId": "24",
        "liveBroadcastContent": "none",
        "defaultLanguage": "ja",
        "localized": {
          "title": "【コムドット】生意気な後輩YouTuberと学校貸し切って本気でドロケイした結果【アバ溜りドット】",
          "description": "まだまだ道は開けない!!\n\nアバンティーズ\nhttps://www.youtube.com/user/avntisdouga\n\nコムドット \nhttps://www.youtube.com/channel/UCRxPrFmRHsXGWfAyE6oqrPQ\n\nフォーエイト とのドロケイ動画はこちらです!\nhttps://youtu.be/cbrQUkl6iD8\n\n動画がいいなと思っていただけたら高評価押してください!再生数よりもこちらを参考にして動画を作りたい!!そして少しでも面白いなと思っていただけたらぜひ【チャンネル登録】お願いします!\n\n水溜りボンドLINE公式アカウント!\nhttps://lin.ee/cVkWzGW\n最新情報不定期配信中!僕らからのメッセージも届きますよ!\nぜひ友だち登録してください!\n\nしゃべる!水溜りボンドLINEスタンプ\nhttps://00m.in/AcJcI\n水溜りボンドLINEスタンプ\nhttps://00m.in/2mzGU\n水溜りボンドのグッズはこちら!\nhttps://muuu.com/users/c7bf52c2b9fb5c5a\nおすすめでございます!!\n\n6年間1度も休まず毎日投稿しておりました!これからも少しでもみなさんが楽しんでいただければ幸いです。\n\n\n\n☆水溜りボンドを初めて知った方に是非見ていただきたい動画はこちら!☆\nhttps://www.youtube.com/watch?v=BvRvt6Nxny8\n\n●水溜りボンドの日常!僕らのサブチャンネルです。毎日比較的ゆったりやってます〜\nhttps://www.youtube.com/channel/UCaTFX7ckdowpnwHWcJGH2KQ\n\n\n●水溜りボンドのオールナイトニッポン0の詳細はこちらから\nぜひフォローお願いいたします!!\nhttps://twitter.com/mizuann0\n●限定動画や専用の絵文字など。チャンネルメンバーシップはこちらから!\nhttps://www.youtube.com/channel/UCpOjLndjOqMoffA-fr8cbKA/join\n\n◆Twitter\nカンタのアカウント\nhttps://twitter.com/kantamizutamari\nトミーのアカウント\nhttps://twitter.com/miztamari_nikki\n\n■インスタグラム\nカンタのアカウント\nhttps://bit.ly/2UckzeP\nトミーのアカウント\nhttps://www.instagram.com/tommymizutamaribond/\nーーーーーー\nよく使用している友人のBGM作曲者さん↓\nhttps://twitter.com/gt_k_2014?lang=ja\n素材提供 Music-Note.jp(ミュージックノート)\n他の楽曲提供:Production Music by http://www.epidemicsound.com\n素材提供 PIXTA\n\n#水溜りボンド\n#ドロケイ\n#コムドット"
        },
        "defaultAudioLanguage": "ja"
      },
      "contentDetails": {
        "duration": "PT23M58S",
        "dimension": "2d",
        "definition": "hd",
        "caption": "false",
        "licensedContent": true,
        "contentRating": {},
        "projection": "rectangular"
      },
      "statistics": {
        "viewCount": "337770",
        "likeCount": "17557",
        "dislikeCount": "544",
        "favoriteCount": "0",
        "commentCount": "1650"
      }
    },
 

4. 取得できる情報(part)

確認できた範囲で、どの part にどんな項目が含まれているのか書き出しておきます。

取得できるチャンネル情報

チャンネルの part ではチャンネル名(title)、チャンネル登録者数(subscriberCount)、投稿動画数(videoCount)など、チャンネル単位の情報が取得できます。

part 名称配下の項目
auditDetails投稿主のみアクセス可
brandingSettingschannel, image
contentDetailsrelatedPlaylists
contentOwnerDetails
idチャンネル ID
localizations
snippettitle, description, customUrl, publishedAt, thumbnails, localized, country
statisticsviewCount, subscriberCount, hiddenSubscriberCount, videoCount
statusprivacyStatus, isLinked, longUploadsStatus, madeForKids
topicDetailstopicIds, topicCategories

取得できる動画情報

動画の part では動画タイトル(title)、動画再生回数(viewCount)、いいね数(likeCount)など、 動画単位の情報が取得できます。

part 名称配下の項目
contentDetailsduration, dimension, definition, caption, licensedContent, contentRating, projection
fileDetails投稿主のみアクセス可
id動画 ID
liveStreamingDetailsactualStartTime, scheduledStartTime, concurrentViewers, activeLiveChatId
localizations
playerembedHtml
processingDetails投稿主のみアクセス可
recordingDetails
snippetpublishedAt, channelId, title, description, thumbnails, channelTitle, tags, categoryId, liveBroadcastContent, localized, defaultAudioLanguage
statisticsviewCount, likeCount, dislikeCount, favoriteCount, commentCount
statusuploadStatus, privacyStatus, license, embeddable, publicStatsViewable, madeForKids
suggestions投稿主のみアクセス可
topicDetailstopicCategories

チャンネル情報や動画情報をリクエストする際、一度に指定できる id の数は 50 までの様です。

Matplotlib で描画したグラフを SVG 化して Django で表示する方法

Django アプリケーション内で、データベースから取得したデータをグラフにして表示したいと思ったので方法を調べました。

ざっくりですが、取得した情報を元にグラフの SVG 画像を作成、そしてページに表出する方法を記載します。

  1. テンプレートに img タグを追加
  2. urls.py に URL ディスパッチャを追加
  3. views.py に SVG 描画の処理を追加

1. テンプレートに img タグを追加

テンプレートファイルのグラフを表示したい場所に img タグを追加し、URL 逆引きで URL ディスパッチャを呼び出します。

<img src="{% url 'sample_django_app:yt_trend_svg' %}">

今回は sample_django_app の yt_trend_svg というディスパッチャを呼び出しています。

2. urls.py に URL ディスパッチャを追加

urls.py の urlpatterns リストの中に下記を追加し、yt_trend_svg が呼び出されたら views.py の get_trend_svg 関数を呼び出す様設定しています。

path('chart/', views.get_trend_svg, name="yt_trend_svg"),

3. views.py に SVG 描画の処理を追加

ビューで get_trend_svg 関数を定義し、データの取得、グラフの作成、SVG への変換をして最後に HttpResponse を返します。

処理の流れは下記の通りです。

  1. URL ディスパッチャからget_trend_svg が呼び出される
  2. YtTrendChannel モデルからデータを取り出す
  3. x と y のリストを作成
  4. make_chart 関数に x と y を渡しグラフを作成
  5. convert_to_svg 関数でグラフを SVG に変換
  6. HttpResponse として SVG を返す
import io
from django.http import HttpResponse
import matplotlib
matplotlib.use('Agg') # Matplotlib の backend を指定
import matplotlib.pyplot as plt

# 1. ルーターから get_trend_svg が呼び出される
def get_trend_svg(request):
    
    def make_chart(x, y):
        # setting up plots
        plt.bar(x, y, color='#00d5ff')
        plt.title("My Chart", color='#3407ba')
        plt.xlabel("channel")
        plt.ylabel("views")

    def convert_to_svg():
        # convert the plots to SVG
        buffer = io.BytesIO() # バッファを作成
        plt.savefig(buffer, format='svg', bbox_inches='tight') # バッファに一時保存
        s = buffer.getvalue() # バッファの内容を s に渡す
        buffer.close() # バッファはクローズ
        return s # s を返す
    
    # 2. YtTrendChannel モデルからデータを取り出す
    channels = YtTrendChannel.objects.filter(data_date='20210104').order_by('channel_name')[:10]

    # 3. x と y のリストを作成
    x = [channel.channel_name for channel in channels]
    y = [int(channel.view_count) for channel in channels]

    # 4. make_chart 関数に x と y を渡しグラフを作成
    make_chart(x, y)

    svg = convert_to_svg() # 5. グラフを SVG に変換
    plt.cla()
    
    # 6. HttpResponse として SVG を返す
    return HttpResponse(svg, content_type='image/svg+xml')

convert_to_svg 関数の中でコメントを色々書いていますが、メモリ上に一時ファイルを保存できるため、実ファイルが作られなくて済むんだそうです。

すると下記の様にチャートが表示されます。表示がだいぶ崩れてますがこれは後ほど調整するということで。。。

【mac】PostgreSQL にテーブルを作って csv のデータを挿入した時のメモ

  1. テーブルの作成
  2. csv ファイルをテーブルに copy (insert)
  3. (ついでに)inspectdb でモデル情報を確認

1. テーブルの作成

ターミナルにコマンド「psql データベース名」を入力し対象のデータベースを開いて、別で書いておいた create 文のコピペで処理可能。最後に「;」をつけるのを忘れない様に気をつけてください。

下記の例では「yt_trend_channel」というテーブルを作りました。

sample_db=# create table yt_trend_channel (
channel_id varchar(30),
view_count varchar(20),
join_date varchar(20),
country varchar(20),
channel_name varchar(100),
thumbnail_url varchar(50),
subscriber_count varchar(20),
data_date varchar(8)
);

2. csv ファイルをテーブルに copy (insert)

csv ファイルを テーブルに copy します。

psql を起動する前に対象のファイルのディレクトリへ cd しておくと、単純にファイル名を渡すだけで済むのでわかりやすいです。

下記の例では先ほど create した yt_trend_channel テーブルに、別で用意した yt_trend_channel.csv という csv ファイルのデータを copy (insert) しています。

sample_db=# \copy yt_trend_channel from 'yt_trend_channel.csv' with csv
COPY 4259
sample_db=#

全部で 4259 件のレコードが copy されました。

select クエリで確認します。

sample_db=# select * from yt_trend_channel;
        channel_id        | view_count  | join_date  |    country     |                            channel_name                             |                   thumbnail_url                    | subscriber_count | data_date 
--------------------------+-------------+------------+----------------+---------------------------------------------------------------------+----------------------------------------------------+------------------+-----------
 UC9OvLVXb-okaVtoK9V8Biwg | 103499474   | 2018/05/23 | 日本           | ABEMA バラエティ【公式】                                            | https://yt3.ggpht.com/ytc/AAUvwnjBKC3y2KycvPfvHdn1 |  19.9万人        | 20210104
 UCZZ0UGjWsRdM8_5bsqtxYaQ | 190130764   | 2015/10/02 | 日本           | RIZIN FIGHTING FEDERATION                                           | https://yt3.ggpht.com/ytc/AAUvwnjDj0e-hS0um-ZKG1Tc |  35万人          | 20210104
 UCaminwG9MTO4sLYeC3s6udA | 3201321432  | 2016/03/18 | 日本           | ヒカル(Hikaru)                                                    | https://yt3.ggpht.com/ytc/AAUvwnhBYwfz6DycI4xBURsZ |  428万人         | 20210104
 UCPn_e-7LD7SbzIBxdU_XBnQ | 21113326    | 2020/07/30 | 日本           | あーたろチャンネル                                                  | https://yt3.ggpht.com/ytc/AAUvwngZDvNAYRF_qgPfOgy9 |  18.7万人        | 20210104
 UC4-TMrb7Mm4KnYx1VsUgcJA | 135489838   | 2012/08/04 | 日本           | あいり                                                              | https://yt3.ggpht.com/ytc/AAUvwngy1VncfSpEQkWmZXYK |  26.8万人        | 20210104

ちなみに MySQL の場合は下記の様な感じ

load data local infile  'yt_trend_channel.csv'
into table yt_trend_channel
fields terminated by ',' 
enclosed by '"'
;

3. (ついでに Django)inspectdb でモデル情報を確認

実はそもそも Django で使うテーブルなので「python manage.py inspectdb テーブル名」でモデル情報を確認してみます。

% python manage.py inspectdb yt_trend_channel
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Make sure each ForeignKey has `on_delete` set to the desired behavior.
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models


class YtTrendChannel(models.Model):
    channel_id = models.CharField(max_length=30, blank=True, null=True)
    view_count = models.CharField(max_length=20, blank=True, null=True)
    join_date = models.CharField(max_length=20, blank=True, null=True)
    country = models.CharField(max_length=20, blank=True, null=True)
    channel_name = models.CharField(max_length=100, blank=True, null=True)
    thumbnail_url = models.CharField(max_length=50, blank=True, null=True)
    subscriber_count = models.CharField(max_length=20, blank=True, null=True)
    data_date = models.CharField(max_length=8, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'yt_trend_channel'
% 

class 文を models.py にコピーすると Django でモデルとして使える様になります。その際に 1 つ「primary_key=True」のフィールドを持つ必要がありますので確認してください。

【Django】static ファイルの配置と設定

プロジェクト単位かアプリケーション単位かで若干ファイルの配置場所と設定方法が違いますが、まずは settings.py の INSTALLED_APPS に「’django.contrib.staticfiles’」の記述があることを確認します。

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles', # この記述があることを確認

    'sample_django_app.apps.SampleDjangoAppConfig'
]

プロジェクト単位で使う static の場合

プロジェクトフォルダ(manage.py がある階層)に「static」フォルダを作成し、ファイルを配置。

settings.py の「STATICFILES_DIRS」にフルパスを追加することで、Django が静的ファイルを検索する際の検索対象となります。

collectstatic コマンド実行時のファイル取得元にもなります。

STATICFILES_DIRS = [
    os.path.join(BASE_DIR,'static'),
]

アプリケーション単位で使う static の場合

アプリケーションフォルダ直下に「static/アプリケーション名」のフォルダを作成し、ファイルを配置。

settings.py に「STATIC_URL = ‘/static/’」の記述があることを確認。

STATIC_URL = '/static/'

参考情報

項目メモ
STATICFILES_DIRScollectstatic が静的ファイルを追加検索する対象のディレクトリ(特定のアプリケーションに属さないものが対象)
STATIC_ROOTcollectstatic 実行時に静的ファイルの集約先となるディレクトリ。下記STATIC_URL の参照先。
STATIC_URL公式ドキュメントには “URL to use when referring to static files located in STATIC_ROOT.“(STATIC_ROOT にある静的ファイルを参照する時に使う URL)とあるので、「STATIC_ROOT を表向きの URL としては何と表すか」という事だと理解しています。
参照:Django Documentation – Static Files

また、Django プロジェクト内の静的ファイルを探索するファイルファインダーと呼ばれる仕組みがあり、デフォルトでは下記2つが有効になっています。

  • FileSystemFinder – STATICFILES_DIRS で指定されたディレクトリを探索する
  • AppDirectoriesFinder – アプリケーションレベルの static ディレクトリを探索する

忘備録

アプリケーションレベルの static フォルダを作る際、お作法として直下にアプリケーション名のフォルダを作ってその中に静的ファイルを入れます。

例えば、「app_dir」というアプリケーションに対して「/js/app_script.js」というファイルを作る場合、「app_dir/static/app_name/js/app_script.js」となります。

本番環境で collectstatic コマンドを実行する際、下記の様に static ファイルがコピーされます。

そして、テンプレート上でアプリケーションレベルの静的ファイルを指定する時には「href=”{% static ‘app_name/css/style.css’ %}”」という様にアプリケーション名を合わせて指定することになります。

上記例のテンプレート変数「static」は表向きの URL としては STATIC_URL が紐付き、実際は STATIC_ROOT で指定したディレクトリを参照します。