![ppa-purge 的 ppa 名称](https://linux22.com/image/879662/ppa-purge%20%E7%9A%84%20ppa%20%E5%90%8D%E7%A7%B0.png)
我知道存在同样的问题,但我认为这个问题没有答案。我必须清除一些 ppa,我尝试使用ppa-purge
以下命令:
sudo ppa-purge ppa:<ppa_name>/ppa
但是 ?? 是什么ppa_name
?我有这个(坏的)sources.list.d
danielrichter2007-grub-customizer-precise.list google-chrome.list.save n-muench-vlc-precise.list videolan-stable-daily-precise.list.save
danielrichter2007-grub-customizer-precise.list.save jockey.list n-muench-vlc-precise.list.save webupd8team-unstable-precise.list
dropbox.list jockey.list.save relan-exfat-precise.list webupd8team-unstable-precise.list.save
dropbox.list.save langdalepl-gvfs-mtp-precise.list relan-exfat-precise.list.save wine-wine-builds-precise.list
freefilesync-ffs-precise.list langdalepl-gvfs-mtp-precise.list.save thefanclub-grive-tools-precise.list wine-wine-builds-precise.list.save
freefilesync-ffs-precise.list.save lubuntu-dev-lubuntu-daily-precise.list thefanclub-grive-tools-precise.list.save
google-chrome.list lubuntu-dev-lubuntu-daily-precise.list.save videolan-stable-daily-precise.list
但我不知道名字,例如:
sudo ppa-purge ppa:lubuntu/ppa
Updating packages lists
PPA to be removed: lubuntu ppa
Warning: Could not find package list for PPA: lubuntu ppa
编辑
/etc/apt/sources.list.d$ grep ppa /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu precise main
/etc/apt/sources.list:deb-src http://ppa.launchpad.net/tualatrix/ppa/ubuntu precise main
/etc/apt/sources.list.d/danielrichter2007-grub-customizer-precise.list:# deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu precise main
/etc/apt/sources.list.d/danielrichter2007-grub-customizer-precise.list:# deb-src http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu precise main
/etc/apt/sources.list.d/danielrichter2007-grub-customizer-precise.list.save:# deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu precise main
/etc/apt/sources.list.d/danielrichter2007-grub-customizer-precise.list.save:# deb-src http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu precise main
/etc/apt/sources.list.d/freefilesync-ffs-precise.list:deb http://ppa.launchpad.net/freefilesync/ffs/ubuntu precise main
/etc/apt/sources.list.d/freefilesync-ffs-precise.list:deb-src http://ppa.launchpad.net/freefilesync/ffs/ubuntu precise main
/etc/apt/sources.list.d/freefilesync-ffs-precise.list.save:deb http://ppa.launchpad.net/freefilesync/ffs/ubuntu precise main
/etc/apt/sources.list.d/freefilesync-ffs-precise.list.save:deb-src http://ppa.launchpad.net/freefilesync/ffs/ubuntu precise main
/etc/apt/sources.list.d/langdalepl-gvfs-mtp-precise.list:deb http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu precise main
/etc/apt/sources.list.d/langdalepl-gvfs-mtp-precise.list:deb-src http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu precise main
/etc/apt/sources.list.d/langdalepl-gvfs-mtp-precise.list.save:deb http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu precise main
/etc/apt/sources.list.d/langdalepl-gvfs-mtp-precise.list.save:deb-src http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu precise main
/etc/apt/sources.list.d/lubuntu-dev-lubuntu-daily-precise.list.save:deb-src http://ppa.launchpad.net/lubuntu-dev/lubuntu-daily/ubuntu precise main
/etc/apt/sources.list.d/n-muench-vlc-precise.list:deb http://ppa.launchpad.net/n-muench/vlc/ubuntu precise main
/etc/apt/sources.list.d/n-muench-vlc-precise.list:deb-src http://ppa.launchpad.net/n-muench/vlc/ubuntu precise main
/etc/apt/sources.list.d/n-muench-vlc-precise.list.save:deb http://ppa.launchpad.net/n-muench/vlc/ubuntu precise main
/etc/apt/sources.list.d/n-muench-vlc-precise.list.save:deb-src http://ppa.launchpad.net/n-muench/vlc/ubuntu precise main
/etc/apt/sources.list.d/relan-exfat-precise.list:# deb http://ppa.launchpad.net/relan/exfat/ubuntu precise main
/etc/apt/sources.list.d/relan-exfat-precise.list:# deb-src http://ppa.launchpad.net/relan/exfat/ubuntu precise main
/etc/apt/sources.list.d/relan-exfat-precise.list.save:# deb http://ppa.launchpad.net/relan/exfat/ubuntu precise main
/etc/apt/sources.list.d/relan-exfat-precise.list.save:# deb-src http://ppa.launchpad.net/relan/exfat/ubuntu precise main
/etc/apt/sources.list.d/thefanclub-grive-tools-precise.list:# deb http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu precise main
/etc/apt/sources.list.d/thefanclub-grive-tools-precise.list:# deb-src http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu precise main
/etc/apt/sources.list.d/thefanclub-grive-tools-precise.list.save:# deb http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu precise main
/etc/apt/sources.list.d/thefanclub-grive-tools-precise.list.save:# deb-src http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu precise main
/etc/apt/sources.list.d/videolan-stable-daily-precise.list:deb http://ppa.launchpad.net/videolan/stable-daily/ubuntu precise main
/etc/apt/sources.list.d/videolan-stable-daily-precise.list:deb-src http://ppa.launchpad.net/videolan/stable-daily/ubuntu precise main
/etc/apt/sources.list.d/videolan-stable-daily-precise.list.save:deb http://ppa.launchpad.net/videolan/stable-daily/ubuntu precise main
/etc/apt/sources.list.d/videolan-stable-daily-precise.list.save:deb-src http://ppa.launchpad.net/videolan/stable-daily/ubuntu precise main
/etc/apt/sources.list.d/webupd8team-unstable-precise.list:deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu precise main
/etc/apt/sources.list.d/webupd8team-unstable-precise.list:deb-src http://ppa.launchpad.net/webupd8team/unstable/ubuntu precise main
/etc/apt/sources.list.d/webupd8team-unstable-precise.list.save:deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu precise main
/etc/apt/sources.list.d/webupd8team-unstable-precise.list.save:deb-src http://ppa.launchpad.net/webupd8team/unstable/ubuntu precise main
/etc/apt/sources.list.d/wine-wine-builds-precise.list:deb http://ppa.launchpad.net/wine/wine-builds/ubuntu precise main
/etc/apt/sources.list.d/wine-wine-builds-precise.list:deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu precise main
/etc/apt/sources.list.d/wine-wine-builds-precise.list.save:deb http://ppa.launchpad.net/wine/wine-builds/ubuntu precise main
/etc/apt/sources.list.d/wine-wine-builds-precise.list.save:deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu precise main
答案1
您需要查看列表文件。在许多发行版中,它位于 下/etc/apt/sources.list.d/
。
例如,我有一个 java ppa。列表是webupd8team-java-trusty.list
。
它包含了:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
因此ppa-purge
命令看起来如下:
sudo ppa-purge ppa:webupd8team/java
对于您的“lubuntu”ppa,命令是:
sudo ppa-purge ppa:lubuntu-dev/lubuntu-daily
位于发行版名称<ppa-name>
之后和之前。http://ppa.launchpad.net/
如果仍然出现错误,则说明您的列表已损坏。您可以随时添加 PPA 然后清除它,例如:
sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily
sudo apt-get update
sudo ppa-purge ppa:lubuntu-dev/lubuntu-daily