add-apt-repository workaround
Tofloor
poster avatar
ti******en@gmail.com
deepin
2017-01-25 03:06
Author
Edited by timothyvda at 2017-1-24 19:06

Hi everyone

I know it's generally not a good idea to use a ubuntu repository on debian as the dependencies can differ. But if you ever feel the need to use ppa's from launchpad (like I do) you can use a little script I wrote or install 'software-properties-common python-software-properties'.

This script will add a new source.list file in /etc/apt/sources.list.d (example: /etc/apt/sources.list.d/0ad.list)

How to install:
1. Clone or donwload repo
  1. git clone https://github.com/timothyvanderaerden/add-apt-repository.git
Copy the Code
2. Make the script executable
  1. chmod +x ./add-apt-repository
Copy the Code
3. (optional) Use it as a global command
  1. sudo mv add-apt-repository /usr/bin
Copy the Code

Then you can use it as
  1. sudo add-apt-repository ppa:user/package
Copy the Code
Or speciffy the ubuntu version
  1. sudo add-apt-repository ppa:user/package zesty
Copy the Code


Reply Favorite View the author
All Replies
wolfblood
deepin
2017-01-25 03:45
#1
Perfect. Thank you!!
Reply View the author