如何删除 sources.list.d 并再次添加/安装它?

如何删除 sources.list.d 并再次添加/安装它?

/etc/apt/sources.list.d包含

jonathonf-ubuntu-python-3_6-xenial.list
jonathonf-ubuntu-python-3_6-xenial.list.save
notepadqq-team-ubuntu-notepadqq-xenial.list
notepadqq-team-ubuntu-notepadqq-xenial.list.save
oracle-vbox.list
oracle-vbox.list.save
owncloud.list
owncloud.list.save
ubuntu-wine-ubuntu-ppa-xenial.list
ubuntu-wine-ubuntu-ppa-xenial.list.save
webcamstudio-ubuntu-webcamstudio-stable-xenial.list
webcamstudio-ubuntu-webcamstudio-stable-xenial.list.save
webupd8team-ubuntu-atom-xenial.list
webupd8team-ubuntu-atom-xenial.list.save
webupd8team-ubuntu-tor-browser-xenial.list
webupd8team-ubuntu-tor-browser-xenial.list.save
yannubuntu-ubuntu-boot-repair-xenial.list
yannubuntu-ubuntu-boot-repair-xenial.list.save

答案1

您可以通过运行删除所有自定义存储库

sudo rm /etc/apt/sources.list.d/*
sudo apt update

相关内容