Day: January 17, 2018

Ubuntu / Google Compute Engine / Google Cloud:安装JAVA JDK8 或者 JAVA JDK 9, Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18

1. Add the PPA. Open terminal (Ctrl+Alt+T) and run the command: sudo add-apt-repository ppa:webupd8team/java Type in your password when it asks and hit Enter. 2. Update and install the installer script: Run commands to update system package index and install Java installer script: sudo apt update && sudo apt install oracle-java8-installer 安装… Read More

Ubuntu:如何完全卸载Java, How to completely uninstall Java?

1、 移除所有 Java相关包 (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): apt-get update dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common… Read More

Ubuntu: repository/PPA 源管理(查询、添加、修改、删除)

查询 在Ubuntu中,每个PPA源是单独存放在/etc/apt/sources.list.d/文件夹中的,进入到该文件夹,使用ls命令查询即可列出当前系统添加的PPA源。 或者使用grep显示所有: grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* 或者 grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/ #或者 #grep -r --include '*.list' '^deb ' /etc/apt/sources.list* 添加 sudo add-apt-reposi… Read More