赞
踩
在debian虚拟机中安装库时,总是提示E: 未发现软件包 libXtst-dev,搜索后发现可能是缺少软件源。
打开/etc/apt/sources.list,发现所有语句均被注释,搜索了很多,最后使用的Debian镜像使用帮助的使用样例,在sources.list最前方加入
deb http://mirrors.163.com/debian/ stretch main non-free contrib deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.163.com/debian/ stretch main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
然后apt-get update即可。
参考:https://www.cnblogs.com/sukai/archive/2013/10/01/3348921.html
http://mirrors.163.com/.help/debian.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。