解决apt-get 安装出现E:unable to locate package问题

解决apt-get 安装出现E:unable to locate package问题

转载自:jianshu.com/p/a15c2d3b54dd


想装个ibus中文输入法,输入命令时,一直出现找不到包的错误,查了很久,有人说是更新源的问题

解决apt-get 安装出现E:unable to locate package问题_第1张图片

解决:

进入/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 安装出现E:unable to locate package问题_第2张图片

执行 apt-get upgrade,继续等待

解决apt-get 安装出现E:unable to locate package问题_第3张图片

源更新完成,执行最开始的命令安装输入法,解决!


解决apt-get 安装出现E:unable to locate package问题_第4张图片

附参考链接:

https://www.linkedin.com/pulse/kali-linux-fix-unable-locate-package-eyripidis-stefanidis

1人点赞
Kali Linux问题集合
"小礼物走一走,来简书关注我"
赞赏支持 还没有人赞赏,支持一下
brave2017 认准道路,每天进步一点点……
总资产1 (约0.12元) 共写了1.7W字 获得17个赞 共15个粉丝
关注

你可能感兴趣的:(学习)