想装个ibus中文输入法,输入命令时,一直出现找不到包的错误,查了很久,有人说是更新源的问题
解决:
进入/etc/apt目录,找到sources.list文件,
将以下内容复制进sources.list文件:
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
## Security updates
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-fr$
执行 apt-get update 命令,等待更新完成
执行 apt-get upgrade,继续等待
源更新完成,执行最开始的命令安装输入法,解决!
附参考链接:
https://www.linkedin.com/pulse/kali-linux-fix-unable-locate-package-eyripidis-stefanidis