Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu 終端機安裝 PPA 軟體源完整圖文教學:add-apt-repository 實戰

編輯:關於 Linux

PPA (Personal Package Archive) 讓 Ubuntu 使用者輕鬆安裝官方倉庫未收錄或更新版本的軟體。本文以 VLC 播放器為例,完整示範 add-apt-repository 新增來源、apt update 同步索引、apt install 安裝軟體的圖文流程。

Ubuntu 搜尋終端機

輸入 PPA 指令需密碼

確認新增 PPA

核心三步驟

# 1. 新增軟體源 (以 VLC 穩定版為例)
sudo add-apt-repository ppa:videolan/stable-daily

# 2. 更新套件索引
sudo apt-get update

# 3. 安裝目標軟體
sudo apt-get install vlc

常見 PPA 範例

專案PPA 位址說明
Gitppa:git-core/ppa最新穩定版 Git
Node.jsppa:chris-lea/node.js舊版 Node.js (現建議用 nvm/fnm)
PHPppa:ondrej/php多版本 PHP (7.4~8.3)
Nginxppa:nginx/stable穩定版 Nginx

移除 PPA

sudo add-apt-repository --remove ppa:videolan/stable-daily
sudo apt-get update

善用 PPA 即可在 Ubuntu 上輕鬆獲得最新開源軟體,無需手動編譯或下載 .deb 檔。

Copyright © Windows教程網 All Rights Reserved