環境
Kali GNU/Linux 2022.3
概要
apt install
コマンドで E: Unable to locate package
となった
┌──(kali㉿kali)-[~]
└─$ sudo apt install man2html -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package man2html
結論
/etc/apt/sources.list
ファイルを編集する
詳細
┌──(kali㉿kali)-[~]
└─$ sudo vi /etc/apt/sources.list
┌──(kali㉿kali)-[~]
└─$ cat /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://http.kali.org/kali kali-last-snapshot main non-free contrib
deb http://http.kali.org/kali kali-experimental main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
# ↑必要なものを適宜追記(何が必要かわからなければ全部記載してしまおう、、、)
┌──(kali㉿kali)-[~]
└─$ sudo apt update && sudo apt -y full-upgrade -y && sudo reboot
# 以下省略
おわりに
-
以下を見てもよくわからなかった
https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/ -
参考