Skip to main content

Ubuntu PPA's in Debian

How to use Ubuntu PPA's in Debian


Ubuntu is the most popular Linux distribution in the world. As a result, it enjoy's more third party support than most other distributions, including Ubuntu's parent, Debian.

Ubuntu packages don't always work on Debian. Actually, more often than not, there's some kind of problem running or installing them. Plus, Debian isn't really set up to interact with Ubuntu PPAs.

Install the Dependencies

Before you start, there are a couple of general build dependencies that you'll need. Of course, you need the general build tools, plus some Debian packaging scripts.
# apt install build-essential devscripts
That's really all! You might need some specific dependencies for the package that you want, but that'll be later.

Add the Source PPA

Ubuntu PPA deb listing

Next, you'll need to find a PPA that you want to use. Most Ubuntu PPAs have a section where you can view the actual deb and deb-src records. On Launchpad, it's under a menu labeled "Technical details about this PPA." You'll need to copy the deb-src record.

Add The PPA To Apt Sources

Open up your text editor of choice as root, and create a .list file under /etc/apt/sources.list.d/ for your new PPA. Select the version of Ubuntu that is the closest match to your version of Debian.
deb-src http://ppa.launchpad.net/commendsarnex/winedri3/ubuntu artful main 

Import The Key



Ubuntu PPA siging key

You've got to import the signing key from the PPA in order for Apt to update your repositories and install. It's usually displayed prominently on the PPA homepage. Copy the key following the /. Then, run the following linux command using your copied key.

Add The Ubuntu PPA Key To Apt

# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys THE_KEY
After Apt imports the key, run an update.
# apt update

Build

Build The Debian Packages

You can actually build your new packages as a regular user. Actually, it's better to do it that way. Create a directory where you want to build your packages, then cd into that directory. Once inside that directory, run the following linux command to build your packages. Substitute the name of the package that you want to build and the version of Ubuntu your PPA is from.
$ apt source -t artful --build packagename
Additional Dependencies Needed To Build

This will take some time, depending on the package. This is the place where you may encounter dependency errors. There are a few ways to solve them. You can manually copy the list provided by the script, and install them. If the package is a variation of an existing Debian package, you can use apt build-dep. Unfortunately, that won't work with your PPA. Apt only allows build-dep from the default repository.

Install With DPKG

Completed Debian Packages

Once you have your packages, you can install them as root using dpkg. It does take wildcards, so as long as there aren't any other Debian packages in your build directory, you can do something like this:
dpkg -i *.deb
Unless there is some strange unforeseen conflict(There shouldn't be, since you built them), your new packages will install on Debian.

Or you can directly install packages as you do in Ubuntu
sudo apt-get install package_name
This might not work on every package

This won't work in every situation, but it will work in most. If the source isn't available, you won't be able to build the packages. You can certainly try installing the existing binaries, but understand that it is a risk to do so.

Comments

Popular posts from this blog

How to install mpv player on Windows with lua scripts and custom configs

If you are reading this blog then I dont need to explain why mpv is best media player across platforms. And today I will guide you how to install this awesome player on windows. 1. Download the latest stable build from this link https://sourceforge.net/projects/mpv-player-windows/files/64bit/ 2. Extract it 3. Go to installer folder 4. Right click on mpv-install.bat and click run as admininstrator. Installation will take some time. After installation is done don't delete that folder coz the folder itself itself is installation directory. 5. For lua scripts create a folder in installation directory named scripts and paste your script in that folder. 6. And copy mpv.conf file in this directory C:\Users\user\AppData\Roaming\mpv 7. That's it 

Screen Tearing in Linux

How to solve screen tearing issue in Linux Unfortunately for Linux fans, screen tearing is, and has been, a persistent annoyance that doesn’t seem to be going anywhere. Though most of the distributions don't face this kind's of problem. But, some of the distributions still face such kind of problems. NVIDIA This isn’t the only solution for NVIDIA, and there are certainly situations that it doesn’t apply to, but it’s one of the better options, and it doesn’t rely on NVIDIA’s graphical utility that doesn’t always play nice with desktop environment configurations. To start, you’ll need to enable setting for the NVIDIA DRM module (modsetting). Start by making a configuration file in the modprobe directory. sudo touch / etc / modprobe.d / nvidia-nomodset.conf Open that file with your favorite text editor, and insert the following line: options nvidia-drm modset = 1 Update your kernel’s initramfs to apply your change. sudo update-initramfs -u When

Extract option missing

Extract option missing in contextual menu You just have to install ark to fix this issue. Ark is a graphical file compression/decompression utility with support for multiple formats, including tar, gzip, bzip2, rar and zip, as well as CD-ROM images. Ark can be used to browse, extract, create, and modify archives. sudo apt-get install ark This will install ark and add options in your contextual menu