赞
踩
- 连接主机...
- 连接主机成功
- Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64)
-
- * Documentation: https://help.ubuntu.com
- * Management: https://landscape.canonical.com
- * Support: https://ubuntu.com/advantage
-
- System information as of Tue 18 Oct 2022 08:01:31 PM UTC
-
- System load: 0.0 Processes: 117
- Usage of /: 20.8% of 35.18GB Users logged in: 1
- Memory usage: 20% IPv4 address for eth0: 192.168.1.117
- Swap usage: 0%
-
- * Super-optimized for small spaces - read how we shrank the memory
- footprint of MicroK8s to make it the smallest full K8s around.
-
- https://ubuntu.com/blog/microk8s-memory-optimisation
-
- 113 updates can be installed immediately.
- 3 of these updates are security updates.
- To see these additional updates run: apt list --upgradable
-
- New release '22.04.1 LTS' available.
- Run 'do-release-upgrade' to upgrade to it.
-
-
- *** System restart required ***
- Last login: Tue Oct 18 13:54:10 2022 from 115.227.167.157
- root@wwqovahhked4rb48:~# add-apt-repository ppa:webupd8team/java
- The Oracle JDK License has changed for releases starting April 16, 2019.
-
- The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html
-
- Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).
-
- For this reason, THIS PPA IS DISCONTINUED.
-
- UPDATE:
-
- For Oracle Java 17, see a different PPA -> https://www.linuxuprising.com/2021/09/how-to-install-oracle-java-17-lts-on.html
-
- Old description:
-
- Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.
-
- Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
-
- Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
-
- The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.
-
- More info (and Ubuntu installation instructions):
- - http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
-
- Debian installation instructions:
- - Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
- More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
- Press [ENTER] to continue or Ctrl-c to cancel adding it.
-
-
- Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
- Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
- Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
- Ign:4 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
- Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
- Err:6 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
- 404 Not Found [IP: 185.125.190.52 80]
- Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,784 kB]
- Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
- Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,191 kB]
- Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [739 kB]
- Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [385 kB]
- Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,367 kB]
- Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [193 kB]
- Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [970 kB]
- Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [221 kB]
- Reading package lists... Done
- E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
- N: Updating from such a repository can't be done securely, and is therefore disabled by default.
- N: See apt-secure(8) manpage for repository creation and user configuration details.
- root@wwqovahhked4rb48:~#
- root@wwqovahhked4rb48:~# add-apt-repository ppa:ts.sch.gr/ppa
- This repository is maintained by the Hellenic Schools Technical Support Team (https://ts.sch.gr). It provides:
- * Updated versions of packages we maintain like epoptes and ltsp
- * Bug fixing versions of packages we use like x11vnc, p7zip, marco
- * Packages that do not exist in Ubuntu like sch-scripts, oracle-java8-installer
- More info: https://launchpad.net/~ts.sch.gr/+archive/ubuntu/ppa
- Press [ENTER] to continue or Ctrl-c to cancel adding it.
- Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
- Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
- Get:3 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal InRelease [17.6 kB]
- Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
- Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
- Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
- Ign:7 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
- Get:8 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main amd64 Packages [5,876 B]
- Get:9 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main Translation-en [3,712 B]
- Err:10 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
- 404 Not Found [IP: 185.125.190.52 80]
- Reading package lists... Done
- E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
- N: Updating from such a repository can't be done securely, and is therefore disabled by default.
- N: See apt-secure(8) manpage for repository creation and user configuration details.
- root@wwqovahhked4rb48:~#
- root@wwqovahhked4rb48:~# apt-get update
- Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
- Hit:2 http://repo.mysql.com/apt/ubuntu focal InRelease
- Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
- Hit:4 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal InRelease
- Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
- Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
- Ign:7 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
- Err:8 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
- 404 Not Found [IP: 185.125.190.52 80]
- Reading package lists... Done
- E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
- N: Updating from such a repository can't be done securely, and is therefore disabled by default.
- N: See apt-secure(8) manpage for repository creation and user configuration details.
- root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following additional packages will be installed:
- binutils binutils-common binutils-x86-64-linux-gnu gsfonts gsfonts-x11 java-common libbinutils libctf-nobfd0 libctf0 libfontenc1 oracle-java8-set-default x11-common xfonts-encodings
- xfonts-utils
- Suggested packages:
- binutils-doc binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho | ttf-sazanami-mincho ttf-arphic-uming firefox
- | firefox-2 | iceweasel | mozilla-firefox | iceape-browser | mozilla-browser | epiphany-gecko | epiphany-webkit | epiphany-browser | galeon | midbrowser | moblin-web-browser | xulrunner
- | xulrunner-1.9 | konqueror | chromium-browser | midori | google-chrome
- The following NEW packages will be installed:
- binutils binutils-common binutils-x86-64-linux-gnu gsfonts gsfonts-x11 java-common libbinutils libctf-nobfd0 libctf0 libfontenc1 oracle-java8-installer oracle-java8-set-default x11-common
- xfonts-encodings xfonts-utils
- 0 upgraded, 15 newly installed, 0 to remove and 86 not upgraded.
- Need to get 6,267 kB of archives.
- After this operation, 20.0 MB of additional disk space will be used.
- Do you want to continue? [Y/n] Y
- Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-common amd64 2.34-6ubuntu1.3 [207 kB]
- Get:2 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main amd64 oracle-java8-installer all 8u212-1~201909110927~ubuntu20.04.1 [33.2 kB]
- Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbinutils amd64 2.34-6ubuntu1.3 [474 kB]
- Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.3 [47.4 kB]
- Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf0 amd64 2.34-6ubuntu1.3 [46.6 kB]
- Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.3 [1,613 kB]
- Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils amd64 2.34-6ubuntu1.3 [3,380 B]
- Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6,816 B]
- Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.4 [3,120 kB]
- Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libfontenc1 amd64 1:1.1.4-0ubuntu1 [14.0 kB]
- Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 x11-common all 1:7.7+19ubuntu14 [22.3 kB]
- Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 xfonts-encodings all 1:1.0.5-0ubuntu1 [573 kB]
- Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 xfonts-utils amd64 1:7.7+6 [91.5 kB]
- Get:14 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main amd64 oracle-java8-set-default all 8u212-1~201909110927~ubuntu20.04.1 [7,188 B]
- Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 gsfonts-x11 all 0.27 [7,120 B]
- Fetched 6,267 kB in 3s (2,027 kB/s)
- Preconfiguring packages ...
- Selecting previously unselected package binutils-common:amd64.
- (Reading database ... 109289 files and directories currently installed.)
- Preparing to unpack .../0-binutils-common_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking binutils-common:amd64 (2.34-6ubuntu1.3) ...
- Selecting previously unselected package libbinutils:amd64.
- Preparing to unpack .../1-libbinutils_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking libbinutils:amd64 (2.34-6ubuntu1.3) ...
- Selecting previously unselected package libctf-nobfd0:amd64.
- Preparing to unpack .../2-libctf-nobfd0_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
- Selecting previously unselected package libctf0:amd64.
- Preparing to unpack .../3-libctf0_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking libctf0:amd64 (2.34-6ubuntu1.3) ...
- Selecting previously unselected package binutils-x86-64-linux-gnu.
- Preparing to unpack .../4-binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
- Selecting previously unselected package binutils.
- Preparing to unpack .../5-binutils_2.34-6ubuntu1.3_amd64.deb ...
- Unpacking binutils (2.34-6ubuntu1.3) ...
- Selecting previously unselected package java-common.
- Preparing to unpack .../6-java-common_0.72_all.deb ...
- Unpacking java-common (0.72) ...
- Setting up binutils-common:amd64 (2.34-6ubuntu1.3) ...
- Setting up libbinutils:amd64 (2.34-6ubuntu1.3) ...
- Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
- Setting up libctf0:amd64 (2.34-6ubuntu1.3) ...
- Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
- Setting up binutils (2.34-6ubuntu1.3) ...
- Selecting previously unselected package oracle-java8-installer.
- (Reading database ... 109562 files and directories currently installed.)
- Preparing to unpack .../oracle-java8-installer_8u212-1~201909110927~ubuntu20.04.1_all.deb ...
- Unpacking oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
- Setting up java-common (0.72) ...
- Setting up oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
- No /var/cache/oracle-jdk8-installer/wgetrc file found.
- Creating /var/cache/oracle-jdk8-installer/wgetrc and
- using default oracle-java8-installer wgetrc settings for it.
- Downloading Oracle Java 8...
- --2022-10-18 20:07:26-- https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
- Resolving github.com (github.com)... 192.30.255.113
- Connecting to github.com (github.com)|192.30.255.113|:443... failed: Connection timed out.
- Retrying.
- --2022-10-18 20:09:37-- (try: 2) https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
- Connecting to github.com (github.com)|192.30.255.113|:443... failed: Connection timed out.
- Retrying.
- --2022-10-18 20:11:49-- (try: 3) https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
- Connecting to github.com (github.com)|192.30.255.113|:443...
- [1]+ Stopped apt-get install oracle-java8-installer
- root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
- E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 188143 (apt-get)
- N: Be aware that removing the lock file is not a solution and may break your system.
- E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
- root@wwqovahhked4rb48:~# jps
- Command 'jps' not found, but can be installed with:
- apt install openjdk-11-jdk-headless # version 11.0.16+8-0ubuntu1~20.04, or
- apt install openjdk-16-jdk-headless # version 16.0.1+9-1~20.04
- apt install openjdk-17-jdk-headless # version 17.0.4+8-1~20.04
- apt install openjdk-8-jdk-headless # version 8u342-b07-0ubuntu1~20.04
- apt install openjdk-13-jdk-headless # version 13.0.7+5-0ubuntu1~20.04
- root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
- E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 188143 (apt-get)
- N: Be aware that removing the lock file is not a solution and may break your system.
- E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
- root@wwqovahhked4rb48:~# kill -9 188143
- root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
- E: Could not get lock /var/lib/dpkg/lock. It is held by process 188462 (dpkg)
- N: Be aware that removing the lock file is not a solution and may break your system.
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- [1]+ Killed apt-get install oracle-java8-installer
- root@wwqovahhked4rb48:~# rm /var/cache/apt/archives/lock
- root@wwqovahhked4rb48:~# rm /var/lib/dpkg/lock
- root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
- E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
- root@wwqovahhked4rb48:~# dpkg --configure -a
- Setting up oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
- Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u212-linux-x64.tar.gz
- Removing outdated cached downloads...
- update-alternatives: error: no alternatives for java
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
- update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
- Oracle JDK 8 installed
- #####Important########
- To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
- E.g.: sudo apt install oracle-java8-set-default
- On Ubuntu systems, oracle-java8-set-default is most probably installed
- automatically with this package.
- ######################
- Processing triggers for shared-mime-info (1.15-1) ...
- Processing triggers for mime-support (3.64ubuntu1) ...
- Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
- Processing triggers for man-db (2.9.1-1) ...
- root@wwqovahhked4rb48:~# update-java-alternatives -s java-8-oracle
- root@wwqovahhked4rb48:~# java -version
- java version "1.8.0_212"
- Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
- Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
- root@wwqovahhked4rb48:~#

- 连接主机...
- 连接主机成功
- Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64)
-
- * Documentation: https://help.ubuntu.com
- * Management: https://landscape.canonical.com
- * Support: https://ubuntu.com/advantage
-
- System information as of Tue 18 Oct 2022 08:12:05 PM UTC
-
- System load: 0.0 Processes: 134
- Usage of /: 20.8% of 35.18GB Users logged in: 1
- Memory usage: 21% IPv4 address for eth0: 192.168.1.117
- Swap usage: 0%
-
- * Super-optimized for small spaces - read how we shrank the memory
- footprint of MicroK8s to make it the smallest full K8s around.
-
- https://ubuntu.com/blog/microk8s-memory-optimisation
-
- 123 updates can be installed immediately.
- 5 of these updates are security updates.
- To see these additional updates run: apt list --upgradable
-
- New release '22.04.1 LTS' available.
- Run 'do-release-upgrade' to upgrade to it.
-
-
- *** System restart required ***
- Last login: Tue Oct 18 20:01:32 2022 from 115.227.167.157
- root@wwqovahhked4rb48:~# ping 192.30.255.113
- PING 192.30.255.113 (192.30.255.113) 56(84) bytes of data.
- ^C
- --- 192.30.255.113 ping statistics ---
- 16 packets transmitted, 0 received, 100% packet loss, time 15359ms
-
- root@wwqovahhked4rb48:~# cd /var/cache/oracle-jdk8-installer/
- root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer# ll
- total 36
- drwxr-xr-x 2 root root 4096 Oct 18 20:07 ./
- drwxr-xr-x 13 root root 4096 Oct 18 20:07 ../
- -rwxr-xr-x 1 root root 13959 Dec 15 2019 fontconfig.Ubuntu.properties*
- -rw-r--r-- 1 root root 91 Dec 15 2019 jar.binfmt
- -rwxr-xr-x 1 root root 148 Dec 15 2019 javaws-wrapper.sh*
- -rw-r--r-- 1 root root 0 Oct 18 20:07 jdk-8u212-linux-x64.tar.gz
- -rw-r--r-- 1 root root 90 Oct 18 20:07 wgetrc
- root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer# rm -rf jdk-8u212-linux-x64.tar.gz
- root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer#

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。