Comment 1 for bug 2060331

Revision history for this message
Josh Lopez (mojo.lo) wrote :

In case anyone else comes across this bug, the following workaround to create the old style '<ppa-name>.list' file works well:

---

1. Create an 'aptaddppa' function (ZSH):

---

aptaddppa () {

     curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x${4}" | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/"${1}".gpg

     echo "deb [arch=$(dpkg --print-architecture)] ${2} $(lsb_release -cs) ${3}" | sudo tee /etc/apt/sources.list.d/"${1}".list

     sudo apt update
}

---

2. From the command line:

---

$ aptaddppa flacon https://ppa.launchpadcontent.net/flacon/ppa/ubuntu main 0606FBEA73863686801BE20ED5790E4FF2A61FE5