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/
エラーメッセージを生成した5つのファイルの名前を変更します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