
本文共 3342 字,大约阅读时间需要 11 分钟。
目录
文档用途
详细信息
文档用途
本文章主要用来指导如何在银河麒麟系统中配置apt网络源,以便下载数据库所需系统包。
详细信息
1、查看系统版本
[Unauthorized System] root@greatwall-os:~# cat /proc/version Linux version 4.4.13-20170224.kylin.5.server (jackieliu@Kylin) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14kord4) ) #45 SMP Fri Apr 7 08:35:29 CST 2017
[Unauthorized System] root@greatwall-os:~# lsb_release -a No LSB modules are available. Distributor ID: Kylin Description: Kylin 4.0.2 Release: 4.0.2 Codename: juniper
|
2、备份原list文件
该文件类似于配置yum源时的.repo文件,即安装软件的存放路径的配置文件。
[Unauthorized System] root@greatwall-os:/etc/apt# cd /etc/apt [Unauthorized System] root@greatwall-os:/etc/apt# sudo cp sources.list sources.list.bak |
3、编辑新list文件
[Unauthorized System] root@greatwall-os:/etc/apt# vi sources.list
[Unauthorized System] root@greatwall-os:/etc/apt# cat sources.list deb http://mirrors.163.com/debian/ jessie main non-free contrib deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb-src http://mirrors.163.com/debian/ jessie main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
|
4、更新apt源
更新apt源之前建议进行清理操作 [Unauthorized System] root@greatwall-os:/etc/apt# sudo apt-get clean [Unauthorized System] root@greatwall-os:/etc/apt# apt-get update |
5、安装软件包
以ant及其相关依赖包为例: [Unauthorized System] root@greatwall-os:/etc/apt# apt-get install ant Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libasprintf0v5 libnss3-nssdb Use 'apt autoremove' to remove them. The following additional packages will be installed: ant-optional Suggested packages: ant-doc ant-gcj ant-optional-gcj antlr javacc junit jython libbcel-java libbsf-java libcommons-logging-java libcommons-net-java libmail-java libjaxp1.3-java libjdepend-java libjsch-java liblog4j1.2-java liboro-java libregexp-java libxalan2-java libxml-commons-resolver1.1-java The following NEW packages will be installed: ant ant-optional 0 upgraded, 2 newly installed, 0 to remove and 73 not upgraded. Need to get 2,204 kB of archives. After this operation, 3,073 kB of additional disk space will be used. Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! ant ant-optional Install these packages without verification? [y/N] y Get:1 http://mirrors.163.com/debian jessie/main arm64 ant all 1.9.4-3 [1,888 kB] Get:2 http://mirrors.163.com/debian jessie/main arm64 ant-optional all 1.9.4-3 [316 kB] Fetched 2,204 kB in 1s (1,826 kB/s) Selecting previously unselected package ant. (Reading database ... 196821 files and directories currently installed.) Preparing to unpack .../archives/ant_1.9.4-3_all.deb ... Unpacking ant (1.9.4-3) ... Selecting previously unselected package ant-optional. Preparing to unpack .../ant-optional_1.9.4-3_all.deb ... Unpacking ant-optional (1.9.4-3) ... Processing triggers for man-db (2.7.5-1kord) ... Setting up ant (1.9.4-3) ... Setting up ant-optional (1.9.4-3) ... |
更多详细信息请登录[瀚高技术支持平台] 查看
发表评论
最新留言
关于作者
