Adding the PPA to Ubuntu

本文介绍如何通过Personal Package Archive (PPA) 在Ubuntu上安装软件。主要包括四个步骤:添加PPA源、验证PPA源的真实性、更新源列表及安装PPA中的软件。

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA and how to verify the authenticity of its software.

Step 1: Copy the first line from the apt sources.list entries section of the PPA overview page.For example:

deb http://ppa.launchpad.net/awn-testing/ubuntu jaunty main

Step 2: Edit the sources.list. Add source to your sources.list

sudo gedit /etc/apt/sources.list

Step 3: Authenticate the PPA. Find the PPA’s OpenPGP key id the overview page. It looks something like this: 1024/12345678, copy it.

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 12345678

Replace 12345678 with the key id

Step 4: Finally, tell Ubuntu to re-load the sources.

sudo apt-get update

You’re now ready to install software from the PPA!

medivh@DT-AND-11430203:~$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. The source codes for both are same. Currently supports Ubuntu 10.04/12.04/14.04/14.10 32 and 64 bit. Detailed explanations to Launchpad PPA can be found at https://help.launchpad.net/Packaging/. That website explains how a PPA is set up and how to add existing PPA and install software from it. Here are quick steps to install toolchain from this PPA on Ubuntu before 14.04: Step1: Inside Ubuntu, open a terminal and input "sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa" Step2: Continue to input "sudo apt-get update" Step3: Continue to input to install toolchain "sudo apt-get install gcc-arm-embedded" To remove installed toolchain, just input "sudo apt-get remove gnu-arm-embedded". To update the toolchain, just repeat above step2 and step3. If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with: "sudo apt-get remove gcc-arm-none-eabi" Questions should be asked at https://answers.launchpad.net/gcc-arm-embedded Bug can be filed at https://bugs.launchpad.net/gcc-arm-embedded/+filebug. It is highly encouraged to ask question first before filing a bug. More info: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa Press [ENTER] to continue or Ctrl-c to cancel adding it. Ign:1 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal InRelease Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease Err:3 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release 404 Not Found [IP: 185.125.190.80 80] Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/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. 这是什么问题,怎么解决
10-14
zrt@zrt:~$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa 源: 'deb https://ppa.launchpadcontent.net/team-gcc-arm-embedded/ppa/ubuntu/ jammy main' 描述: This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. The source codes for both are same. Currently supports Ubuntu 10.04/12.04/14.04/14.10 32 and 64 bit. Detailed explanations to Launchpad PPA can be found at https://help.launchpad.net/Packaging/. That website explains how a PPA is set up and how to add existing PPA and install software from it. Here are quick steps to install toolchain from this PPA on Ubuntu before 14.04: Step1: Inside Ubuntu, open a terminal and input "sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa" Step2: Continue to input "sudo apt-get update" Step3: Continue to input to install toolchain "sudo apt-get install gcc-arm-embedded" To remove installed toolchain, just input "sudo apt-get remove gnu-arm-embedded". To update the toolchain, just repeat above step2 and step3. If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with: "sudo apt-get remove gcc-arm-none-eabi" Questions should be asked at https://answers.launchpad.net/gcc-arm-embedded Bug can be filed at https://bugs.launchpad.net/gcc-arm-embedded/+filebug. It is highly encouraged to ask question first before filing a bug. 更多信息:https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa 正在添加源。 按 [ENTER] 继续,或按 Ctrl-c 取消。 Found existing deb entry in /etc/apt/sources.list.d/team-gcc-arm-embedded-ubuntu-ppa-jammy.list Adding deb entry to /etc/apt/sources.list.d/team-gcc-arm-embedded-ubuntu-ppa-jammy.list Found existing deb-src entry in /etc/apt/sources.list.d/team-gcc-arm-embedded-ubuntu-ppa-jammy.list Adding disabled deb-src entry to /etc/apt/sources.list.d/team-gcc-arm-embedded-ubuntu-ppa-jammy.list Adding key to /etc/apt/trusted.gpg.d/team-gcc-arm-embedded-ubuntu-ppa.gpg with fingerprint B4D03348F75E3362B1E1C2A1D1FAA6ECF64D33B0 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease 获取:4 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy InRelease [4,682 B] 命中:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-security InRelease 忽略:6 https://ppa.launchpadcontent.net/jonathonf/tup/ubuntu jammy InRelease 忽略:7 https://ppa.launchpadcontent.net/team-gcc-arm-embedded/ppa/ubuntu jammy InRelease 错误:8 https://ppa.launchpadcontent.net/jonathonf/tup/ubuntu jammy Release 404 Not Found [IP: 2620:2d:4000:1::81 443] 错误:9 https://ppa.launchpadcontent.net/team-gcc-arm-embedded/ppa/ubuntu jammy Release 404 Not Found [IP: 2620:2d:4000:1::81 443] 正在读取软件包列表... 完成 E: 仓库 “https://ppa.launchpadcontent.net/jonathonf/tup/ubuntu jammy Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 E: 仓库 “https://ppa.launchpadcontent.net/team-gcc-arm-embedded/ppa/ubuntu jammy Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
11-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值