kali經常出現找不到包或者定位不到文件夾,更新源還不行,那是因為原來沒有源,需要添加。


------------恢復內容開始------------

kali經常出現:Unable to locate package。。。這樣的錯誤。

換了一次筆記本后,之前配置過源的事給忘了,這里找不到原因。

后經過學習與詢問,是缺少源。

找到cd /etc/opt,找到sources.list  或者

1.更新軟件源
sudo vim /etc/apt/sources.list
2.選擇比較合適的源(選擇一個即可)
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里雲
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#清華大學
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#163 
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
#東軟大學
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
3.保存后執行命令 apt-get update &apt-get upgrade
apt-get dist-upgrade
#刪除以下載的包
apt-get clean
#重新啟動
reboot
4.安裝中文輸入法 apt-get install fcitx fcitx-googlepinyin(安裝成功重新啟動)
5.修改時區
sudo dpkg-reconfigure tzdata
選擇Asia---->;shanghai

原文鏈接:

2019最新Kali可用國內源更新sources.list

------------恢復內容結束------------


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM