当我运行 sudo spt update 时...我得到所有忽略命令
Hit:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Reading package lists... Done
N: Ignoring file 'cybermax-dexter-ubuntu-sdl2-backport-jammy.list.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'google-chrome.list.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'brave-browser-release.list.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'webupd8team-ubuntu-java-jammy.list.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'microsoft-prod.list.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
有人可以帮忙吗?
答案1
/etc/apt/sources.list.d/
重命名生成错误消息的五个文件N: Ignoring file ... in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
。
cd /etc/apt/sources.list.d/
sudo mv cybermax-dexter-ubuntu-sdl2-backport-jammy.list.old cybermax-dexter-ubuntu-sdl2-backport-jammy.list
sudo mv google-chrome.list.old google-chrome.list
sudo mv brave-browser-release.list.old brave-browser-release.list
sudo mv webupd8team-ubuntu-java-jammy.list.old webupd8team-ubuntu-java-jammy.list
sudo mv microsoft-prod.list.old microsoft-prod.list
sudo apt update
或者,如果您不再需要任何这些软件源,您可以删除它们:
cd /etc/apt/sources.list.d/
sudo rm cybermax-dexter-ubuntu-sdl2-backport-jammy.list.old google-chrome.list.old brave-browser-release.list.old webupd8team-ubuntu-java-jammy.list.old microsoft-prod.list.old
sudo apt update