I often use the terminal to add a PPA to my resources list, only to find out afterwards that the PPA doesn't support my Ubuntu version. Allas, thus am greeted with an error:
404 Not Found
How can I check via terminal, if the to be added ppa supports my Ubuntu version?
Update:
The script now checks if the ppa supports your distro, and then aks for confirmation if you want to add the repo to your sources list and only then installs the packages.
Use this at your own risk! I only tested this on two ppa's! I will not be held responsible for broken packages!
code:
usage:
None supported ppa's
supported ppa's
See the script in action:
Improved it. Original answer by Wilf
A bash script to try a PPA for your distribution :
I just learned some bash for you haha. This works great, I'm proud (and thanks to Wilf for his answer)
Usage :
1) Copy this in a text file somewhere (in the example below it's
~/myscript
)2) Use the command :
Example :
(here I used : ppa:libreoffice/ppa with ~/myscript)
Edit: updated with blade19899's idea of using
lsb_release
I ain't tested it, but a script like this should work:
You have to run this as
./SCRIPTNAME ppa:WHATEVER/WHATEVER
- this one liner also works, but you have insert the PPA name (whereppa:gnome3-team/gnome3
is):You can then open the link in terminal (some terminals automatically show clickable links), or run it with
curl
to download it as text. It should just show the list of folders for the supported releases for the ppa.I recently added a ppa, so I looked at that plus the Software and Updates thing and made a guess...
Well I might have a GUI solution for you! The best way for me is PPA Manager:
when you added ppa or ppas already added in your system, open PPA Manager and click manage ppas it will take you to new window with a list of ppas in your system click on any ppa and choose
list packages
below, if there be any packages available it will list if not you can delete it. Worked for me even yesterday I had ppa for Saucy and Trusty so list packages showed me "0" and I removed it :)