银河麒麟系统配置apt网络源

目录

文档用途

详细信息

文档用途

本文章主要用来指导如何在银河麒麟系统中配置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) ...

更多详细信息请登录[瀚高技术支持平台] 查看瀚高技术支持平台

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值