Ubuntu’s Advanced Packaging Tools (APT)

How to add/remove PPAs

add-apt-repository ppa:slashd/kernel-builder
add-apt-repository --remove ppa:slashd/kernel-builder

停止信任的 apt-key

apt-key list
...
/etc/apt/trusted.gpg.d/slashd_ubuntu_kernel-builder.gpg
-------------------------------------------------------
pub   rsa4096 2015-08-14 [SC]
      4315 1DF5 B3DB E339 CE7E  0BE5 83D4 0B3B 698B C1F3
uid           [ unknown] Launchpad PPA for eric.desrochers
...

sudo apt-key del 698BC1F3 # last 8 characters

刪除來自該 ppa 的 packages

sudo apt-get install ppa-purge
sudo ppa-purge ppa:slashd/kernel-builder

Leave a Reply

Your email address will not be published. Required fields are marked *