How to add a PPA on a server?

1

You can simply add the add-apt-repository command. It’s part of the python-software-properties package.

sudo apt-get install python-software-properties

Side note: in 11.04 they added a symlink to add-apt-repository so it can be run as apt-add-repository which totally makes more sense to me. Everything else apt starts with “apt”.

Second side note: (Tested on 13.10) As the comments below indicated, this may also be necessary:

sudo apt-get install software-properties-common

Let me teach you how to fish. apt-file enables you to find out which package provides a given file. dpkg -S does the same thing, but only for installed packages. apt-file works whether or not the package has been installed.

So, first you install apt-file: sudo apt-get install apt-file. You then need to update its information, just as you have to with apt-get: sudo apt-file update. Now it’s ready for use:

jo-erlend@jedesktop:~$ apt-file search add-apt-repository...
0 0
2

Here we are, talking about installing stuff from PPAs, but we've never posted more about the PPAs themselves. So here's a short guide on how to use a Launchpad PPA in Ubuntu.

Launchpad PPAs ("Personal Package Archive") are repositories hosted on Launchpad which you can use to install (or upgrade) packages that are not available in the official Ubuntu repositories.

The packages are built on the Launchpad servers (not on the users' computers), for the specified Ubuntu version(s). Because the packages are built against a certain Ubuntu version, it's not recommended to use them in Debian for instance (they might not be compatible and can cause conflicts).

How to add a PPA


A PPA can be added either from the command line or using a GUI.

Add a PPA from the command line: I guess you already know that you can add a PPA using the "add-apt-repository" command, but in case you're new to PPAs, here's how to do it:

sudo add-apt-repository...
0 0
3

Here we are, talking about installing stuff from PPAs, but we’ve never posted more about the PPAs themselves. So here’s a short guide on how to use a Launchpad PPA in Ubuntu.

Launchpad PPAs (“Personal Package Archive“) are repositories hosted on Launchpad which you can use to install (or upgrade) packages that are not available in the official Ubuntu repositories.

The packages are built on the Launchpad servers (not on the users’ computers), for the specified Ubuntu version(s). Because the packages are built against a certain Ubuntu version, it’s not recommended to use them in Debian for instance (they might not be compatible and can cause conflicts).

How to add a PPA

A PPA can be added either from the command line or using a GUI.

Add a PPA from the command line: I guess you already know that you can add a PPA using the “add-apt-repository” command, but in case you’re new to PPAs, here’s how to do it:

sudo add-apt-repository ppa:someppa/ppa...
0 0
4

You could set up an apt proxy daemon on the server, something like apt-cacher-ng or apt-mirror for example (sorry, no more info, haven’t tested it, but google seems to have a wealth of information about these packages).

You can add PPA’s in a script and excecute the script when you need to re-install these PPA’s (for instance because of re-installing your system).

Example…

Execute from command line:

touch install_ppa chmod 775 install_ppa gedit install_ppa

and copy/paste your PPAs into the file. Rearrange your code to be efficient. Example:

sudo add-apt-repository ppa:tiheum/equinox sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa sudo apt-get update sudo apt-get install gtk2-engines-equinox faenza-icon-theme equinox-theme sudo apt-get upgrade sudo apt-get dist-upgrade nautilus -q

Put the file on a partition you do not format during installing or on a stick and you can execute the file thus adding these PPA’s. You can also add...

0 0
5

Last month I mentioned that we were generating a unique key for each Personal Package Archive.

Well, that’s complete meaning each PPA now has its own key that’s used to sign its packages. And if you create a new PPA, Launchpad will generate a new key for it within a couple of hours.

This means that you now need to add the PPA’s key to apt before you install any of its packages. It’s really easy: all you need to do is copy the PPA’s public key and import it using System->Administration->Software Sources and then the Authentication tab.

Here’s a screencast that takes you through the steps:

(Higher quality Ogg Theora version)

Of course, you can also do it in the terminal. There’s more on the PPA help page.

Note: the PPA keys help you see that the package hasn’t been altered since Launchpad built it on behalf of the PPA owner. It does not mean that Launchpad, Ubuntu or Canonical endorse the packages. You should ensure you trust the PPA owner...

0 0
6

The PPA (personal package archives) is one way installing softwares on Ubuntu. Some programs don’t provide the built .deb double-click-install packages and by default not available in Ubuntu Software Center. Apart from compiling from source code by user themself, the personal built packages managed by PPA is good choice.

NOTE: PPAs might break your system, use them at your own risk!

Add a PPA and install software in Ubuntu:

Assume that you get a PPA named ppa:ubuntu-test/test. You can find ppa name on launchpad.net:

The easiest and fastest way to add the ppa is using this command in terminal. (Search Terminal in dash or use Ctrl+Alt+T to launch)

sudo add-apt-repository ppa:ubuntu-test/test

then update the source via:

sudo apt-get update

finally install software by:

sudo apt-get install PACKAGENAME

If you prefer a graphical way to add PPA. Just launch Ubuntu Software Center, head to “Edit -> Software...

0 0
7
...
0 0
8

Question: I added a third-party PPA repository on my Ubuntu box some time ago. How can I remove the PPA repository?

A Personal Package Archives (PPA) is a Ubuntu way to allow independent developers and contributors to build and distribute any custom packages as a third-party APT repository via Launchpad. If you are a Ubuntu user, chances are that you have added some popular third-party PPA repositories to your Ubuntu system. If you want to remove any pre-configured PPA repository, here is how to do it.

Suppose you have a third-party PPA repository named "ppa:webapps/preview" added on your Ubuntu system, as follows.

$ sudo add-apt-repository ppa:webapps/preview

If you want to delete a PPA repository alone, run the following command.

$ sudo add-apt-repository --remove ppa:someppa/ppa

Note that the above command does not touch any packages installed or upgraded from the PPA itself.

If you want to delete a PPA repository as well as...

0 0
9
...
0 0
10

Part of the appeal of Ubuntu is its six-month release cycle. Every six months a new version of the free operating system is released into the wild, complete with updates for all of your favorite software. This is great, but can be a trifle disappointing from time to time. For example, if a new version of your favorite software comes out you may have to wait until the next version of Ubuntu comes out to try it.

The solution to this is the PPA. This is a repository, provided by Canonical (the company behind Ubuntu), that allows developers and enthusiasts to offer up-to-date versions of software to all Ubuntu users. Originally PPAs were limited to programmers and testers, but Canonical opened PPAs to everyone in late 2007.


I constantly mention PPAs in my Ubuntu articles because for the newest software, installing a PPA is the simplest way to get everything working. But what is a PPA and why would you want to use one?

What’s A PPA?

Those new to...

0 0
11
Mar 13, 2014

I have server that has a SINGLE customer on it - this is not economical to run under PPA - how do I remove it from the PPA management and not disrupt the current site/email on it?

The plan is to run it on webmin - there is no way it can justify PPA for 1 site.

Plesk Automation :: Error While Installing Automation During (Getting SELinux) Step Convert From Plesk VPS To CPanel VPS Plesk Automation :: Failure To Install Automation On Centos 6.5 Plesk Automation :: Automation Installer Breaks Yum In CentOS 6.6 Plesk 12.x / Linux :: Easy Way To Convert Subdomain Into Domain? Plesk 11.x / Linux :: Convert Mailbox To Lowercase - Failed Error Plesk Automation :: Failed To Add Linux Web Server Plesk Automation :: Try To Migrate Linux Server Plesk Automation :: Unable To Add 2012 R2 Server Plesk Automation :: Error During PPA Installation On Server Plesk Automation :: Cannot Migrate To External DB Server Plesk Automation :: Get All Domain Present On...
0 0
12

It is not necessarily the best answer, but this will function:

The old-fashioned way (pre Ubuntu 9.10, they call it) of editing /etc/apt/sources.list still works. You will also need to get the GPG key on the system manually.

On older (pre 9.10) Ubuntu systems:

Step 1: Visit the PPA's overview page in Launchpad. Look for the heading that reads Adding this PPA to your system and click the Technical details about this PPA link.

Step 2: Use the Display sources.list entries drop-down box to select the version of Ubuntu you're using.

Step 3: You'll see that the text-box directly below reads something like this:

deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main

Copy those lines.

Step 4: Open a terminal and type:

sudo gedit /etc/apt/sources.list

This will open a text editor containing the list of archives that your system is currently using. Scroll...

0 0
13

I'm trying to add the ppa repository (as a root) with the following command:

export HTTP_PROXY="http://firstname.surname@xxx.com:my_pass@165.x.x.232:8080" add-apt-repository ppa:nilarimogard/webupd8 Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 125, in ppa_info = get_ppa_info_from_lp(user, ppa_name) File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp curl.perform() pycurl.error: (56, 'Received HTTP code 407 from proxy after CONNECT')

Unfortunately it doesn't work. Looks like curl is connecting to the proxy, but the proxy says that Authentication is Required. I've tried with .curlrc, http_proxy env instead, but it doesn't work.

strace -e network,write -s1000 add-apt-repository ppa:nilarimogard/webupd8 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("165.x.x.232")}, 16) = -1...
0 0
14

Launchpad ppa

On ubuntu, lots of software can be installed from the launchpad ppa repository. The repository url has to be added to the apt sources list on ubuntu and then the software can be installed from the package manager like synaptic. However for Debian there is no such ppa repository. But since ubuntu is based on Debian and uses the same apt based package management system, in many cases its possible to use the ubuntu ppa repositories in debian directly.

Debian 7

On debian 7 the add-apt-repository command is available and can be used to add any launchpad ppa repository in a single command.

# add-apt-repository 'deb http://ppa.launchpad.net/shimmerproject/ppa/ubuntu quantal main'

The section titled 'Technical details about this PPA' will contain the deb urls for the given ppa repository.
The ppa shown above can be found at https://launchpad.net/~shimmerproject/+archive/ppa.

Older debian versions

On older versions of...

0 0
15

There are literally thousands of Ubuntu programs available to meet the needs of Ubuntu users. Many of these programs are stored in software archives commonly referred to as repositories. Repositories make it easy to install new software, while also providing a high level of security, since the software is thoroughly tested and built specifically for each version of Ubuntu.

Ubuntu distinguishes between software that is "free" and software that is not free. For details of Ubuntu's Free Software Philosophy please see here.

The four main repositories are:

Main - Canonical-supported free and open-source software.

Universe - Community-maintained free and open-source software.

Restricted - Proprietary drivers for devices.

Multiverse - Software restricted by copyright or legal issues.

The Ubuntu Install CDs contain software from the "Main" and "Restricted" repositories, so if you have no internet connection you can still install...

0 0
16

This page describes how to manage software repositories from the command line. (GUI tools are also available: Managing Repositories in Ubuntu or Kubuntu).

If you are using a minimal install or server install you will need to be familiar with a terminal based text editor like nano. If you are using a GUI install you can use Nano or GEdit.

The Basics

Ubuntu uses apt for package management. Apt stores a list of repositories or software channels in the file

/etc/apt/sources.list

and in any file with the suffix .list under the directory

/etc/apt/sources.list.d/

See man sources.list for more about this storage mechanism.

By editing these files from the command line, we can add, remove, or temporarily disable software repositories.

Note: It's always a good idea to backup a configuration file like sources.list before you edit it. To do so, issue the following command:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup...
0 0
17

If you’d like to build your own tile server, using packages can save you a good deal of installation work.

These packages work with Ubuntu Linux versions 12.04 LTS (Precise Pangolin) and above. After installation, you should have your own working tileserver with the standard OSM Mapnik stylesheet, into which you can import an extract of the OSM data for rendering.

It is based on the same software that OSM’s own tile server uses:

mod_tile for serving renderd as the rendering daemon mapnik for the actual rendering

The main aim of these packages is to simplify installation, by automating as much as possible into packaging scripts.

Installation

The following commands need to be entered into the terminal to set things up:

In case you do not have add-apt-repository installed, add it with:

for Ubuntu 12.04

sudo apt-get install python-software-properties

for Ubuntu 12.10 and later

sudo apt-get install...
0 0
18

Binary Releases

Prebuilt Packages for Linux and BSD

Most Linux distributions and BSD variants have NGINX in the usual package repositories and they can be installed via whatever method is normally used to install software (apt-get on Debian, emerge on Gentoo, ports on FreeBSD, etc).

Be aware that these packages are often somewhat out-of-date. If you want the latest features and bugfixes, it’s recommended to build from source or use packages directly from nginx.org.

Official Red Hat/CentOS packages

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS:

[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1

RHEL:

[nginx] name=nginx repo baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/ gpgcheck=0 enabled=1

Due to differences between how CentOS, RHEL, and Scientific Linux populate the...

0 0