1.编辑文件/etc/apt/sources.list
进入目录
cd /etc/apt/
编辑文件(需要root权限)
sudo vi sources.list
将镜像地址改为你指定的镜像地址
#deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 main restricted universe mul tiverse #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-2203-updates main restricted universe multiverse #deb http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner /V10-SP1 default all deb http://mirrors.xx.com.cn/kylin/KYLIN-ALL 10.1 main universe multivers e restricted
执行安装更新命令:
apt-get update
root@hik-ds-ig8002-a7umz:/etc/apt# apt-get update 命中:1 http://mirrors.hikvision.com.cn/kylin/KYLIN-ALL 10.1 InRelease 正在读取软件包列表... 完成
安装aptitude工具,这个安装工具比apt-get更强大,会处理缺少的依赖库;
apt-get install aptitude
安装成功后,用aptitude安装OpenGL
sudo aptitude install libglu1-mesa-dev mesa-common-dev