当前位置:   article > 正文

天翼云ubuntu安装JDK8_404 not found [ip: 185.125.190.52 80]

404 not found [ip: 185.125.190.52 80]

1.添加ppa

  1. 连接主机...
  2. 连接主机成功
  3. Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64)
  4. * Documentation: https://help.ubuntu.com
  5. * Management: https://landscape.canonical.com
  6. * Support: https://ubuntu.com/advantage
  7. System information as of Tue 18 Oct 2022 08:01:31 PM UTC
  8. System load: 0.0 Processes: 117
  9. Usage of /: 20.8% of 35.18GB Users logged in: 1
  10. Memory usage: 20% IPv4 address for eth0: 192.168.1.117
  11. Swap usage: 0%
  12. * Super-optimized for small spaces - read how we shrank the memory
  13. footprint of MicroK8s to make it the smallest full K8s around.
  14. https://ubuntu.com/blog/microk8s-memory-optimisation
  15. 113 updates can be installed immediately.
  16. 3 of these updates are security updates.
  17. To see these additional updates run: apt list --upgradable
  18. New release '22.04.1 LTS' available.
  19. Run 'do-release-upgrade' to upgrade to it.
  20. *** System restart required ***
  21. Last login: Tue Oct 18 13:54:10 2022 from 115.227.167.157
  22. root@wwqovahhked4rb48:~# add-apt-repository ppa:webupd8team/java
  23. The Oracle JDK License has changed for releases starting April 16, 2019.
  24. 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
  25. 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).
  26. For this reason, THIS PPA IS DISCONTINUED.
  27. UPDATE:
  28. For Oracle Java 17, see a different PPA -> https://www.linuxuprising.com/2021/09/how-to-install-oracle-java-17-lts-on.html
  29. Old description:
  30. Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.
  31. 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
  32. Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
  33. The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.
  34. More info (and Ubuntu installation instructions):
  35. - http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
  36. Debian installation instructions:
  37. - Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
  38. More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
  39. Press [ENTER] to continue or Ctrl-c to cancel adding it.
  40. Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
  41. Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
  42. Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
  43. Ign:4 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
  44. Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
  45. Err:6 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
  46. 404 Not Found [IP: 185.125.190.52 80]
  47. Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,784 kB]
  48. Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
  49. Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,191 kB]
  50. Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [739 kB]
  51. Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [385 kB]
  52. Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1,367 kB]
  53. Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [193 kB]
  54. Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [970 kB]
  55. Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [221 kB]
  56. Reading package lists... Done
  57. E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
  58. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  59. N: See apt-secure(8) manpage for repository creation and user configuration details.
  60. root@wwqovahhked4rb48:~#
  61. root@wwqovahhked4rb48:~# add-apt-repository ppa:ts.sch.gr/ppa
  62. This repository is maintained by the Hellenic Schools Technical Support Team (https://ts.sch.gr). It provides:
  63. * Updated versions of packages we maintain like epoptes and ltsp
  64. * Bug fixing versions of packages we use like x11vnc, p7zip, marco
  65. * Packages that do not exist in Ubuntu like sch-scripts, oracle-java8-installer
  66. More info: https://launchpad.net/~ts.sch.gr/+archive/ubuntu/ppa
  67. Press [ENTER] to continue or Ctrl-c to cancel adding it.
  68. Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
  69. Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
  70. Get:3 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal InRelease [17.6 kB]
  71. Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
  72. Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  73. Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  74. Ign:7 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
  75. Get:8 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main amd64 Packages [5,876 B]
  76. Get:9 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal/main Translation-en [3,712 B]
  77. Err:10 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
  78. 404 Not Found [IP: 185.125.190.52 80]
  79. Reading package lists... Done
  80. E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
  81. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  82. N: See apt-secure(8) manpage for repository creation and user configuration details.
  83. root@wwqovahhked4rb48:~#
  84. root@wwqovahhked4rb48:~# apt-get update
  85. Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
  86. Hit:2 http://repo.mysql.com/apt/ubuntu focal InRelease
  87. Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
  88. Hit:4 http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu focal InRelease
  89. Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  90. Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  91. Ign:7 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
  92. Err:8 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
  93. 404 Not Found [IP: 185.125.190.52 80]
  94. Reading package lists... Done
  95. E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
  96. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  97. N: See apt-secure(8) manpage for repository creation and user configuration details.
  98. root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
  99. Reading package lists... Done
  100. Building dependency tree
  101. Reading state information... Done
  102. The following additional packages will be installed:
  103. 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
  104. xfonts-utils
  105. Suggested packages:
  106. 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
  107. | firefox-2 | iceweasel | mozilla-firefox | iceape-browser | mozilla-browser | epiphany-gecko | epiphany-webkit | epiphany-browser | galeon | midbrowser | moblin-web-browser | xulrunner
  108. | xulrunner-1.9 | konqueror | chromium-browser | midori | google-chrome
  109. The following NEW packages will be installed:
  110. 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
  111. xfonts-encodings xfonts-utils
  112. 0 upgraded, 15 newly installed, 0 to remove and 86 not upgraded.
  113. Need to get 6,267 kB of archives.
  114. After this operation, 20.0 MB of additional disk space will be used.
  115. Do you want to continue? [Y/n] Y
  116. Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-common amd64 2.34-6ubuntu1.3 [207 kB]
  117. 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]
  118. Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbinutils amd64 2.34-6ubuntu1.3 [474 kB]
  119. Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.3 [47.4 kB]
  120. Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf0 amd64 2.34-6ubuntu1.3 [46.6 kB]
  121. Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.3 [1,613 kB]
  122. Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils amd64 2.34-6ubuntu1.3 [3,380 B]
  123. Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6,816 B]
  124. Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.4 [3,120 kB]
  125. Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libfontenc1 amd64 1:1.1.4-0ubuntu1 [14.0 kB]
  126. Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 x11-common all 1:7.7+19ubuntu14 [22.3 kB]
  127. Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 xfonts-encodings all 1:1.0.5-0ubuntu1 [573 kB]
  128. Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 xfonts-utils amd64 1:7.7+6 [91.5 kB]
  129. 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]
  130. Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 gsfonts-x11 all 0.27 [7,120 B]
  131. Fetched 6,267 kB in 3s (2,027 kB/s)
  132. Preconfiguring packages ...
  133. Selecting previously unselected package binutils-common:amd64.
  134. (Reading database ... 109289 files and directories currently installed.)
  135. Preparing to unpack .../0-binutils-common_2.34-6ubuntu1.3_amd64.deb ...
  136. Unpacking binutils-common:amd64 (2.34-6ubuntu1.3) ...
  137. Selecting previously unselected package libbinutils:amd64.
  138. Preparing to unpack .../1-libbinutils_2.34-6ubuntu1.3_amd64.deb ...
  139. Unpacking libbinutils:amd64 (2.34-6ubuntu1.3) ...
  140. Selecting previously unselected package libctf-nobfd0:amd64.
  141. Preparing to unpack .../2-libctf-nobfd0_2.34-6ubuntu1.3_amd64.deb ...
  142. Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
  143. Selecting previously unselected package libctf0:amd64.
  144. Preparing to unpack .../3-libctf0_2.34-6ubuntu1.3_amd64.deb ...
  145. Unpacking libctf0:amd64 (2.34-6ubuntu1.3) ...
  146. Selecting previously unselected package binutils-x86-64-linux-gnu.
  147. Preparing to unpack .../4-binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb ...
  148. Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
  149. Selecting previously unselected package binutils.
  150. Preparing to unpack .../5-binutils_2.34-6ubuntu1.3_amd64.deb ...
  151. Unpacking binutils (2.34-6ubuntu1.3) ...
  152. Selecting previously unselected package java-common.
  153. Preparing to unpack .../6-java-common_0.72_all.deb ...
  154. Unpacking java-common (0.72) ...
  155. Setting up binutils-common:amd64 (2.34-6ubuntu1.3) ...
  156. Setting up libbinutils:amd64 (2.34-6ubuntu1.3) ...
  157. Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
  158. Setting up libctf0:amd64 (2.34-6ubuntu1.3) ...
  159. Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
  160. Setting up binutils (2.34-6ubuntu1.3) ...
  161. Selecting previously unselected package oracle-java8-installer.
  162. (Reading database ... 109562 files and directories currently installed.)
  163. Preparing to unpack .../oracle-java8-installer_8u212-1~201909110927~ubuntu20.04.1_all.deb ...
  164. Unpacking oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
  165. Setting up java-common (0.72) ...
  166. Setting up oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
  167. No /var/cache/oracle-jdk8-installer/wgetrc file found.
  168. Creating /var/cache/oracle-jdk8-installer/wgetrc and
  169. using default oracle-java8-installer wgetrc settings for it.
  170. Downloading Oracle Java 8...
  171. --2022-10-18 20:07:26-- https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
  172. Resolving github.com (github.com)... 192.30.255.113
  173. Connecting to github.com (github.com)|192.30.255.113|:443... failed: Connection timed out.
  174. Retrying.
  175. --2022-10-18 20:09:37-- (try: 2) https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
  176. Connecting to github.com (github.com)|192.30.255.113|:443... failed: Connection timed out.
  177. Retrying.
  178. --2022-10-18 20:11:49-- (try: 3) https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-linux-x64.tar.gz
  179. Connecting to github.com (github.com)|192.30.255.113|:443...
  180. [1]+ Stopped apt-get install oracle-java8-installer
  181. root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
  182. E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 188143 (apt-get)
  183. N: Be aware that removing the lock file is not a solution and may break your system.
  184. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  185. root@wwqovahhked4rb48:~# jps
  186. Command 'jps' not found, but can be installed with:
  187. apt install openjdk-11-jdk-headless # version 11.0.16+8-0ubuntu1~20.04, or
  188. apt install openjdk-16-jdk-headless # version 16.0.1+9-1~20.04
  189. apt install openjdk-17-jdk-headless # version 17.0.4+8-1~20.04
  190. apt install openjdk-8-jdk-headless # version 8u342-b07-0ubuntu1~20.04
  191. apt install openjdk-13-jdk-headless # version 13.0.7+5-0ubuntu1~20.04
  192. root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
  193. E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 188143 (apt-get)
  194. N: Be aware that removing the lock file is not a solution and may break your system.
  195. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  196. root@wwqovahhked4rb48:~# kill -9 188143
  197. root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
  198. E: Could not get lock /var/lib/dpkg/lock. It is held by process 188462 (dpkg)
  199. N: Be aware that removing the lock file is not a solution and may break your system.
  200. E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
  201. [1]+ Killed apt-get install oracle-java8-installer
  202. root@wwqovahhked4rb48:~# rm /var/cache/apt/archives/lock
  203. root@wwqovahhked4rb48:~# rm /var/lib/dpkg/lock
  204. root@wwqovahhked4rb48:~# apt-get install oracle-java8-installer
  205. E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
  206. root@wwqovahhked4rb48:~# dpkg --configure -a
  207. Setting up oracle-java8-installer (8u212-1~201909110927~ubuntu20.04.1) ...
  208. Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u212-linux-x64.tar.gz
  209. Removing outdated cached downloads...
  210. update-alternatives: error: no alternatives for java
  211. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode
  212. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode
  213. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode
  214. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode
  215. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
  216. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
  217. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
  218. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
  219. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
  220. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
  221. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
  222. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
  223. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
  224. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
  225. update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
  226. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
  227. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
  228. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
  229. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
  230. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
  231. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
  232. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
  233. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode
  234. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode
  235. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode
  236. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode
  237. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
  238. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
  239. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
  240. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
  241. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
  242. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
  243. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
  244. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode
  245. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode
  246. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
  247. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
  248. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
  249. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
  250. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
  251. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode
  252. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
  253. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
  254. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
  255. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
  256. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
  257. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
  258. update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
  259. 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
  260. Oracle JDK 8 installed
  261. #####Important########
  262. To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
  263. E.g.: sudo apt install oracle-java8-set-default
  264. On Ubuntu systems, oracle-java8-set-default is most probably installed
  265. automatically with this package.
  266. ######################
  267. Processing triggers for shared-mime-info (1.15-1) ...
  268. Processing triggers for mime-support (3.64ubuntu1) ...
  269. Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
  270. Processing triggers for man-db (2.9.1-1) ...
  271. root@wwqovahhked4rb48:~# update-java-alternatives -s java-8-oracle
  272. root@wwqovahhked4rb48:~# java -version
  273. java version "1.8.0_212"
  274. Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
  275. Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
  276. root@wwqovahhked4rb48:~#
  1. 连接主机...
  2. 连接主机成功
  3. Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64)
  4. * Documentation: https://help.ubuntu.com
  5. * Management: https://landscape.canonical.com
  6. * Support: https://ubuntu.com/advantage
  7. System information as of Tue 18 Oct 2022 08:12:05 PM UTC
  8. System load: 0.0 Processes: 134
  9. Usage of /: 20.8% of 35.18GB Users logged in: 1
  10. Memory usage: 21% IPv4 address for eth0: 192.168.1.117
  11. Swap usage: 0%
  12. * Super-optimized for small spaces - read how we shrank the memory
  13. footprint of MicroK8s to make it the smallest full K8s around.
  14. https://ubuntu.com/blog/microk8s-memory-optimisation
  15. 123 updates can be installed immediately.
  16. 5 of these updates are security updates.
  17. To see these additional updates run: apt list --upgradable
  18. New release '22.04.1 LTS' available.
  19. Run 'do-release-upgrade' to upgrade to it.
  20. *** System restart required ***
  21. Last login: Tue Oct 18 20:01:32 2022 from 115.227.167.157
  22. root@wwqovahhked4rb48:~# ping 192.30.255.113
  23. PING 192.30.255.113 (192.30.255.113) 56(84) bytes of data.
  24. ^C
  25. --- 192.30.255.113 ping statistics ---
  26. 16 packets transmitted, 0 received, 100% packet loss, time 15359ms
  27. root@wwqovahhked4rb48:~# cd /var/cache/oracle-jdk8-installer/
  28. root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer# ll
  29. total 36
  30. drwxr-xr-x 2 root root 4096 Oct 18 20:07 ./
  31. drwxr-xr-x 13 root root 4096 Oct 18 20:07 ../
  32. -rwxr-xr-x 1 root root 13959 Dec 15 2019 fontconfig.Ubuntu.properties*
  33. -rw-r--r-- 1 root root 91 Dec 15 2019 jar.binfmt
  34. -rwxr-xr-x 1 root root 148 Dec 15 2019 javaws-wrapper.sh*
  35. -rw-r--r-- 1 root root 0 Oct 18 20:07 jdk-8u212-linux-x64.tar.gz
  36. -rw-r--r-- 1 root root 90 Oct 18 20:07 wgetrc
  37. root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer# rm -rf jdk-8u212-linux-x64.tar.gz
  38. root@wwqovahhked4rb48:/var/cache/oracle-jdk8-installer#

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/819385
推荐阅读
相关标签
  

闽ICP备14008679号