After adding the PPA, replace ’cosmic’ with ’bionic’ in the sources list
Alternatively, after adding the PPA, replace ’cosmic’ with ’bionic’ in the sources list, as the package for Bionic currently appears to install and work in Cosmic just fine (from my brief testing).