无法下载更新,无法刷新缓存

无法下载更新,无法刷新缓存

我有 Ubuntu 19.10 并且收到此消息:Unable to download updates - failed to refresh cache: w: ignoring file 'wir' in directory '/etc/apt/sources.list.d/' as it has no filename extension

有什么想法吗?谢谢


$ ls -1 /etc/apt/sources.list.d/
brave-browser-beta.list
brave-browser-beta.list.save
brave-browser-release.list
brave-browser-release.list.save
brave.list
brave.list.save
windscribe-repo.list
windscribe-repo.list.save
wir

答案1

您必须删除有问题的“来源”列表文件

sudo rm /etc/apt/sources.list.d/wir

然后使用更新包列表

sudo apt update

相关内容