How can I add a PPA with only Ubuntu releases to a Debian machine?How to add repository from shell in...

What is a Romeo Word™?

Could a US citizen born through "birth tourism" become President?

Tuning G3 string to A3 guitar

Is encryption still applied if you ignore the SSL certificate warning for self-signed certs?

How to not confuse readers with simultaneous events?

How many opportunity attacks can you make per turn before becoming exhausted?

How to tell readers that I know my story is factually incorrect?

Do Australia and New Zealand have a travel ban on Somalis (like Wikipedia says)?

What is this green alien supposed to be on the American covers of the "Hitchhiker's Guide to the Galaxy"?

Is it possible to invoke "super" with less ambiguous results?

Wait or be waiting?

How to tell if JDK is available from within running JVM?

How do you send money when you're not sure it's not a scam?

How to extract interesting piece of output in bash

How long were the Apollo astronauts allowed to breathe 100% oxygen at 1 atmosphere continuously?

Batch processing/extracting raw data of one raster using one shapefile (with many polygons)?

Do pedestrians imitate auto traffic?

Random piece of plastic

Why don't humans perceive waves as twice the frequency they are?

Why does a tetrahedral molecule like methane have a dipole moment of zero?

Locked-up DOS computer beeped on keypress. What mechanism caused that?

Is this Android phone Android 9.0 or Android 6.0?

How to belay quickly ascending top-rope climbers?

What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?



How can I add a PPA with only Ubuntu releases to a Debian machine?


How to add repository from shell in Debian?how to do version-specific backup/restore of Debian packages?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I know (thanks Jim Paris) that I can use add-apt-repository on Debian by first:



sudo apt-get install software-properties-common


However, I still can't simply run (for example):



sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update


...because the distro folder for that PPA only lists Ubuntu releases (artful, bionic...) not Debian releases (jessie, stretch...). So apt fails to find packages for my release.



I can solve this manually (decide the most appropriate Ubuntu rleease, download the repo keys, modify /etc/apt-get/sources.list), but I'd prefer to do it from the command line.



Can I pass a command-line parameter, or otherwise convince add-apt-repository to pick an Ubuntu release? Something like:



sudo add-apt-repository --force-distro=artful ppa:nextcloud-devs/client









share|improve this question














bumped to the homepage by Community 26 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • use snap to install the nextcloud-client : snap install nextcloud-client.

    – GAD3R
    Jun 6 '18 at 15:55


















0















I know (thanks Jim Paris) that I can use add-apt-repository on Debian by first:



sudo apt-get install software-properties-common


However, I still can't simply run (for example):



sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update


...because the distro folder for that PPA only lists Ubuntu releases (artful, bionic...) not Debian releases (jessie, stretch...). So apt fails to find packages for my release.



I can solve this manually (decide the most appropriate Ubuntu rleease, download the repo keys, modify /etc/apt-get/sources.list), but I'd prefer to do it from the command line.



Can I pass a command-line parameter, or otherwise convince add-apt-repository to pick an Ubuntu release? Something like:



sudo add-apt-repository --force-distro=artful ppa:nextcloud-devs/client









share|improve this question














bumped to the homepage by Community 26 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • use snap to install the nextcloud-client : snap install nextcloud-client.

    – GAD3R
    Jun 6 '18 at 15:55














0












0








0








I know (thanks Jim Paris) that I can use add-apt-repository on Debian by first:



sudo apt-get install software-properties-common


However, I still can't simply run (for example):



sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update


...because the distro folder for that PPA only lists Ubuntu releases (artful, bionic...) not Debian releases (jessie, stretch...). So apt fails to find packages for my release.



I can solve this manually (decide the most appropriate Ubuntu rleease, download the repo keys, modify /etc/apt-get/sources.list), but I'd prefer to do it from the command line.



Can I pass a command-line parameter, or otherwise convince add-apt-repository to pick an Ubuntu release? Something like:



sudo add-apt-repository --force-distro=artful ppa:nextcloud-devs/client









share|improve this question














I know (thanks Jim Paris) that I can use add-apt-repository on Debian by first:



sudo apt-get install software-properties-common


However, I still can't simply run (for example):



sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update


...because the distro folder for that PPA only lists Ubuntu releases (artful, bionic...) not Debian releases (jessie, stretch...). So apt fails to find packages for my release.



I can solve this manually (decide the most appropriate Ubuntu rleease, download the repo keys, modify /etc/apt-get/sources.list), but I'd prefer to do it from the command line.



Can I pass a command-line parameter, or otherwise convince add-apt-repository to pick an Ubuntu release? Something like:



sudo add-apt-repository --force-distro=artful ppa:nextcloud-devs/client






debian ubuntu apt ppa






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 6 '18 at 15:01









david.libremonedavid.libremone

92510 silver badges42 bronze badges




92510 silver badges42 bronze badges





bumped to the homepage by Community 26 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 26 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • use snap to install the nextcloud-client : snap install nextcloud-client.

    – GAD3R
    Jun 6 '18 at 15:55



















  • use snap to install the nextcloud-client : snap install nextcloud-client.

    – GAD3R
    Jun 6 '18 at 15:55

















use snap to install the nextcloud-client : snap install nextcloud-client.

– GAD3R
Jun 6 '18 at 15:55





use snap to install the nextcloud-client : snap install nextcloud-client.

– GAD3R
Jun 6 '18 at 15:55










1 Answer
1






active

oldest

votes


















0














It is highly recommended that you do not add third party repos



However, if you understand the risks and are familiar with apt-pinning, you can add and manage 3rd party repositories. I do not recommend you do this to your Debian install and instead install the package from the official stable or back-ports repository. If not there installing the package from source is another viable method.



Again, if you require this package and it is not found in the repos and you want to maintain it using apt, as long as you understand the risks you can follow these steps.



Issue at hand



You are attempting to add the ppa:nextcloud-devs/client repository using the add-apt-repository command. You are unable to get apt-get update to work with the new repo as it uses Ubuntu version names and your sources.list being Debian uses Debian version names.



Solution



I am referencing this guide on how to add an Ubuntu ppa to your Debian system.



You will run the following command as sudo (or root):



add-apt-repository ppa:nextcloud-devs/client



Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/, it should look like this:



deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main


Now change wheezy to the Ubuntu version you want to use. For example, xenial or 16.04.



deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Now you should user apt-pinning to make sure that your system maintains some sanity. I highly recommend that you make your stable repos have a higher priority than your ppa. Your /etc/apt/preferences.d/ should have a reponame.preferences for each repo and the contents of each should be like this:



#/etc/apt/preferences.d/stable.preferences
Package: *
Pin: release a=stable
Pin-Priority: 1000

#/etc/apt/preferences.d/your-ppa-name.preferences
Package: *
Pin: release a=your-ppa-name
Pin-Priority: 750


Now you can run apt update and the ppa should be successfully installed.



Conclusion



I recommend against doing this and would suggest that you use a distro that supports the package you wish to install and avoid using third party repos. However if you know what you are doing this should work.



If you have any questions or concerns about this post, do not hesitate to ask me. If there are any corrections or misconceptions in this answer please inform me. I can update the post as necessary.



Best of Luck!






share|improve this answer



















  • 1





    You can also do this: wiki.debian.org/CreatePackageFromPPA

    – OrangeDog
    Mar 11 at 13:21














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448230%2fhow-can-i-add-a-ppa-with-only-ubuntu-releases-to-a-debian-machine%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














It is highly recommended that you do not add third party repos



However, if you understand the risks and are familiar with apt-pinning, you can add and manage 3rd party repositories. I do not recommend you do this to your Debian install and instead install the package from the official stable or back-ports repository. If not there installing the package from source is another viable method.



Again, if you require this package and it is not found in the repos and you want to maintain it using apt, as long as you understand the risks you can follow these steps.



Issue at hand



You are attempting to add the ppa:nextcloud-devs/client repository using the add-apt-repository command. You are unable to get apt-get update to work with the new repo as it uses Ubuntu version names and your sources.list being Debian uses Debian version names.



Solution



I am referencing this guide on how to add an Ubuntu ppa to your Debian system.



You will run the following command as sudo (or root):



add-apt-repository ppa:nextcloud-devs/client



Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/, it should look like this:



deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main


Now change wheezy to the Ubuntu version you want to use. For example, xenial or 16.04.



deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Now you should user apt-pinning to make sure that your system maintains some sanity. I highly recommend that you make your stable repos have a higher priority than your ppa. Your /etc/apt/preferences.d/ should have a reponame.preferences for each repo and the contents of each should be like this:



#/etc/apt/preferences.d/stable.preferences
Package: *
Pin: release a=stable
Pin-Priority: 1000

#/etc/apt/preferences.d/your-ppa-name.preferences
Package: *
Pin: release a=your-ppa-name
Pin-Priority: 750


Now you can run apt update and the ppa should be successfully installed.



Conclusion



I recommend against doing this and would suggest that you use a distro that supports the package you wish to install and avoid using third party repos. However if you know what you are doing this should work.



If you have any questions or concerns about this post, do not hesitate to ask me. If there are any corrections or misconceptions in this answer please inform me. I can update the post as necessary.



Best of Luck!






share|improve this answer



















  • 1





    You can also do this: wiki.debian.org/CreatePackageFromPPA

    – OrangeDog
    Mar 11 at 13:21
















0














It is highly recommended that you do not add third party repos



However, if you understand the risks and are familiar with apt-pinning, you can add and manage 3rd party repositories. I do not recommend you do this to your Debian install and instead install the package from the official stable or back-ports repository. If not there installing the package from source is another viable method.



Again, if you require this package and it is not found in the repos and you want to maintain it using apt, as long as you understand the risks you can follow these steps.



Issue at hand



You are attempting to add the ppa:nextcloud-devs/client repository using the add-apt-repository command. You are unable to get apt-get update to work with the new repo as it uses Ubuntu version names and your sources.list being Debian uses Debian version names.



Solution



I am referencing this guide on how to add an Ubuntu ppa to your Debian system.



You will run the following command as sudo (or root):



add-apt-repository ppa:nextcloud-devs/client



Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/, it should look like this:



deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main


Now change wheezy to the Ubuntu version you want to use. For example, xenial or 16.04.



deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Now you should user apt-pinning to make sure that your system maintains some sanity. I highly recommend that you make your stable repos have a higher priority than your ppa. Your /etc/apt/preferences.d/ should have a reponame.preferences for each repo and the contents of each should be like this:



#/etc/apt/preferences.d/stable.preferences
Package: *
Pin: release a=stable
Pin-Priority: 1000

#/etc/apt/preferences.d/your-ppa-name.preferences
Package: *
Pin: release a=your-ppa-name
Pin-Priority: 750


Now you can run apt update and the ppa should be successfully installed.



Conclusion



I recommend against doing this and would suggest that you use a distro that supports the package you wish to install and avoid using third party repos. However if you know what you are doing this should work.



If you have any questions or concerns about this post, do not hesitate to ask me. If there are any corrections or misconceptions in this answer please inform me. I can update the post as necessary.



Best of Luck!






share|improve this answer



















  • 1





    You can also do this: wiki.debian.org/CreatePackageFromPPA

    – OrangeDog
    Mar 11 at 13:21














0












0








0







It is highly recommended that you do not add third party repos



However, if you understand the risks and are familiar with apt-pinning, you can add and manage 3rd party repositories. I do not recommend you do this to your Debian install and instead install the package from the official stable or back-ports repository. If not there installing the package from source is another viable method.



Again, if you require this package and it is not found in the repos and you want to maintain it using apt, as long as you understand the risks you can follow these steps.



Issue at hand



You are attempting to add the ppa:nextcloud-devs/client repository using the add-apt-repository command. You are unable to get apt-get update to work with the new repo as it uses Ubuntu version names and your sources.list being Debian uses Debian version names.



Solution



I am referencing this guide on how to add an Ubuntu ppa to your Debian system.



You will run the following command as sudo (or root):



add-apt-repository ppa:nextcloud-devs/client



Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/, it should look like this:



deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main


Now change wheezy to the Ubuntu version you want to use. For example, xenial or 16.04.



deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Now you should user apt-pinning to make sure that your system maintains some sanity. I highly recommend that you make your stable repos have a higher priority than your ppa. Your /etc/apt/preferences.d/ should have a reponame.preferences for each repo and the contents of each should be like this:



#/etc/apt/preferences.d/stable.preferences
Package: *
Pin: release a=stable
Pin-Priority: 1000

#/etc/apt/preferences.d/your-ppa-name.preferences
Package: *
Pin: release a=your-ppa-name
Pin-Priority: 750


Now you can run apt update and the ppa should be successfully installed.



Conclusion



I recommend against doing this and would suggest that you use a distro that supports the package you wish to install and avoid using third party repos. However if you know what you are doing this should work.



If you have any questions or concerns about this post, do not hesitate to ask me. If there are any corrections or misconceptions in this answer please inform me. I can update the post as necessary.



Best of Luck!






share|improve this answer













It is highly recommended that you do not add third party repos



However, if you understand the risks and are familiar with apt-pinning, you can add and manage 3rd party repositories. I do not recommend you do this to your Debian install and instead install the package from the official stable or back-ports repository. If not there installing the package from source is another viable method.



Again, if you require this package and it is not found in the repos and you want to maintain it using apt, as long as you understand the risks you can follow these steps.



Issue at hand



You are attempting to add the ppa:nextcloud-devs/client repository using the add-apt-repository command. You are unable to get apt-get update to work with the new repo as it uses Ubuntu version names and your sources.list being Debian uses Debian version names.



Solution



I am referencing this guide on how to add an Ubuntu ppa to your Debian system.



You will run the following command as sudo (or root):



add-apt-repository ppa:nextcloud-devs/client



Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/, it should look like this:



deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main


Now change wheezy to the Ubuntu version you want to use. For example, xenial or 16.04.



deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Now you should user apt-pinning to make sure that your system maintains some sanity. I highly recommend that you make your stable repos have a higher priority than your ppa. Your /etc/apt/preferences.d/ should have a reponame.preferences for each repo and the contents of each should be like this:



#/etc/apt/preferences.d/stable.preferences
Package: *
Pin: release a=stable
Pin-Priority: 1000

#/etc/apt/preferences.d/your-ppa-name.preferences
Package: *
Pin: release a=your-ppa-name
Pin-Priority: 750


Now you can run apt update and the ppa should be successfully installed.



Conclusion



I recommend against doing this and would suggest that you use a distro that supports the package you wish to install and avoid using third party repos. However if you know what you are doing this should work.



If you have any questions or concerns about this post, do not hesitate to ask me. If there are any corrections or misconceptions in this answer please inform me. I can update the post as necessary.



Best of Luck!







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 8 '18 at 1:30









kemotepkemotep

3,1083 gold badges9 silver badges28 bronze badges




3,1083 gold badges9 silver badges28 bronze badges








  • 1





    You can also do this: wiki.debian.org/CreatePackageFromPPA

    – OrangeDog
    Mar 11 at 13:21














  • 1





    You can also do this: wiki.debian.org/CreatePackageFromPPA

    – OrangeDog
    Mar 11 at 13:21








1




1





You can also do this: wiki.debian.org/CreatePackageFromPPA

– OrangeDog
Mar 11 at 13:21





You can also do this: wiki.debian.org/CreatePackageFromPPA

– OrangeDog
Mar 11 at 13:21


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448230%2fhow-can-i-add-a-ppa-with-only-ubuntu-releases-to-a-debian-machine%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...