Showing posts with label ppa. Show all posts
Showing posts with label ppa. Show all posts
Thursday, September 14, 2017
Ubuntu Package Management Part 4 PPA Third Party Repository
Ubuntu Package Management Part 4 PPA Third Party Repository

Subscribe to UbuntuBuzz Telegram Channel https://telegram.me/ubuntubuzz to get article updates directly.
1) What Is Repository?
Read the previous part about Sources.list.
2) What Is Third-Party Repository?
Third-party repository is a term to mention �unofficial repository�. It means the software packages stored inside this repo are not available in the official repo; or the repo is created by any party outside the official Ubuntu Developer Team.
3) What Is PPA?
Personal Package Archive (PPA) is a kind of third-party repository to store software packages for Ubuntu users. PPA service is a part of Launchpad, thus a service of Canonical, the company behind Ubuntu. The main purpose of a PPA is to deliver software directly to the users without entering the official repository before. Every PPA has an addressand this address can be added to sources.list in your Ubuntu system. APT will read the address and install the software packages from PPA for you (so again, a PPA is just a repository). This term PPA for Ubuntu is more or less synonymous with AURfor Arch Linux or COPR for Fedora or SBO for Slackware. Read more about PPA in Launchpad Help https://help.launchpad.net/Packaging/PPA.
4) Do You Need PPA?
Yes, you will need PPA for many popular software applications that are not available in Ubuntu official repository. There are two possible reasons you need PPA: either it is software version, or software availability. First condition: sometimes certain software available in both PPA and official repo (with the PPA one�s are newer, so it�s software version); second condition: a lot of certain software available only in PPA and not in official repo (it�s software availability).
For example, there are PPA providing very latest version of Scribus, GIMP, Inkscape, Blender, Krita, MyPaint, FreeCAD, and so on. Many users install those software from PPA instead because the official repo versions are considerably old.
5) Maintain PPA Addresses
To maintain PPA addresses in an Ubuntu system, every Ubuntu user has two choices: using GUI and using console. You can use the GUI program named �Software & Updates� in your menu, or run the command $ software-properties-gtk . The rest of this article does not explain the GUI method, instead, it explains the console method.
Using GUI:

Using console:

4) Find A PPA
Look at Launchpad (https://launchpad.net) or search through search engines. The majority of PPA for Ubuntu are available in Launchpad. If you don�t have time searching, I have collected many PPA addresses for popular software applications for Ubuntu:
- http://www.ubuntubuzz.com/2016/11/list-of-ppa-repositories-for-ubuntu-16.04-xenial-xerus.html
- http://www.ubuntubuzz.com/2016/11/list-of-ppa-repositories-for-ubuntu-16.10-yakkety-yak.html
5) Add A PPA Address as Sources.list
Generally, to add a PPA address in Ubuntu system, you edit the sources.list. Then you should run apt-get update command. This apt-get update is needed in order to download the �repository map� of that PPA repository so APT can download packages from it. This article uses 2 PPAs as example, GIMP PPA and Inkscape PPA, to show how to add a PPA address. Both PPA provides software packages for Ubuntu 14.04, 16.04, until 16.10.
- GIMP PPA by Otto https://launchpad.net/~otto-kesselgulasch/+archive/ubuntu/gimp-edge
- Inkscape PPA by Inkscape Developers Team https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable
6) Add PPA Manually
Edit /etc/apt/sources.list file manually by placing the PPA address correctly. I use Gedit text editor again to demonstrate it. See following steps:
For GIMP PPA:
- Visit the PPA web page address https://launchpad.net/~otto-kesselgulasch/+archive/ubuntu/gimp
- Look for �Technical details about this PPA� link, click that link, you must see a box appears showing two lines of sources.list.
- Click �Choose your Ubuntu version button� and select your Ubuntu version from there. This will change the two lines automatically to suit your selected Ubuntu version.
- Copy the two lines of source code there.
- $ sudo gedit /etc/apt/sources.list
- Paste the two lines you copied into a new blank line at the most bottom.
- Save the sources.list file.
- $ sudo apt-get update
For Inkscape PPA:
- Visit the PPA web page address https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable.
- Do point 2 until 8 like the GIMP PPA above.
Screenshot:

7) Add PPA via Special Command
The most common and easiest way to add PPA address is using add-apt-repositorycommand line. This command will automatically add a special .list file to /etc/apt/sources.list.d/ directory for each PPA. In other words, this command doesn�t touch the main sources.list to add PPA. To demonstrate it, I show here the 2 examples again.
For GIMP PPA:
- Visit the PPA web page address https://launchpad.net/~otto-kesselgulasch/+archive/ubuntu/gimp-edge.
- Look for one address code �ppa:packager_name/ppa_name� and for this case it is ppa:otto-kesselgulasch/gimp-edge.
- Copy that PPA address code.
- $ sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge
- Terminal will ask for your permission. Press Enter to go next, or press Ctrl+C to cancel.
- $ sudo apt-get update
For Inkscape PPA:
- Visit the PPA web page address https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable.
- Look for one address code �ppa:packager_name/ppa_name� and for this case it is ppa:inkscape.dev/stable.
- Do point 3 until 6 like GIMP PPA above.
Screenshot:


8) Install Software from PPA
This is the purpose of using a PPA repository. To install software package from PPA, simply run apt-get install command with the <package_name> of the software available in that PPA. Regarding the 2 examples mentioned, so the command lines are:
Synopsis:
$ sudo apt-get install <package_name>
GIMP from PPA:
$ sudo apt-get install gimp
Inkscape from PPA:
$ sudo apt-get install inkscape
9) Comparing Package Versions
Once you add a PPA address and obtain its �repository map�, you can see the both version of same software packages both in PPA and official repo. Use apt-cache command to do it like this.
Synopsis:
$ apt-cache policy <package_name>
GIMP versions:
$ apt-cache policy gimp
Inkscape version:
$ apt-cache policy inkscape
Output for GIMP:

Output for Inkscape:

Explanation:
- For GIMP: you see that there are two versions, version 2.9.5 from PPA and version 2.8.18 from official repo.
- For Inkscape: you see that there are two versions, version 0.92 from PPA and version 0.91 from official repo.
10) Remove PPA Address Automatically
This method is easier for beginner. To remove a PPA address (only the address, not the software) from your sources.list system, use add-apt-repositorycommand again. Remember that you need to run apt-get update once you change any sources.list setting. I show you for the 2 examples above.
For GIMP:
$ sudo add-apt-repository --remove ppa:otto-kesselgulasch/gimp
$ sudo apt-get update
For Inkscape:
$ sudo add-apt-repository --remove ppa:inkscape.dev/stable
$ sudo apt-get update
Explanation:
The command above will delete the PPA address. However, that command does not delete its *.list file. You may check /etc/apt/sources.list.d/ directory for the file.
11) Remove PPA Address Manually
This method is needed when you experience some trouble. To remove PPA address manually, if you added it manually too, then you just need to delete its lines in sources.list. But to remove PPA address manually if you added it automatically (via add-apt-repository), then you should know the files and delete them manually.
Method 1:
- $ sudo gedit /etc/apt/sources.list
- Look for your PPA address line there, such as gimp-edge or inkscape-stable.
- Delete that lines.
- Save sources.list file.
- $ sudo apt-get update
Method 2:
- Look at /etc/apt/sources.list.d/ directory.
- Look for any .list file named with your PPA address name, such as gimp-edge or inkscape-stable.
- Assume the PPA address file name is �gimp-edge.list� then the delete command is:
- $ sudo rm /etc/apt/sources.list.d/gimp-edge.list*
- Then perform a reload:
- $ sudo apt-get update
11) Remove Software Packages from PPA
To remove software package installed from PPA, use apt-get remove normally. There are 2 examples:
For GIMP:
$ sudo apt-get remove gimp
For Inkscape:
$ sudo apt-get remove inskcape
Note:
Remember that deleting the package is not the same as deleting the PPA address. After removing the package, if you install the same package again next time, your system will choose the PPA version not the official repository version. For that reason, you may delete the PPA address either so next time APT will install package from official repository.
Additional Information
Once you use Ubuntu you use free software and live in free software community. One of the meaning of being free is everyone in whole community has the right to distribute software. So it means there are still many third-party repositories available for Ubuntu outside Launchpad. One of the biggest of them is openSUSE OpenBuildService https://build.opensuse.org.
References
- http://askubuntu.com/questions/4983/what-are-ppas-and-how-do-i-use-them
- http://askubuntu.com/questions/307/how-can-ppas-be-removed
- http://unix.stackexchange.com/questions/6766/is-there-is-a-ppa-service-equivalent-in-the-fedora-world
download file now
Labels:
4,
management,
package,
part,
party,
ppa,
repository,
third,
ubuntu
Wednesday, August 23, 2017
Ubuntu Oracle Java 8 from PPA
Ubuntu Oracle Java 8 from PPA
You can easily add the official Oracle Java to Ubuntu if pages like webcam control panels or netbanking sites require it to work properly.
Write this to the terminal:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Make sure that all programs will use this version of java by manually setting it:
sudo update-java-alternatives -s java-8-oracle
download file now
Sunday, August 20, 2017
Unable to add ppa behind proxy
Unable to add ppa behind proxy
While trying to add softwares from sources other than the central debian repository, we may have to add a PPA (Personal Package Archive), so that the software(apt or aptitude) which installs other softwares fetches packages for us from the new location.
The default or normal method to add a PPA via command line is as follows:
However, if you are behind a proxy, you may not be able to add this way and when you try to do something like this:
you may get an error like this:
This may happen even if you have added your proxy using System Settings -> Network -> Network proxy or in
So lets get started. Please note that all commands and text hereon are case-senstive, take care not to make any typos hereon, to avoid messing up your system):
You are now ready to add PPA using the terminal. Please let me know, via comments, if you face any issues while doing this.
Source: The bug filed regarding this at launchpad.
The default or normal method to add a PPA via command line is as follows:
sudo add-apt-repository ppa:something
However, if you are behind a proxy, you may not be able to add this way and when you try to do something like this:
sudo add-apt-repository ppa:gnome3-team/gnome3
you may get an error like this:
Cannot access PPA (https://launchpad.net/api/1.0/~gnome3-team/+archive/gnome3) to get PPA information, please check your internet connection.
This may happen even if you have added your proxy using System Settings -> Network -> Network proxy or in
/etc/apt/apt.conf
or even in /home/$USER/.bashrc
. This is because the sudo
user is not aware of the proxy set in the places above. This tutorial explains how to make this work to add a PPA the terminal way. So lets get started. Please note that all commands and text hereon are case-senstive, take care not to make any typos hereon, to avoid messing up your system):
- Open a terminal using
Ctrl
+Alt
+t
- Type
export http_proxy="http://username:password@your proxy":"port"
export https_proxy="https://username:password@your proxy":"port"
Remember to replace "username" by your username and "password" by your password, if applicable, "your proxy" by your proxy address like 10.1.101.150 or proxy.college and "port" by something like 3128. - Now we have two methods to export these parameter to "sudo" user:
- Method 1:
- Type
sudo visudo
- Add
Defaults env_keep="https_proxy"
to the end of the file. (Note thatDefaults
has a capital "d") - Type
Ctrl
+x
andy
to save and exit.
- Method 2:
- Whenever you use sudo command, export the environment variables of the user you are currently using. To do this, when you use
sudo
, usesudo -E
You are now ready to add PPA using the terminal. Please let me know, via comments, if you face any issues while doing this.
Source: The bug filed regarding this at launchpad.
download file now
Wednesday, August 16, 2017
Twitter Client ‘Corebird’ 1 0 Released PPA for Ubuntu 15 04
Twitter Client ‘Corebird’ 1 0 Released PPA for Ubuntu 15 04

Open-source GTK3 twitter client �Corebird� 1.0 was released recently with lots of improvements. users of Ubuntu 15.04 can now install it from PPA.
Corebird is a native GTK+ Twitter client for Linux which has a modern and responsive design that looks kinda similar to the official Twitter app for Mac.
It�s one of the few remaining Twitter apps still in active development for Linux. With the advantage of the latest GTK+3 features, the application makes use of the new Header Bars. With the gstreamer and gstreamer plugins, corebird allows to view any videos, animated GIFs (added in 1.0 release).
Changes in Corebird 1.0:
- All dialogs now use client-side decorations if the environment dictates it, otherwise they fall back to server-side decorations (compose dialog is excluded).
- Many layout updates
- The compose window now allows for up to 4 pictures to be uploaded.
- now save additional information about the account which makes it possible for blocked users to be actually blocked, i.e. streamed tweets won�t appear in your timeline anymore.
- When (un)following someone, now also correctly show/hide their retweets in the stream.
- The DM page now sorts threads with unread messages first.
- The @handle completion known from the compose window is now also available when composing Direct Messages, as well as in the account settings for the description.
- Everything app-specific should now be hidpi ready, the only thing missing are assets loaded from Twitter directly, i.e. avatars and media.
- Notifications should now get withdrawn whenever it makes sense, i.e. if you read a Direct Message before dismissing the notification, it should get withdrawn automatically.
- The hover buttons moved to a right-click menu on every tweet.
- Plurals are properly localized.
- We now also respect muted users (even though there�s no UI to mute someone)
- A user�s verification status is now also shown in the tweet info page.
- Everything should now work when the user�s @handle (aka screen_name) changes.
- Switching to the same page (i.e. going to a profile from the profile page) now works much better, including the swipe transition as well as proper equality checking.
- Invalid inline media (file size too big, 404, �) should now be properly detected and reacted upon (i.e. remove the widget in the stream, add the link back).
- Underlines in @handles are now properly displayed in the app menu (i.e. the �open account� submenu)
- Animated gifs from Twitter are now also handled (just like other videos).
- Tweets in timelines are now single-click activated. This unifies the behavior with all other lists in the application. Since this interferes with certain user behaviors, there�s a setting to switch back to double-click activation.
- Based on a user�s protection status, we now disable (or hide) retweet buttons of tweets.
Install Corebird 1.0 in Ubuntu:
Due to the updated dependencies (GTK >= 3.14), Corebird 1.0 only available in PPA for Ubuntu 15.04 Vivid.
Open terminal (Ctrl+Alt+T) and run below commands one by one to add PPA and install Corebird:
sudo add-apt-repository ppa:ubuntuhandbook1/corebird
sudo apt-get update
sudo apt-get install corebird
Above commands will also install an old version (Corebird 0.9) for Ubuntu 14.10 Utopic.
download file now
Tuesday, August 8, 2017
Ubuntu Install Nemo file manager from PPA again
Ubuntu Install Nemo file manager from PPA again
I love Nemo, but it is a little bit unstable. You can reach a slightly newer version of it from the webupd8team PPAs, so why not?
sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller
download file now
Subscribe to:
Posts (Atom)