如何手动删除/删除添加的存储库?
请帮帮我:我手动添加了这个存储库,我不能删除它们
echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /' > /etc/apt/sources.list.d/vertex-theme.list wget http://download.opensuse.org/repositories/home:Horst3180/Debian_8.0/Release.key
我尝试使用apt-key list
删除apt-key list
,然后使用id删除,它成功删除了密钥,但是当我使用apt update
我得到了这个输出:
W: GPG error: http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886 E: The repository 'http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0 Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
我只是希望能够像apt update
全新的OS安装一样运行apt update
只需删除创建的.list
文件:
sudo rm /etc/apt/sources.list.d/vertex-theme.list sudo rm /etc/apt/sources.list.d/vertex-theme.list.save
在运行和更新之后,甚至可能是dist升级:
sudo apt update sudo apt dist-upgrade
由于您已经删除了密钥,因此您无需执行任何操作。