Tag Archives: ubuntu

Modulenotfounderror: no module named ‘CV2’ – (version problem)

Ubuntu Running OpenCV project tip: ModuleNotFoundError: No Module Named ‘Cv2’
Haha, that was the problem when it was first installed. Just throw me up.
1. Reason: the versions are inconsistent
The problem is that when installing OpencV-Python, the detailed version number is appended, which makes it different from the Python environment. In addition, there will be other problems, I can’t remember exactly.
2. Solutions

    first use the instruction: PIP install opencv-python to execute once, if the .py file or so to see the next one; Just do not append the version number when installing OpencV-Python.

Several ways for Ubuntu to open command line terminal window

1. Shortcut key
CTRL + Alt + T the current directory is /home/< The user name & gt;
2. Right mouse button
In the terminal window, execute the following command:
sudo apt-get install local-open-terminal
sudo reboot
after restarting, right-click in the directory where you want to open terminal and select open in Termainal
3. Open multiple terminals in the same window
When you have opened a terminal window, you want to open another terminal in the current window, so that it is easier to switch back and forth. Use the shortcut Key CTRL + Shift + T, the current directory of the new window opened is the current directory of the previous port, Alt+ 123 can open the corresponding first, second, and third Windows
4. Search for Terminal application
Click the search icon in the upper left corner or press the WIN key on the keyboard to display the search application window and type Terminal
5. After launching Terminal by other means, right click Terminal in the task bar
Select New Termial to open a New Terminal window, Lock to Launcher to Lock Terminal to the task bar, and then you can directly open the Terminal window in the task bar.

E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

Install software error
apt-get install python-minimal

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Reason:  the Error message indicates that the package failed to download to a database in the source.

Solution:
apt-get update
or
apt-get clean
apt-get update

problem resolution
1. source itself
According to the prompt, we should first update the source with apt-get. If this error is still reported after apt-get update, it means that there is an error in this source. Try the APt-get update– fix-Missing and still report this error, and change the source decisively
2. Network problems
The gateway mistakenly intercepts the packet or the firewall intentionally blocks it (for example, when the UPDATE contains the source of The Google Chrome browser, the IP will be automatically redirected to 6.6.6.6).
3. Replace source
sudo vim /etc/resolv.conf
Add the nameserver 8.8.8.8
The second:
The content of /etc/apt/ source. list is replaced with
sudo apt-get update

How To Install Java with Apt-Get on Ubuntu 16.04

Introduction
Java and the JVM (Java’s virtual machine) are widely used and required for many kinds of software. This article will guide you through the process of installing and managing different versions of Java using apt-get.Prerequisites
To follow this tutorial, you will need:
One Ubuntu 16.04 server. A sudo non-root user, which you can set up by following the Ubuntu 16.04 initial server setup guide.

Installing the Default JRE/JDK
The easiest option for installing Java is using the version packaged with Ubuntu. Specifically, this will install OpenJDK 8, the latest and recommended version.
First, update the package index.

sudo apt-get update

Next, install Java. Specifically, this command will install the Java Runtime Environment (JRE).

sudo apt-get install default-jre

There is another default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to compile Java programs or if the software that will use Java specifically requires it.
The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size.
You can install the JDK with the following command:

sudo apt-get install default-jdk

Installing the Oracle JDK
If you want to install the Oracle JDK, which is the official version distributed by Oracle, you will need to follow a few more steps. If you need Java 6 or 7, which are not available in the default Ubuntu 16.04 repositories (not recommended), this installation method is also available.
First, add Oracle’s PPA, then update your package repository.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

Then, depending on the version you want to install, execute one of the following commands:
Oracle JDK 6 or 7
These are very old versions of Java which reached end of life in February 2013 and April 2015 respectively. It’s not recommended to use them, but they might still be required for some programs.
To install JDK 6, use the following command:

sudo apt-get install oracle-java6-installer

To install JDK 7, use the following command:

sudo apt-get install oracle-java7-installer

Oracle JDK 8
This is the latest stable version of Java at time of writing, and the recommended version to install. You can do so using the following command:

sudo apt-get install oracle-java8-installer

Oracle JDK 9
This is a developer preview and the general release is scheduled for March 2017. It’s not recommended that you use this version because there may still be security issues and bugs. There is more information about Java 9 on the official JDK 9 website.
To install JDK 9, use the following command:

sudo apt-get install oracle-java9-installer

Managing Java
There can be multiple Java installations on one server. You can configure which version is the default for use in the command line by using update-alternatives, which manages which symbolic links are used for different commands.

sudo update-alternatives –config java

The output will look something like the following. In this case, this is what the output will look like with all Java versions mentioned above installed.

Output

There are 5 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      auto mode
  1            /usr/lib/jvm/java-6-oracle/jre/bin/java          1         manual mode
  2            /usr/lib/jvm/java-7-oracle/jre/bin/java          2         manual mode
  3            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  4            /usr/lib/jvm/java-8-oracle/jre/bin/java          3         manual mode
  5            /usr/lib/jvm/java-9-oracle/bin/java              4         manual mode

Press <enter> to keep the current choice[*], or type selection number:

You can now choose the number to use as a default. This can also be done for other Java commands, such as the compiler (javac), the documentation generator (javadoc), the JAR signing tool (jarsigner), and more. You can use the following command, filling in the command you want to customize.

sudo update-alternatives –config command

Setting the JAVA_HOME Environment Variable
Many programs, such as Java servers, use the JAVA_HOME environment variable to determine the Java installation location. To set this environment variable, we will first need to find out where Java is installed. You can do this by executing the same command as in the previous section:

sudo update-alternatives –config java

Copy the path from your preferred installation and then open /etc/environment using nano or your favorite text editor.

sudo nano /etc/environment

At the end of this file, add the following line, making sure to replace the highlighted path with your own copied path.

/etc/environment

JAVA_HOME="/usr/lib/jvm/java-8-oracle"

Save and exit the file, and reload it.

source /etc/environment

You can now test whether the environment variable has been set by executing the following command:

echo $JAVA_HOME

This will return the path you just set.

Conclusion
You have now installed Java and know how to manage different versions of it. You can now install software which runs on Java, such as Tomcat, Jetty, Glassfish, Cassandra, or Jenkins.

 

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

Building virtual machine environment based on kvm-qemu under ubuntu12.10 (12)

In addition to the initial mounting of the optical drive in the definition file of the virtual machine, Libvirt also has a dynamic platter mount method, which USES the Attach -device command in the virsh command. The format of this command is as follows:

dev@devhost:/opt/vm/xpvm1$sudo virsh attach-device < domain-name> filename

Where filename is a file defined in XML format (we’ll call it Disk.xml) :

< Disk type = “file” device = “cdrom” & gt; < The source file = “/ opt/vm/drivers. Iso/& gt;” < Target HDC dev = “”/& gt; < readonly/> < /disk>

The virtual machine was originally mounted ona CD-ROM called Windows_xp_professional_sp3_x89.ISO:

< domain type=’kvm’> & lt; name> XP_VM< /name> & lt; uuid> 91f15b08-e115-4016-a522-b550ff593af9< /uuid> & lt; memory> 1024000< /memory> & lt; currentMemory> 1024000< /currentMemory> & lt; vcpu> 1< /vcpu> & lt; os> & lt; Type the arch = ‘x86_64 machine =’ PC ‘& gt; hvm< /type> & lt; boot dev=’hd’/> & lt; boot dev=’cdrom’/> & lt; Bootmenu enable = ‘yes’/& gt; & lt; /os> & lt; features> & lt; acpi/> & lt; apic/> & lt; pae/> & lt; /features> & lt; cpu> & lt; The topology sockets = ‘1’ cores = ‘1’ threads = ‘1’/& gt; & lt; /cpu> & lt; = ‘localtime’ clock offset/& gt; & lt; on_poweroff> destroy< /on_poweroff> & lt; on_reboot> restart< /on_reboot> & lt; on_crash> restart< /on_crash> & lt; devices> & lt; emulator> /usr/bin/qemu-system-x86_64< /emulator> & lt; = ‘disk disk type =’ file ‘device’ & gt; & lt; Qemu driver name = ‘ ‘type =’ qcow2 ‘/ & gt; & lt; The source file = ‘/ opt/vm/xpvm1 xp_c. Img’ lock = ‘exclusive’/& gt; & lt; Target dev = ‘hda bus =’ ide ‘/ & gt; & lt; /disk> & lt; = ‘disk disk type =’ file ‘device’ & gt; & lt; Qemu driver name = ‘ ‘type =’ qcow2 ‘/ & gt; & lt; The source file = ‘/ opt/vm/xpvm1 xp_d. Img’ lock = ‘exclusive’/& gt; & lt; target dev=’hdb’ bus=’ide’/> & lt; /disk> & lt; = ‘cdrom disk type =’ file ‘device’ & gt; & lt; source file=’/opt/vm/windows_xp_professional_sp3_x86.iso’/> & lt; target dev=’hdc’/> & lt; readonly/> & lt; /disk> & lt; The channel type = ‘spicevmc & gt; & lt; Target type = ‘virtio’ name = ‘com. Redhat. Spice. 0’/& gt; & lt; Alias name = ‘virserial – channel1’/& gt; & lt; /channel> & lt; Interface type = ‘bridge’ & gt; & lt; MAC address = ’52:54:00:7 b: a8: d8’/& gt; & lt; The source bridge = ‘virbr0/& gt; & lt; = ‘vnet1’ target dev/& gt; & lt; The model type = ‘virtio/& gt; & lt; /interface> & lt; Input type = ‘tablet’ bus = ‘usb’/& gt; & lt; Graphics type=’spice’ port=’4000′ autoport=’no’ listen=’0.0.0.0′> & lt; Listen type = ‘address’ address = ‘0.0.0.0’/& gt; & lt; Agent_mouse mode = ‘off’/& gt; & lt; /graphics> & lt; Memballoon model = ‘virtio & gt; & lt; alias name=’balloon0’/> & lt; /memballoon> & lt; Sound model = ‘ac97 & gt; & lt; Address type=’ PCI ‘domain=’0x0000′ bus=’0x00′ slot=’0x04’ function=’0x0’/> & lt; /sound> & lt; video> & lt; The model type = ‘QXL vram =’ 65536 ‘heads =’ 1 ‘/ & gt; & lt; /video> & lt; /devices> & lt; qemu:commandline> & lt; Qemu: arg value = “-” CPU/& gt; & lt; Qemu: arg value = “kvm64″/& gt; & lt; /qemu:commandline> < /domain>

 
After installing the system, what you see in the virtual machine is:

 
Instead of re-closing and defining a new disc file, we can change the disc using the Virsh Attach – Device command:
 

dev@devhost:/opt/vm/xpvm1$sudo virsh attaching -device XP_VM disk.xml

 

The advantage of doing this is that in some cases we can achieve the effect of a hot plug disc without having to restart the virtual machine.
Note: It should be noted that, after testing, there must first be an initial optical device in the defined XML, otherwise the execution of another optical device will fail: internal Error No device with bus ‘ide’ and target ‘HDC’ reported error.
That is, this is actually a swap, not a dynamic mount, and the cd-ROM device itself must be defined in XML before the virtual machine can be started.
 

Curl returns empty reply from server. Due to the processing of special characters, curl cannot be accessed and the browser can access it.

Use the browser for normal access.
When using curl access, either appear
Return Empty Reply from Server or display

Through a number of experiments and Windows under the curl comparison, found that the access path has & AMP; Character, resulting in truncation.
When you add double quotes, you can access it normally
Both curl “http://x.x.x.x:8080/wserver?r=x& s=x& ./”

Ubuntu (16.04) creates a Windows boot U disk, using woeusb instead of DD

Ubuntu (16.04) creates Windows boot usb drives, using WOeUSB instead of DD
Dd creation often doesn’t start, I heard that you have to convert isohybrid to get to the USB flash drive. (Also, for Linux clones, if you already have a Linux system, install a Squashfs-Tools, just copy the root unsquashfs from the CD to a partition, and change the password to Chroot.)
Then we have to use another tool: WoeUSB
Installation:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update 
sudo apt install woeusb

graphical interface use is not talked about, talked about the command line:

sudo woeusb --device </path/to/windows.iso> <device>
for example
sudo woeusb --device /home/windows.iso /dev/sdc

Update: if you get an error like this: “Error: Partition(s) on /dev/sdb are being used” when WinUSB/WoeUSB tries to format the USB stick from the command line, or “Error 256” in the beginning of the process when using the GUI, you must unmount the partitions. Firstly, to get a list of partitions, run the following command (“mount” also works):

df -aTh

This should list all the partitions mounted on your system. If you got here, you should already know the USB device drive, e.g. /dev/sdc, so you need to look for the partitions (it could also only be one) on this drive, like /dev/sdc1, /dev/sdc2, etc. Then, unmount them like this (example):

sudo umount /dev/sdc1
sudo umount /dev/sdc2
(etc)

Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server

Install Nginx, configure firewall and file structure; SFTP transfer download, SCP upload download.
// it is not clear here that it is very similar to the last one.

Nginx
Install Nginx
Apt get update
apt install nginx;
after installation, the service will be automatically executed,
verification: systemctl status nginx;
Configure the firewall
ufw allow 'Nginx;
verification :ufw status;
Successful execution interface

File structure

all Nginx configuration files are located in /etc/nginx directory.
the main configuration file for Nginx is /etc/nginx/nginx.conf. To make the Nginx configuration easier to maintain, it is recommended to create a separate configuration file for each domain. You can have as many server block files as you want.
Nginx server prevents files from being stored in the /etc/nginx/ locations-available directory. Nginx will not use the configuration files found in this directory unless they are linked to the /etc/nginx/ location-enabled directory.
to activate the server block, you need to create a symbolic link (pointer) from the configuration file site in the sites-available directory to the directory sites-enabled.
is recommended to follow standard naming conventions. For example, if your domain name is mydomain.com, then your configuration file should be named /etc/nginx/sites-available/mydomain.com.conf
the/etc/nginx/snippets directory contains can included in the configuration file from the server. If you use repeatable configuration segments, you can refactor these segments into fragments and include the fragment file in the server block.
Nginx log files (access.log and error.log) are located in the /var/log/ Nginx directory. It is suggested that there are different Access, and the error is the log file of each server module.
The MAC sends files to the server
SFTP transfer download
Create a new remote connection in the shell and send it using SFTP (prompted for server password) :

Use put to send command: put local file path remote path ; The
put command cannot upload a folder directly. Can be packaged for delivery.
use the get download command get remote path ;
use bye to exit SFTP :bye.
SCP upload and download
1, from the server to download file SCP username @ servername:/path/filename/Users/MAC/Desktop (local directory)
For example: SCP [email protected]:/root/zouzouzou. TXT/Users/MAC/Desktop is the server/root/zouzouzou. TXT/Users/MAC/downloaded to a local Desktop directory.
[email protected]: SCP - r/raid5 ZXX/my_download/zouzouzou.zip/users/zhuxiaoxia/Desktop
2. Upload local files to the server SCP /path/filename username@servername:/path;
For example, SCP/Users/MAC/Desktop/zouzouzou. TXT [email protected]:/root/
3. Download the whole directory scp-r username@servername:/root/ (remote directory) /Users/ MAC /Desktop (local directory)
For example : scp-r [email protected]:/root/ /Users/ MAC /Desktop/
4. Upload directory to server scp-r local_dir username@servername:remote_dir
For example: scp-r test [email protected]:/root/ upload the test directory under current directory to the server's /root/ directory
Reminder: The target server wants to enable write permission.

Ubuntu can’t open Gnome terminal and display the error message exited status 8

I’ve been playing around with some environments for my virtual machine lately, and since I don’t have much experience, I’m just following the path of the server. However, once the virtual machine is restarted later, something goes wrong. The GNOME terminal cannot be opened. Start gnOMe-Terminal using Xterm.
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 8

The next time I look it up, it’s a coding problem. Just use the command sudo DPkg-reconfigure locales to add the code you want.

You think that’s the end of it?If you didn’t solve it, it should be the same problem I encountered. I accidentally found that when I configured the environment for my virtual machine, I actually configured another statement: export LC_ALL=C. In this way, no matter how I configured my code, I could not open the terminal in any way.

I finally get rid of that, and the locale in the terminal, works!

Win7 and Ubuntu dual system, start error: no such partition grub rescue

My laptop installed Windows 7 and Ubuntu dual system, due to company regulations, after installing sandbox software and modifying Win7 partition, I could not start Windows 7 and Ubuntu.
Here is the solution:
First, restore the Win7 system to start.
Use U disk to do a “old peach Winpe” to start disk, specific method see “old peach” official website.
enter winpe, start menu -> “Boot repair”, the window background color is green, select the system is located in the disk character, generally C disk, according to the prompt to operate.
Enter Win7 and restore Ubuntu disk boot.
Open the partition assistant and click “Free partition” to quickly restore boot. The “free partition” is restored to its original partition, such as an ext4 partition.
Restore and boot Ubuntu
1, make Ubuntu install usb flash drive, not Baidu. 2, set the BIOS from the U disk, select try ubunu, do not install.
3, enter the system open terminal
sudo add-apt-repository ppa:yannubuntu boot-repair & & Sudo apt-get update
then type sudo apt-get install-y boot-repair & & Boot-repair
and click the first note: repair
Then it will tell you: Close Boot Security, Retry, just click Yes, wait a few minutes and restart the Ubuntu Boot TAB.