麒麟系统修改配置镜像源地址并安装openGL

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

posted @ 2024-12-24 17:46  一字千金  阅读(1073)  评论(0)    收藏  举报