Tag Archives: linux

Modify the name after @ in Linux

Change the name of Linux
When we use Linux with long names, it’s hard for our ocd patients to change
to the name they want.

vi /etc/hostname

Delete the contents and replace them with the name you want. If (Alice)
, save and exit.
, restart and you will find that the modification is complete

Ubuntu starts or restarts SSH service

To open SSH service, you first need to install the library to open SSH service:

sudo apt-get install openssh-server

Check the current SSH opening status:

ps -e |grep ssh

If SSHD is present, sSH-Server is already started. If there is only agent, it has not been started;
open SSH service:

/etc/init.d/ssh start

To start or want to restart SSH, modify the configuration and restart the SSH service:

vi /etc/ssh/sshd_config

Then you can see the configuration file and modify it according to the requirements.
restart SSH:

sudo /etc/init.d/ssh restart

UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-2: ordinal not in range(128)

UnicodeEncodeError: ‘ASCII’ Codec can’t encode characters in position 0-2: ordinal not in range(128
Solution:
(1) set the environment variable LANG
, modify ~/.profile file, and execute:

export LANG=“en_US.UTF-8” >> ~/.profile
source ~/.bash_profile

(2) Add UTF-8 to the Python execution command, execute:

export PYTHONIOENCODING=utf-8 >> ~/.bashrc
source ~/.bashrc

Transfer: https://www.cnblogs.com/beile/p/12980149.html

How to manually upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS, Part I

Today, we will introduce how to upgrade Ubuntu 16.04 LTS to 18.04 LTS manually. In order to facilitate the presentation to the friends, I specially prepared a virtual machine, and we will log in to the virtual machine first.

ubuntu@node9:~$ ssh node8
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1060-aws x86_64)

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

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

51 packages can be updated.
0 updates are security updates.

New release '18.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


*** System restart required ***
Last login: Fri Oct 19 19:10:33 2018 from 172.0.10.1
ubuntu@node8:~$ 

Next, we will give you a demonstration. First, we need to update the local apt repository index.


root@ecs-2046:~# sudo apt update
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease [107 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe Sources [7728 kB]
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main Translation-en [568 kB]
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe i386 Packages [7512 kB]
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Sources [323 kB]
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Sources [223 kB]
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 Packages [861 kB]
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main i386 Packages [772 kB]
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Translation-en [351 kB]
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe amd64 Packages [694 kB]
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages [636 kB]
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Translation-en [280 kB]
Get:20 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Sources [136 kB]
Get:21 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Sources [78.1 kB]
Get:22 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 Packages [569 kB]
Get:23 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 Packages [491 kB]
Get:24 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Translation-en [239 kB]
Get:25 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe amd64 Packages [391 kB]
Get:26 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe i386 Packages [339 kB]
Get:27 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Translation-en [149 kB]
Fetched 38.0 MB in 6s (6175 kB/s)                                                                                                                                                                                                            
Reading package lists... Done
Building dependency tree       
Reading state information... Done
132 packages can be upgraded. Run 'apt list --upgradable' to see them.

Then, we will use the command apt upgrade to complete the corresponding upgrade work.

root@ecs-2046:~# 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-4.4.0-87 linux-headers-4.4.0-87-generic linux-image-4.4.0-87-generic linux-image-extra-4.4.0-87-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  amd64-microcode intel-microcode iucode-tool linux-headers-4.4.0-137 linux-headers-4.4.0-137-generic linux-image-4.4.0-137-generic linux-image-extra-4.4.0-137-generic
The following packages will be upgraded:
  apparmor apt apt-transport-https apt-utils base-files bind9-host binutils bsdutils cpp-5 cups-bsd cups-client cups-common curl distro-info-data dnsutils file g++-5 gcc-5 gcc-5-base gnupg gpgv ifupdown initramfs-tools
  initramfs-tools-bin initramfs-tools-core iperf libapparmor-perl libapparmor1 libapt-inst2.0 libapt-pkg5.0 libarchive-zip-perl libarchive13 libasan2 libatomic1 libavahi-client3 libavahi-common-data libavahi-common3 libbind9-140
  libblkid1 libcc1-0 libcilkrts5 libcups2 libcupsfilters1 libcupsimage2 libcurl3-gnutls libdns-export162 libdns162 libdrm-common libdrm2 libdw1 libelf1 libfdisk1 libgcc-5-dev libgcrypt20 libglib2.0-0 libglib2.0-data libgomp1
  libisc-export160 libisc160 libisccc140 libisccfg140 libitm1 libjpeg-turbo8 libldap-2.4-2 liblsan0 liblwres141 libmagic1 libmount1 libmpx0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libperl5.22
  libplymouth4 libpng12-0 libpolkit-gobject-1-0 libprocps4 libquadmath0 librados2 librbd1 libslang2 libsmartcols1 libssl1.0.0 libstdc++-5-dev libstdc++6 libsystemd0 libtsan0 libubsan0 libudev1 libuuid1 libx11-6 libx11-data libxml2
  linux-base linux-firmware linux-generic linux-headers-generic linux-image-generic linux-libc-dev mount ntp openssh-client openssh-server openssh-sftp-server openssl patch perl perl-base perl-modules-5.22 plymouth
  plymouth-theme-ubuntu-text procps python-apt-common python3-apt python3-distupgrade python3-requests python3-update-manager python3-urllib3 shared-mime-info ssh systemd systemd-sysv tzdata ubuntu-release-upgrader-core udev
  update-manager-core util-linux uuid-runtime wget wireless-regdb
132 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 188 MB of archives.
After this operation, 331 MB of additional disk space will be used.
Do you want to continue?[Y/n] y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 base-files amd64 9.4ubuntu4.7 [65.9 kB]                                        
Get:138 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 python3-requests all 2.9.1-3ubuntu0.1 [55.8 kB]                                                                                                                   
Get:139 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 wireless-regdb all 2018.05.09-0ubuntu1~16.04.1 [11.7 kB]                                                                                                          
Fetched 188 MB in 8s (23.3 MB/s)                                                                                                                                                                                                           
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../base-files_9.4ubuntu4.7_amd64.deb ...
Unpacking base-files (9.4ubuntu4.7) over (9.4ubuntu4.6) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-117-generic
Setting up base-files (9.4ubuntu4.7) ...
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 ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-117-generic
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking bsdutils (1:2.27.1-6ubuntu3.6) over (1:2.27.1-6ubuntu3.5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up bsdutils (1:2.27.1-6ubuntu3.6) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../util-linux_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking util-linux (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up util-linux (2.27.1-6ubuntu3.6) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../mount_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking mount (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mount (2.27.1-6ubuntu3.6) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libperl5.22_5.22.1-9ubuntu0.5_amd64.deb ...
Unpacking libperl5.22:amd64 (5.22.1-9ubuntu0.5) over (5.22.1-9ubuntu0.2) ...
Preparing to unpack .../perl_5.22.1-9ubuntu0.5_amd64.deb ...
Unpacking perl (5.22.1-9ubuntu0.5) over (5.22.1-9ubuntu0.2) ...
Preparing to unpack .../perl-base_5.22.1-9ubuntu0.5_amd64.deb ...
Unpacking perl-base (5.22.1-9ubuntu0.5) over (5.22.1-9ubuntu0.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up perl-base (5.22.1-9ubuntu0.5) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../perl-modules-5.22_5.22.1-9ubuntu0.5_all.deb ...
Unpacking perl-modules-5.22 (5.22.1-9ubuntu0.5) over (5.22.1-9ubuntu0.2) ...
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../binutils_2.26.1-1ubuntu1~16.04.7_amd64.deb ...
Unpacking binutils (2.26.1-1ubuntu1~16.04.7) over (2.26.1-1ubuntu1~16.04.6) ...
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.2.27_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.2.27) over (1.2.26) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libapt-pkg5.0:amd64 (1.2.27) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.2.27_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.2.27) over (1.2.26) ...
Preparing to unpack .../archives/apt_1.2.27_amd64.deb ...
Unpacking apt (1.2.27) over (1.2.26) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apt (1.2.27) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.2.27_amd64.deb ...
Unpacking apt-utils (1.2.27) over (1.2.26) ...
Preparing to unpack .../gpgv_1.4.20-1ubuntu3.3_amd64.deb ...
Unpacking gpgv (1.4.20-1ubuntu3.3) over (1.4.20-1ubuntu3.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up gpgv (1.4.20-1ubuntu3.3) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../gnupg_1.4.20-1ubuntu3.3_amd64.deb ...
Unpacking gnupg (1.4.20-1ubuntu3.3) over (1.4.20-1ubuntu3.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up gnupg (1.4.20-1ubuntu3.3) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.1.8-3.2ubuntu2.1_amd64.deb ...
Unpacking libpam0g:amd64 (1.1.8-3.2ubuntu2.1) over (1.1.8-3.2ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libpam0g:amd64 (1.1.8-3.2ubuntu2.1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.1.8-3.2ubuntu2.1_amd64.deb ...
Unpacking libpam-modules-bin (1.1.8-3.2ubuntu2.1) over (1.1.8-3.2ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpam-modules-bin (1.1.8-3.2ubuntu2.1) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.1.8-3.2ubuntu2.1_amd64.deb ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Unpacking libpam-modules:amd64 (1.1.8-3.2ubuntu2.1) over (1.1.8-3.2ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpam-modules:amd64 (1.1.8-3.2ubuntu2.1) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libpam-runtime_1.1.8-3.2ubuntu2.1_all.deb ...
Unpacking libpam-runtime (1.1.8-3.2ubuntu2.1) over (1.1.8-3.2ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpam-runtime (1.1.8-3.2ubuntu2.1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking libuuid1:amd64 (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libuuid1:amd64 (2.27.1-6ubuntu3.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking libblkid1:amd64 (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libblkid1:amd64 (2.27.1-6ubuntu3.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libprocps4_2%3a3.3.10-4ubuntu2.4_amd64.deb ...
Unpacking libprocps4:amd64 (2:3.3.10-4ubuntu2.4) over (2:3.3.10-4ubuntu2.3) ...
Preparing to unpack .../procps_2%3a3.3.10-4ubuntu2.4_amd64.deb ...
Unpacking procps (2:3.3.10-4ubuntu2.4) over (2:3.3.10-4ubuntu2.3) ...
Preparing to unpack .../libsystemd0_229-4ubuntu21.4_amd64.deb ...
Unpacking libsystemd0:amd64 (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libsystemd0:amd64 (229-4ubuntu21.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_229-4ubuntu21.4_amd64.deb ...
Unpacking libpam-systemd:amd64 (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Preparing to unpack .../ifupdown_0.8.10ubuntu1.4_amd64.deb ...
Unpacking ifupdown (0.8.10ubuntu1.4) over (0.8.10ubuntu1.2) ...
Preparing to unpack .../systemd_229-4ubuntu21.4_amd64.deb ...
Unpacking systemd (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Setting up systemd (229-4ubuntu21.4) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../udev_229-4ubuntu21.4_amd64.deb ...
Unpacking udev (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Preparing to unpack .../libudev1_229-4ubuntu21.4_amd64.deb ...
Unpacking libudev1:amd64 (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libudev1:amd64 (229-4ubuntu21.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132834 files and directories currently installed.)
Preparing to unpack .../initramfs-tools_0.122ubuntu8.13_all.deb ...
Unpacking initramfs-tools (0.122ubuntu8.13) over (0.122ubuntu8.11) ...
Preparing to unpack .../initramfs-tools-core_0.122ubuntu8.13_all.deb ...
Unpacking initramfs-tools-core (0.122ubuntu8.13) over (0.122ubuntu8.11) ...
Preparing to unpack .../initramfs-tools-bin_0.122ubuntu8.13_amd64.deb ...
Unpacking initramfs-tools-bin (0.122ubuntu8.13) over (0.122ubuntu8.11) ...
Preparing to unpack .../linux-base_4.5ubuntu1~16.04.1_all.deb ...
Unpacking linux-base (4.5ubuntu1~16.04.1) over (4.0ubuntu1) ...
Preparing to unpack .../systemd-sysv_229-4ubuntu21.4_amd64.deb ...
Unpacking systemd-sysv (229-4ubuntu21.4) over (229-4ubuntu21.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-sysv (229-4ubuntu21.4) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking libapparmor1:amd64 (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libapparmor1:amd64 (2.10.95-0ubuntu2.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../libmount1_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking libmount1:amd64 (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libmount1:amd64 (2.27.1-6ubuntu3.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../libglib2.0-0_2.48.2-0ubuntu4.1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.48.2-0ubuntu4.1) over (2.48.2-0ubuntu1) ...
Preparing to unpack .../uuid-runtime_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking uuid-runtime (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Preparing to unpack .../libjpeg-turbo8_1.4.2-0ubuntu3.1_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.4.2-0ubuntu3.1) over (1.4.2-0ubuntu3) ...
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.13_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.13) over (1.0.2g-1ubuntu4.11) ...
Preparing to unpack .../ntp_1%3a4.2.8p4+dfsg-3ubuntu5.9_amd64.deb ...
Unpacking ntp (1:4.2.8p4+dfsg-3ubuntu5.9) over (1:4.2.8p4+dfsg-3ubuntu5.8) ...
Preparing to unpack .../openssh-sftp-server_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-sftp-server (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-server (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../openssh-client_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-client (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../ssh_1%3a7.2p2-4ubuntu2.5_all.deb ...
Unpacking ssh (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../libfdisk1_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking libfdisk1:amd64 (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up libfdisk1:amd64 (2.27.1-6ubuntu3.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../libgcrypt20_1.6.5-2ubuntu0.5_amd64.deb ...
Unpacking libgcrypt20:amd64 (1.6.5-2ubuntu0.5) over (1.6.5-2ubuntu0.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libgcrypt20:amd64 (1.6.5-2ubuntu0.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.27.1-6ubuntu3.6_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.27.1-6ubuntu3.6) over (2.27.1-6ubuntu3.5) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libsmartcols1:amd64 (2.27.1-6ubuntu3.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 132839 files and directories currently installed.)
Preparing to unpack .../tzdata_2018e-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2018e-0ubuntu0.16.04) over (2017c-0ubuntu0.16.04) ...
Preparing to unpack .../distro-info-data_0.28ubuntu0.8_all.deb ...
Unpacking distro-info-data (0.28ubuntu0.8) over (0.28ubuntu0.7) ...
Preparing to unpack .../file_1%3a5.25-2ubuntu1.1_amd64.deb ...
Unpacking file (1:5.25-2ubuntu1.1) over (1:5.25-2ubuntu1) ...
Preparing to unpack .../libmagic1_1%3a5.25-2ubuntu1.1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.25-2ubuntu1.1) over (1:5.25-2ubuntu1) ...
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.11_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.11) over (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.11_amd64.deb ...
Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.11) over (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) over (1.2.54-1ubuntu1) ...
Preparing to unpack .../libslang2_2.3.0-2ubuntu1.1_amd64.deb ...
Unpacking libslang2:amd64 (2.3.0-2ubuntu1.1) over (2.3.0-2ubuntu1) ...
Preparing to unpack .../libapparmor-perl_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking libapparmor-perl (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Preparing to unpack .../apparmor_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking apparmor (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Preparing to unpack .../curl_7.47.0-1ubuntu2.9_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.9) over (7.47.0-1ubuntu2.7) ...
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.3_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.3) over (2.4.42+dfsg-2ubuntu3.2) ...
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.9_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.9) over (7.47.0-1ubuntu2.7) ...
Preparing to unpack .../apt-transport-https_1.2.27_amd64.deb ...
Unpacking apt-transport-https (1.2.27) over (1.2.26) ...
Preparing to unpack .../libxml2_2.9.3+dfsg1-1ubuntu0.6_amd64.deb ...
Preparing to unpack .../linux-firmware_1.157.20_all.deb ...
Unpacking linux-firmware (1.157.20) over (1.157.17) ...
Selecting previously unselected package linux-image-4.4.0-137-generic.
Preparing to unpack .../linux-image-4.4.0-137-generic_4.4.0-137.163_amd64.deb ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Done.
Unpacking linux-image-4.4.0-137-generic (4.4.0-137.163) ...
Selecting previously unselected package linux-image-extra-4.4.0-137-generic.
Preparing to unpack .../linux-image-extra-4.4.0-137-generic_4.4.0-137.163_amd64.deb ...
Unpacking linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
Selecting previously unselected package intel-microcode.
Preparing to unpack .../intel-microcode_3.20180807a.0ubuntu0.16.04.1_amd64.deb ...
Unpacking intel-microcode (3.20180807a.0ubuntu0.16.04.1) ...
Selecting previously unselected package amd64-microcode.
Preparing to unpack .../amd64-microcode_3.20180524.1~ubuntu0.16.04.2_amd64.deb ...
Unpacking amd64-microcode (3.20180524.1~ubuntu0.16.04.2) ...
Preparing to unpack .../linux-generic_4.4.0.137.143_amd64.deb ...
Unpacking linux-generic (4.4.0.137.143) over (4.4.0.117.123) ...
Preparing to unpack .../linux-image-generic_4.4.0.137.143_amd64.deb ...
Unpacking linux-image-generic (4.4.0.137.143) over (4.4.0.117.123) ...
Selecting previously unselected package linux-headers-4.4.0-137.
Preparing to unpack .../linux-headers-4.4.0-137_4.4.0-137.163_all.deb ...
Unpacking linux-headers-4.4.0-137 (4.4.0-137.163) ...
Selecting previously unselected package linux-headers-4.4.0-137-generic.
Preparing to unpack .../linux-headers-4.4.0-137-generic_4.4.0-137.163_amd64.deb ...
Unpacking linux-headers-4.4.0-137-generic (4.4.0-137.163) ...
Preparing to unpack .../linux-headers-generic_4.4.0.137.143_amd64.deb ...
Unpacking linux-headers-generic (4.4.0.137.143) over (4.4.0.117.123) ...
Preparing to unpack .../linux-libc-dev_4.4.0-137.163_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.4.0-137.163) over (4.4.0-120.144) ...
Preparing to unpack .../patch_2.7.5-1ubuntu0.16.04.1_amd64.deb ...
Unpacking patch (2.7.5-1ubuntu0.16.04.1) over (2.7.5-1) ...
Preparing to unpack .../python3-urllib3_1.13.1-2ubuntu0.16.04.2_all.deb ...
Unpacking python3-urllib3 (1.13.1-2ubuntu0.16.04.2) over (1.13.1-2ubuntu0.16.04.1) ...
Preparing to unpack .../python3-requests_2.9.1-3ubuntu0.1_all.deb ...
Unpacking python3-requests (2.9.1-3ubuntu0.1) over (2.9.1-3) ...
Preparing to unpack .../wireless-regdb_2018.05.09-0ubuntu1~16.04.1_all.deb ...
Unpacking wireless-regdb (2018.05.09-0ubuntu1~16.04.1) over (2015.07.20-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up perl-modules-5.22 (5.22.1-9ubuntu0.5) ...
Setting up libperl5.22:amd64 (5.22.1-9ubuntu0.5) ...
Setting up perl (5.22.1-9ubuntu0.5) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up binutils (2.26.1-1ubuntu1~16.04.7) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libapt-inst2.0:amd64 (1.2.27) ...
Setting up apt-utils (1.2.27) ...
Setting up libprocps4:amd64 (2:3.3.10-4ubuntu2.4) ...
Setting up procps (2:3.3.10-4ubuntu2.4) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libpam-systemd:amd64 (229-4ubuntu21.4) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up ifupdown (0.8.10ubuntu1.4) ...
Setting up udev (229-4ubuntu21.4) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Setting up initramfs-tools-bin (0.122ubuntu8.13) ...
Setting up initramfs-tools-core (0.122ubuntu8.13) ...
Setting up linux-base (4.5ubuntu1~16.04.1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up libglib2.0-0:amd64 (2.48.2-0ubuntu4.1) ...
No schema files found: doing nothing.
Setting up uuid-runtime (2.27.1-6ubuntu3.6) ...
Setting up libjpeg-turbo8:amd64 (1.4.2-0ubuntu3.1) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.13) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up ntp (1:4.2.8p4+dfsg-3ubuntu5.9) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.5) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.5) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.5) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:YUqqlp+zUxUXGrCLPNEouMutwiMz5f75nEds7q2OtCQ root@ecs-2046 (ED25519)
Setting up ssh (1:7.2p2-4ubuntu2.5) ...
Setting up tzdata (2018e-0ubuntu0.16.04) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Current default time zone: 'Asia/Shanghai'
Local time is now:      Fri Oct 19 19:11:07 CST 2018.
Universal Time is now:  Fri Oct 19 11:11:07 UTC 2018.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up distro-info-data (0.28ubuntu0.8) ...
Setting up libmagic1:amd64 (1:5.25-2ubuntu1.1) ...
Setting up file (1:5.25-2ubuntu1.1) ...
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
Setting up libslang2:amd64 (2.3.0-2ubuntu1.1) ...
Setting up libapparmor-perl (2.10.95-0ubuntu2.10) ...
Setting up apparmor (2.10.95-0ubuntu2.10) ...
Installing new version of config file /etc/apparmor.d/abstractions/private-files ...
Installing new version of config file /etc/apparmor.d/abstractions/private-files-strict ...
Installing new version of config file /etc/apparmor.d/abstractions/ubuntu-browsers.d/user-files ...
locale: Cannot set LC_ALL to default locale: No such file or directory
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.3) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.9) ...
Setting up curl (7.47.0-1ubuntu2.9) ...
Setting up apt-transport-https (1.2.27) ...
Setting up libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.6) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.11) ...
Setting up libdrm-common (2.4.91-2~16.04.1) ...
Setting up libdrm2:amd64 (2.4.91-2~16.04.1) ...
Setting up libelf1:amd64 (0.165-3ubuntu1.1) ...
Setting up libdw1:amd64 (0.165-3ubuntu1.1) ...
Setting up libglib2.0-data (2.48.2-0ubuntu4.1) ...
Setting up libplymouth4:amd64 (0.9.2-3ubuntu13.5) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-14.1ubuntu0.1) ...
Setting up libx11-data (2:1.6.3-1ubuntu2.1) ...
Setting up libx11-6:amd64 (2:1.6.3-1ubuntu2.1) ...
Setting up openssl (1.0.2g-1ubuntu4.13) ...
Setting up plymouth (0.9.2-3ubuntu13.5) ...
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 plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.5) ...
update-initramfs: deferring update (trigger activated)
Setting up python-apt-common (1.1.0~beta1ubuntu0.16.04.2) ...
Setting up python3-apt (1.1.0~beta1ubuntu0.16.04.2) ...
Setting up shared-mime-info (1.5-2ubuntu0.2) ...
Setting up wget (1.17.1-1ubuntu1.4) ...
Setting up libavahi-common-data:amd64 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libavahi-common3:amd64 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libavahi-client3:amd64 (0.6.32~rc+dfsg-1ubuntu2.2) ...
Setting up libcups2:amd64 (2.1.3-4ubuntu0.5) ...
Setting up libcupsfilters1:amd64 (1.8.3-2ubuntu3.4) ...
Setting up libcupsimage2:amd64 (2.1.3-4ubuntu0.5) ...
Setting up cups-common (2.1.3-4ubuntu0.5) ...
Setting up cups-client (2.1.3-4ubuntu0.5) ...
Setting up cups-bsd (2.1.3-4ubuntu0.5) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up iperf (2.0.5+dfsg1-2ubuntu0.1) ...
Setting up iucode-tool (1.5.1-1ubuntu0.1) ...
Setting up libarchive-zip-perl (1.56-2ubuntu0.1) ...
Setting up libarchive13:amd64 (3.1.2-11ubuntu0.16.04.4) ...
Setting up librados2 (10.2.10-0ubuntu0.16.04.1) ...
Setting up librbd1 (10.2.10-0ubuntu0.16.04.1) ...
Setting up linux-firmware (1.157.20) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-117-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-116-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic
Setting up linux-image-4.4.0-137-generic (4.4.0-137.163) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-117-generic
Found initrd image: /boot/initrd.img-4.4.0-117-generic
Found linux image: /boot/vmlinuz-4.4.0-116-generic
Found initrd image: /boot/initrd.img-4.4.0-116-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
done
Setting up linux-image-extra-4.4.0-137-generic (4.4.0-137.163) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-137-generic /boot/vmlinuz-4.4.0-137-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-137-generic
Found initrd image: /boot/initrd.img-4.4.0-137-generic
Found linux image: /boot/vmlinuz-4.4.0-117-generic
Found initrd image: /boot/initrd.img-4.4.0-117-generic
Found linux image: /boot/vmlinuz-4.4.0-116-generic
Found initrd image: /boot/initrd.img-4.4.0-116-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
done
Setting up intel-microcode (3.20180807a.0ubuntu0.16.04.1) ...
update-initramfs: deferring update (trigger activated)
intel-microcode: microcode will be updated at next boot
Setting up amd64-microcode (3.20180524.1~ubuntu0.16.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Setting up linux-image-generic (4.4.0.137.143) ...
Setting up linux-headers-4.4.0-137 (4.4.0-137.163) ...
Setting up linux-headers-4.4.0-137-generic (4.4.0-137.163) ...
Setting up linux-headers-generic (4.4.0.137.143) ...
Setting up linux-generic (4.4.0.137.143) ...
Setting up linux-libc-dev:amd64 (4.4.0-137.163) ...
Setting up patch (2.7.5-1ubuntu0.16.04.1) ...
Setting up python3-urllib3 (1.13.1-2ubuntu0.16.04.2) ...
Setting up python3-requests (2.9.1-3ubuntu0.1) ...
Setting up wireless-regdb (2018.05.09-0ubuntu1~16.04.1) ...
Setting up python3-distupgrade (1:16.04.25) ...
Setting up python3-update-manager (1:16.04.14) ...
Setting up ubuntu-release-upgrader-core (1:16.04.25) ...
Setting up update-manager-core (1:16.04.14) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
root@ecs-2046:~# sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                                                                                                                                                                                         
Get:2 Upgrade tool [1260 kB]                                                                                                                                                                                                                 
Fetched 1261 kB in 0s (0 B/s)                                                                                                                                                                                                                
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg' 
extracting 'bionic.tar.gz'

Reading cache

Checking package manager

Continue running under SSH?

This session appears to be running under ssh. It is not recommended 
to perform a upgrade over ssh currently because in case of failure it 
is harder to recover. 

If you continue, an additional ssh daemon will be started at port 
'1022'. 
Do you want to continue?

Continue [yN] y

Starting additional sshd 

To make recovery in case of failure easier, an additional sshd will 
be started on port '1022'. If anything goes wrong with the running 
ssh you can still connect to the additional one. 
If you run a firewall, you may need to temporarily open this port. As 
this is potentially dangerous it's not done automatically. You can 
open the port with e.g.: 
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' 

To continue please press [ENTER]

Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease                                                                                                                                                                                
Hit http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease                                                                                                                                                                        
Hit http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease                                                                                                                                                                       
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                                                    
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Updating repository information

No valid mirror found 

While scanning your repository information no mirror entry for the 
upgrade was found. This can happen if you run an internal mirror or 
if the mirror information is out of date. 

Do you want to rewrite your 'sources.list' file anyway?If you choose 
'Yes' here it will update all 'xenial' to 'bionic' entries. 
If you select 'No' the upgrade will cancel. 

Continue [yN] y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu bionic InRelease [242 kB]                                                                                                                                                                     
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                                                                                                            
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security InRelease [83.2 kB]                                                                                                                                                           
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main Sources [829 kB]                                                                                                                                                                  
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/universe Sources [9051 kB]                                                                                                                                                             
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main amd64 Packages [1019 kB]                                                                                                                                                          
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main i386 Packages [1007 kB]                                                                                                                                                           
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main Translation-en [516 kB]                                                                                                                                                           
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/universe amd64 Packages [8570 kB]                                                                                                                                                      
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/universe i386 Packages [8531 kB]                                                                                                                                                      
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/universe Translation-en [4941 kB]                                                                                                                                                     
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/main Sources [200 kB]                                                                                                                                                         
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/universe Sources [90.4 kB]                                                                                                                                                    
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/main amd64 Packages [406 kB]                                                                                                                                                  
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/main i386 Packages [366 kB]                                                                                                                                                   
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/main Translation-en [152 kB]                                                                                                                                                  
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/universe amd64 Packages [565 kB]                                                                                                                                              
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/universe i386 Packages [560 kB]                                                                                                                                               
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates/universe Translation-en [148 kB]                                                                                                                                              
Get:20 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/main Sources [53.8 kB]                                                                                                                                                       
Get:21 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/universe Sources [20.9 kB]                                                                                                                                                   
Get:22 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/main amd64 Packages [184 kB]                                                                                                                                                 
Get:23 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/main i386 Packages [147 kB]                                                                                                                                                  
Get:24 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/main Translation-en [71.9 kB]                                                                                                                                                
Get:25 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/universe amd64 Packages [89.0 kB]                                                                                                                                            
Get:26 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/universe i386 Packages [89.0 kB]                                                                                                                                             
Get:27 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security/universe Translation-en [48.5 kB]                                                                                                                                            
Fetched 38.1 MB in 6s (6317 kB/s)                                                                                                                                                                                                            

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

Calculating the changes

Calculating the changes

Do you want to start the upgrade?


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

3 packages are going to be removed. 133 new packages are going to be 
installed. 452 packages are going to be upgraded. 

You have to download a total of 362 M. This download will take about 
57 seconds with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d]y

Fetching
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/universe amd64 nscd amd64 2.27-3ubuntu1 [78.1 kB]                                                                                                                                      
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main amd64 locales all 2.27-3ubuntu1 [3612 kB]                                                                                                                                         
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main amd64 libc6 amd64 2.27-3ubuntu1 [2824 kB]                                                                                                                                         
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu bionic/main i386 libc6 i386 2.27-3ubuntu1 [2551 kB]                                                                                                                                        
                                                                       
Fetched 362 MB in 6s (14.7 MB/s)                                                                                                                                                                                                             

Upgrading
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                                                    
  MarkInstall libc6 [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=1
    MarkInstall locales [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
    Installing libc-bin as Depends of locales
      MarkInstall libc-bin [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
    MarkInstall nscd [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( universe/admin ) FU=0
    MarkInstall libc6 [ i386 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done

Upgrading
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                                                
Preconfiguring packages ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_MONETARY = "zh_CN.UTF-8",
	LC_ADDRESS = "zh_CN.UTF-8",
	LC_TELEPHONE = "zh_CN.UTF-8",
	LC_NAME = "zh_CN.UTF-8",
	LC_MEASUREMENT = "zh_CN.UTF-8",
	LC_IDENTIFICATION = "zh_CN.UTF-8",
	LC_NUMERIC = "zh_CN.UTF-8",
	LC_PAPER = "zh_CN.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 165450 files and directories currently installed.)
Preparing to unpack .../libc-dev-bin_2.27-3ubuntu1_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [  5%]
Preparing to unpack .../libc6-dev_2.27-3ubuntu1_amd64.deb ...

Progress: [ 11%]
Unpacking libc6-dev:amd64 (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 16%]
Preparing to unpack .../locales_2.27-3ubuntu1_all.deb ...
Unpacking locales (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 22%]
Preparing to unpack .../nscd_2.27-3ubuntu1_amd64.deb ...

Progress: [ 27%]
Unpacking nscd (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 33%]
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
De-configuring libc6:i386 (2.23-0ubuntu10) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Unpacking libc6:amd64 (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 38%]
Preparing to unpack .../libc6_2.27-3ubuntu1_i386.deb ...

Progress: [ 44%]
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Unpacking libc6:i386 (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 50%]
Preparing to unpack .../libc-bin_2.27-3ubuntu1_amd64.deb ...
Unpacking libc-bin (2.27-3ubuntu1) over (2.23-0ubuntu10) ...

Progress: [ 55%]
Setting up libc6:amd64 (2.27-3ubuntu1) ...
Installing new version of config file /etc/ld.so.conf.d/x86_64-linux-gnu.conf ...

Progress: [ 61%]
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Setting up libc6:i386 (2.27-3ubuntu1) ...
Installing new version of config file /etc/ld.so.conf.d/i386-linux-gnu.conf ...

Progress: [ 66%]
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Setting up libc-bin (2.27-3ubuntu1) ...

Progress: [ 72%]
Setting up libc-dev-bin (2.27-3ubuntu1) ...

Progress: [ 77%]
Setting up libc6-dev:amd64 (2.27-3ubuntu1) ...

Progress: [ 83%]
Setting up locales (2.27-3ubuntu1) ...
Installing new version of config file /etc/locale.alias ...

Progress: [ 88%]
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
Setting up nscd (2.27-3ubuntu1) ...
Installing new version of config file /etc/init.d/nscd ...

Progress: [ 94%]
insserv: warning: current start runlevel(s) (empty) of script `nscd' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `nscd' overrides LSB defaults (0 1 6).
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for man-db (2.7.5-1) ...
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Calculating the changes

Calculating the changes

Upgrading
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                                                    
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_MONETARY = "zh_CN.UTF-8",
	LC_ADDRESS = "zh_CN.UTF-8",
	LC_TELEPHONE = "zh_CN.UTF-8",
	LC_NAME = "zh_CN.UTF-8",
	LC_MEASUREMENT = "zh_CN.UTF-8",
	LC_IDENTIFICATION = "zh_CN.UTF-8",
	LC_NUMERIC = "zh_CN.UTF-8",
	LC_PAPER = "zh_CN.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 165528 files and directories currently installed.)
Preparing to unpack .../base-files_10.1ubuntu2.3_amd64.deb ...
Unpacking base-files (10.1ubuntu2.3) over (9.4ubuntu4.7) ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.5) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
Setting up base-files (10.1ubuntu2.3) ...
Installing new version of config file /etc/debian_version ...
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 ...
Updating /etc/profile to current default.
motd-news.service is a disabled or a static unit, not starting it.
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.5) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
(Reading database ... 165535 files and directories currently installed.)
Preparing to unpack .../debianutils_4.8.4_amd64.deb ...
Unpacking debianutils (4.8.4) over (4.7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up debianutils (4.8.4) ...
(Reading database ... 165535 files and directories currently installed.)
Preparing to unpack .../bash_4.4.18-2ubuntu1_amd64.deb ...
Unpacking bash (4.4.18-2ubuntu1) over (4.3-14ubuntu1.2) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up bash (4.4.18-2ubuntu1) ...
Installing new version of config file /etc/bash.bashrc ...
Installing new version of config file /etc/skel/.profile ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
(Reading database ... 165535 files and directories currently installed.)
Preparing to unpack .../libbsd0_0.8.7-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.8.7-1) over (0.8.2-1) ...
Preparing to unpack .../libtinfo5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo5:amd64 (6.1-1ubuntu1.18.04) over (6.0+20160213-1ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libtinfo5:amd64 (6.1-1ubuntu1.18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 165536 files and directories currently installed.)
Preparing to unpack .../libncurses5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncurses5:amd64 (6.1-1ubuntu1.18.04) over (6.0+20160213-1ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libncurses5:amd64 (6.1-1ubuntu1.18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 165536 files and directories currently installed.)
Preparing to unpack .../libncursesw5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncursesw5:amd64 (6.1-1ubuntu1.18.04) over (6.0+20160213-1ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libncursesw5:amd64 (6.1-1ubuntu1.18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 165536 files and directories currently installed.)
Preparing to unpack .../ncurses-bin_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking ncurses-bin (6.1-1ubuntu1.18.04) over (6.0+20160213-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up ncurses-bin (6.1-1ubuntu1.18.04) ...
(Reading database ... 165537 files and directories currently installed.)
Preparing to unpack .../bsdmainutils_11.1.2ubuntu1_amd64.deb ...
Unpacking bsdmainutils (11.1.2ubuntu1) over (9.0.6ubuntu3) ...
Preparing to unpack .../bsdutils_1%3a2.31.1-0.4ubuntu3.2_amd64.deb ...
Unpacking bsdutils (1:2.31.1-0.4ubuntu3.2) over (1:2.27.1-6ubuntu3.6) ...
Setting up bsdutils (1:2.31.1-0.4ubuntu3.2) ...
(Reading database ... 165541 files and directories currently installed.)
Preparing to unpack .../coreutils_8.28-1ubuntu1_amd64.deb ...
Unpacking coreutils (8.28-1ubuntu1) over (8.25-2ubuntu3~16.04) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up coreutils (8.28-1ubuntu1) ...
(Reading database ... 165543 files and directories currently installed.)
Preparing to unpack .../liblzma5_5.2.2-1.3_amd64.deb ...
Unpacking liblzma5:amd64 (5.2.2-1.3) over (5.1.1alpha+20120614-2ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up liblzma5:amd64 (5.2.2-1.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libzstd1:amd64.
(Reading database ... 165543 files and directories currently installed.)
Preparing to unpack .../libzstd1_1.3.3+dfsg-2ubuntu1_amd64.deb ...
Unpacking libzstd1:amd64 (1.3.3+dfsg-2ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libzstd1:amd64 (1.3.3+dfsg-2ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 165548 files and directories currently installed.)
Preparing to unpack .../debconf-i18n_1.5.66_all.deb ...
Unpacking debconf-i18n (1.5.66) over (1.5.58ubuntu1) ...
Preparing to unpack .../debconf_1.5.66_all.deb ...
Unpacking debconf (1.5.66) over (1.5.58ubuntu1) ...
Setting up debconf (1.5.66) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: libperl5.22:amd64: dependency problems, but removing anyway as you requested:
 perl depends on libperl5.22 (= 5.22.1-9ubuntu0.5).

(Reading database ... 165546 files and directories currently installed.)
Removing libperl5.22:amd64 (5.22.1-9ubuntu0.5) ...
dpkg: perl-modules-5.22: dependency problems, but removing anyway as you requested:
 perl depends on perl-modules-5.22 (>= 5.22.1-9ubuntu0.5).

Removing perl-modules-5.22 (5.22.1-9ubuntu0.5) ...
dpkg: man-db: dependency problems, but processing triggers anyway as you requested:
 man-db depends on bsdmainutils; however:
  Package bsdmainutils is not configured yet.

Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(Reading database ... 163848 files and directories currently installed.)
Preparing to unpack .../libmagic1_1%3a5.32-2ubuntu0.1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.32-2ubuntu0.1) over (1:5.25-2ubuntu1.1) ...
Selecting previously unselected package libmagic-mgc.
Prepar

Error analysis of swap file “*. SWP” already exists! When editing files with VIM

When editing a file with VIM, exit the terminal in time out, or close the terminal directly without quitting, resulting in an abnormal exit scenario. The following error will be reported when editing again:
E325: ATTENTION
Found a swap file by the name “.test.txt. SWP “
owned by: root dated: Thu Jun 27 14:38:06 2019
file name: ~root/test.txt
modified: YES
user name: root host name: VMcentos
process ID: 20994
While opening file “test.txt”
dated: Thu Jun 27 13:42:52 2019
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit,
(2) An edit session for this file comedown.
If this is the case,
to recover (see “:help recovery”).
If you did this already, delete the swap file “.test.txp “
to avoid this message.
Swap file “.test.txt.swp” already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
Use LL-A command to check, there is indeed a hidden file, originally when editing the file, the system will copy a temporary file. Test.txt.swap, also will edit this file, the temporary file will be written to the official file when executing: W, the temporary file will be deleted when executing: Q.
Solutions:
Delete the file.test.txt.swap, rm.test.txt.swap

Box mount Cody_ How to listen to Pandora in Cody

Box mount Cody

Sometimes you just want to fire up Pandora on your stereo, without having to plug in your phone or enable Bluetooth. If you’re a Kodi user, You’ve probably wondered if there’s a Pandora addon for your home theater PC.
Sometimes, you just want to launch Pandora on stereo without having to plug in your phone or enable Bluetooth. If you are a Kodi user, you may want to know if your home theater PC has a Pandora add-on.
Sadly, there isn’t one in the official Repository. But that doesn’t mean you can’t use Pandora in Kodi: based on what is important and based on what is important. It just means you need to do some digging. An addon named Pandoki does the job admirably. Here’s how to set it up.
Unfortunately, none of the official repositories exist. But that doesn’t mean you can’t use Pandora in Kodi: it just means you need to do some digging. An add-on called Pandoki does this job nicely. The setup is as follows.
How to Install Pandoki in Kodi
First, head to this Thread on the Official Kodi Forum and download the “Repo Download”, so you can get Automatic Updates later. Next, Open Kodi and Head to Settings > Addons, and make sure that “Unknown Sources” is enabled.
First, visit the topic at the official Kodi forum and download a “buyback download” so that it can be automatically updated later. Next, open Kodi and go to Settings & GT; “Add-ons” and make sure unknown Sources are enabled.

With that done, we can head to Addons on the home screen, then select “Install from zip file.”
Once this is done, we can go to the plug-in on the home screen and select install from zip file.

Browse your hard drive until you find the ZIP file you downloaded earlier, then select it.
Browse the hard drive until you find the ZIP file you downloaded earlier, then select it.

Wait for the Repository to install, then head to “install from repository.”
Wait for the repository to install, then go to “Install from the repository.” ”

The plugin you’re looking for is in The “gominoa” repository, which you just installed. You’ll find it under “Music addons.”
The plug-in you are looking for is located in the ‘Gominoa’ repository that you just installed. You can find it under The Music Plugin.

Install that add-on and we’re just about ready to get started. You’ll first need to open the add-on’s Settings to enter your Pandora username and password.
With the add-on installed, we are ready to begin. First, you need to open the plug-in’s Settings to enter your Pandora user name and password.

If you’re a Pandora One subscriber, make sure you also toggle that option.
If you are a Pandora One subscriber, be sure to switch this option as well.
How to Use Pandoki in Kodi
Open up Pandoki and you will see all of your Pandora stations.
Open Pandoki and you’ll see all the Pandora stations.

Select a station and playback will begin.
Select a station and play it.

Everything takes place within Kodi’s default interface, meaning navigation is easy. If you want to hear a song again, you can: just head back to that song and select it.
Everything is done in Kodi’s default interface, which means navigation is very easy. If you want to listen to a song again, you can: just go back to that song and select it.
And that’s about it! There are a few things you can configure in the add-on’s Settings, including what order your channels show up in and how many songs show up in a given playlist, but for the most part this is very straightforward. Enjoy listening to your radio on your stereo.
That’s it! You can configure several things in the plug-in’s Settings, including the order in which channels are displayed and the number of songs displayed in a given playlist, but in most cases, this is very simple. Appreciate the stereo.

Translated from: https://www.howtogeek.com/286995/how-to-listen-to-pandora-in-kodi/

Box mount Cody

How To Build CyanogenMod Android (oneplus/bacon) On Linux

This article is mainly about the compilation of onePlus mobile phone (OnePlus/Bacon) Rom after repo Sync has completed all cm12 source code.
Other versions can be drawn by analogy.
1.Nexus 7 (” grouper “) Build for reference
The following link is a method for compiling the Nexus 7 (” grouper “) under Linux for reference.
http://wiki.cyanogenmod.org/w/Build_for_grouper
2. Download the respective Device and Kernel
After repo Sync has all the source code for CM12, you also need to download the device related files and the kernel source code.
from cm’s official https://github.com/CyanogenMod search equipment making page code, one plus is oneplus, has two results: android_device_oneplus_bacon, android_kernel_oneplus_msm8974, then search android_device_qcom_common, point in the three projects git clone & lt; ssh url> Go down, or click Download ZIP to Download and unzip.
using breakfast bacon automatically pulls everything you need from github, so you only need to download the device part of oneplus.
3. Configure device and kernel
After downloading the device and kernel above, it is necessary to put them in the correct place. Here is a good specification that the file name of the download indicates the corresponding directory
(Android stands for root). Go to the root directory of the source.
Mkdir -p device/oneplus/bacon
mkdir -p kernel/oneplus/msm8974
Mkdir -p device/qcom/common
unzip the device and kernel you just downloaded and put them in the three new directories above.
4. Configuration vendor
Sh
first connect the oneplus phone via USB, make sure the system version is consistent with the source version, then go to the source /device/oneplus/bacon/ directory and execute the above instructions.
the main function of this script is to pull out the driver so library in the mobile phone, and then create /vendor/oneplus/bacon/ directory.
Then put the appropriate library files in it.
Method 2: The above method requires the phone to have the system installed, and a method called github search for proprietary_vendor_oneplus to download
Into the source/vendor/directory, execute the git clone https://github.com/withyou/proprietary_vendor_oneplus.git
After downloading the proprietary_vendor_oneplus, the proprietary_vendor_oneplus was renamed to oneplus, and then git branch-av looked at the branch. If it was not in the corresponding source branch such as 6.0, it should checkout to cm-13.0.
Configure the USB please refer to this article: http://blog.csdn.net/lechengyuyuan/article/details/21091245
5. Compile
The source build/envsetup. Sh
Breakfast bacon
Brunch selects Cm-Kon-userdebug enter (which is lunch & AMP; & Make)
The whole compilation process can take several hours depending on the PC configuration, and the compilation can also be based on CPU performance plus -j4 parameter (4 for core number) brunch Cm-Cock-Userdebug-j4. If you see the Package Complete:… The out/target/product/bacon/cm – 12.1-20151102 – UNOFFICIAL – bacon. Zip, compile all finished.
6. Compilation may be a problem
1.
Make: * * * No rule to make target `/out/host/Linux x86/bin/dtbToolCM ‘, men by ‘/ out/target/product/bacon/dt. Img’. Stop
Solution: from cm’s official making page https://github.com/CyanogenMod search android_device_qcom_common, Download the ZIP.
The mkdir -p device/end/common
Unzip the downloaded android_device_qcom_common.zip and put it in the newly created directory.
Similarly, if a file under /device/oppo/common/ is not found, download android_device_oppo_common.zip and unzip it into the corresponding directory.
2.
The system/vold/cryptfs. C: In the function ‘load_crypto_mapping_table’ :
System/vold/cryptfs. C: 1031:3: error: implicit declaration of the function ‘is_ice_enabled [- Werror = implicit function – declaration]
if (is_ice_enabled ())
^
Means in the system/vold/cryptfs. C is not found in the is_ice_enabled method, and this method is in the source root directory/device/end/common/cryptfs_hw/statement under the defined, but in CM making download device/end/common (that is, the problem 1 download folder) and repo sync up code out of sync.
Solution to download http://download.csdn.net/download/lechengyuyuan/9237537, download directly after the/device/end/common/cryptfs_hw/directory three files to replace it.
3.
The out/target/product/bacon/obj/KERNEL_OBJ /… Stop.
Do not manually compile the kernel with make or make uImage in the kernel directory, it will interfere with compiling the entire code tree and cause an error. If you have done this before, you can by removing the out/target/product/bacon/obj/KERNEL_OBJ entire folders, hand in hand to the kernel (kernel) directory inside make mrproper down to clean off the kernel source directory. It is also recommended to make mrproper before brunch in the kernel’s source directory.
 
Original articles, reprint must indicate the source: http://blog.csdn.net/lechengyuyuan/article/details/49514319

Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..

After the M2_HOME environment variable is changed, mVN-V is executed on the terminal and the following error occurs:
 
Exception in thread “main” java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org. Codehaus. Breadth. Classworlds. The launcher. The launcher. The Program will exit.
 
 
If you are a Linux system, you may be in the/etc/profile, ~ /. Following/~/bashrc file configured in the environment variable M2_HOME, when M2_HOME value change, even if you execute the source/etc/profile operation, also can appear as wrong, then you will need to open a terminal or log back in to, if you are a Windows system, to open a CMD window, generally is ok, So the root cause of the appeal error is that mVN-V was executed on the same terminal when switching between two versions of Maven without opening a new terminal or logging in again.

Installing zookeeper under Linux system

Install the zookeeper
1. Unpack

Tar ZXVF – apache – they are – 3.6.1 track – bin. Tar. Gz

Create folders

mkdir /usr/local/

3. Move folders

Mv apache – they are – 3.6.1 track – bin/usr/local /

4. Rename configuration files

CD/usr/local/apache – they are – 3.6.1 track – bin/conf
Cp zoo_sample. CFG zoo. CFG

5. Modify the configuration file

Vi Zoo. CFG, modify the corresponding content as follows

dataDir=/usr/local/apache-zookeeper-3.6.1-bin/data

# new

admin.serverPort=18888

6, start,

CD/usr/local/apache – they are – 3.6.1 track – bin/bin
./zkServer.sh start

7, test,

netstat -anp|grep 2181

make modules_ Install compiles the kernel driver as a module, and the location of. Ko file in the root file

Based on the kernel Documentation: Documentation/kbuild/modules. TXT: Building External modules section 5 describes position description
can be determined as follows:

--- 5.1 INSTALL_MOD_PATH

	Above are the default directories but as always some level of
	customization is possible. A prefix can be added to the
	installation path using the variable INSTALL_MOD_PATH:

		$ make INSTALL_MOD_PATH=/frodo modules_install
		=> Install dir: /frodo/lib/modules/$(KERNELRELEASE)/kernel/

	INSTALL_MOD_PATH may be set as an ordinary shell variable or,
	as shown above, can be specified on the command line when
	calling "make." This has effect when installing both in-tree
	and out-of-tree modules.

--- 5.2 INSTALL_MOD_DIR

	External modules are by default installed to a directory under
	/lib/modules/$(KERNELRELEASE)/extra/, but you may wish to
	locate modules for a specific functionality in a separate
	directory. For this purpose, use INSTALL_MOD_DIR to specify an
	alternative name to "extra."

		$ make INSTALL_MOD_DIR=gandalf -C $KDIR \
		       M=$PWD modules_install
		=> Install dir: /lib/modules/$(KERNELRELEASE)/gandalf/

Error 1136 (21s01): column count doesn’t match value count at row 1

After creating the library, I inserted the data into ERROR “ERROR 1136 (21S01): Column count doesn’t match value Count at row 1”. At the beginning, I thought it was a data type ERROR. Then DESC looked at it and found that it was char (10).
 

You can see that the unknown column is displayed, which is obviously an SQL statement error, and then you can look at my statement and see that the quotes are missing (manual face-covering).
Mysql> insert into student values(ka,18);
ERROR 1054 (42S22): Unknown column ‘ka’ in ‘field list’
 
Mysql> insert into student values(‘saoka’,’18’);
Query OK, 1 row affected (0.01 SEC)
 

Busybox encountered input/output error while mounting NFS to TMP file system

Error is as follows
Mount -T NFS 192.168.1.83:/home/ WRR/TMP/WRR
< 4> svc: failed to register lockdv1 RPC service (errno 111).
< 4> lockd_up: makesock failed, error=-111

If I add nolock it will just return. But later copy file card dead. But it’s a little too much.

Then,
The mount -t NFS 192.168.1.83:/home/WRR/web/TMP/WRR
& lt; 4> SVC: failed to register lockdv1 RPC service (110) errno.
the mount: mounting 192.168.1.83:/home/WRR/web on/TMP/WRR failed: Connection timed out

Maybe this error is related to Nfs server permissions, so add the no_root_squard parameter to the server. To continue. There’s still a mistake.

Because the NFS server factor is excluded, then mount is fine (because it’s a little copier). So this is a story that has nothing to do with servers and mounts.

See on the English post (http://forums.xilinx.com/t5/Embedded-Linux/nfs-mount-problem-on-microblaze/td-p/153272)
Something is not running on the Busybox file system. Some additional parameters need to be added.
The mount -o port = 2049, nolock, proto = TCP -t NFS 192.168.103.83:/home/WRR/web/TMP/WRR
It worked. The magic parameters are in port and proto= TCP. The exact cause is unknown.