赞
踩
解决apt-get 安装出现E:unable to locate package问题
brave2017
0.196
2017.03.10 23:07:41
字数 296
阅读 20,204
想装个ibus中文输入法,输入命令时,一直出现找不到包的错误,查了很久,有人说是更新源的问题
解决:
进入/etc/apt目录,找到sources.list文件,
将以下内容复制进sources.list文件:
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$
作者:brave2017
链接:https://www.jianshu.com/p/a15c2d3b54dd
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
执行 apt-get update 命令,等待更新完成
执行 apt-get upgrade,继续等待
源更新完成,执行最开始的命令安装输入法,解决!
附参考链接:
https://www.jianshu.com/p/a15c2d3b54dd
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。