Install the Latest Packages by Ubuntu PPA

By PPA, to install the latest

Ubuntu

Use PPA source(Latest Version)

Git

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# after this, it will generate a new list in /etc/apt/sources.list.d
sudo add-apt-repository ppa:git-core/ppa

# change "http://ppa.launchpad.net" to "https://launchpad.proxy.ustclug.org"
# NOTE: USTCLUG PPA proxy is now retired (redirects to launchpad.net) and the
# generated filename embeds the release codename -- "focal" (20.04) here, but
# on a newer release it will be the current codename (e.g. noble for 24.04).
❯ ll /etc/apt/sources.list.d
.rw-r--r-- root root 137 B Fri Feb  5 17:49:07 2021 git-core-ubuntu-ppa-focal.list
❯ cat /etc/apt/sources.list.d/git-core-ubuntu-ppa-focal.list
deb https://launchpad.proxy.ustclug.org/git-core/ppa/ubuntu focal main

# install the latest git
sudo apt update
sudo apt install git

Gradle

⚠️ ppa:cwchien/gradle is stale/unmaintained on modern Ubuntu. Today Gradle is normally installed via SDKMAN! (sdk install gradle) or the official distribution zip from gradle.org; the PPA below is kept as a historical example.

1
sudo add-apt-repository ppa:cwchien/gradle

OpenJDK

⚠️ ppa:openjdk-r/ppa targeted old releases (14.04/16.04 era) and is obsolete — OpenJDK now ships in Ubuntu main repos, so just sudo apt install openjdk-21-jdk (LTS) or the current LTS.

1
sudo add-apt-repository ppa:openjdk-r/ppa

Python

1
sudo add-apt-repository ppa:deadsnakes/ppa

Change the Default PPA Source

⚠️ USTCLUG PPA mirror retired: https://launchpad.proxy.ustclug.org has been retired (it now redirects to launchpad.net), so the host substitution below is historical. The default http://ppa.launchpad.net works in most regions; if a mirror is required, use Aliyun’s apt mirror (mirrors.aliyun.com/ubuntu/) instead. The last two sed lines (replace http with https / use aliyun for archive.ubuntu.com) remain current best practice.

1
2
3
4
5
# historical: USTCLUG PPA proxy rename (proxy now retired, keep ppa.launchpad.net instead)
sed -i "s@http://ppa.launchpad.net@https://launchpad.proxy.ustclug.org@g" /etc/apt/sources.list.d/*.list

sed -i "s@http://mirrors.aliyun.com@https://mirrors.aliyun.com@g" /etc/apt/sources.list
sed -i "s@http://archive.ubuntu.com@https://mirrors.aliyun.com@g" /etc/apt/sources.list
Licensed under CC BY-NC-SA 4.0
Last updated on Aug 14, 2026 00:00 UTC