Categories
Development Linux Ubuntu

How to check if a given PPA or repository is available

I am working on generating some auto install scripts that would work on different versions of Ubuntu. Therefore, I try to keep the add-apt-repository statements generic as seen below. add-apt-repository -y “deb http://archive.canonical.com/ $(lsb_release -sc) partner” add-apt-repository -y ppa:graphics-drivers However, as some repos don’t exist for certain versions, auto generated urls might lead to errors […]