目录

文档用途

详细信息

文档用途

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

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

银河麒麟系统配置apt网络源相关推荐

  1. 银河麒麟系统配置外网源

    外网源网址: V10桌面产品:软件源使用方法 V10桌面产品:软件源使用方法 外网源配置 请按如下步骤操作: 1.在桌面空白处右键选择"在终端中打开": 2.执行命令:sudo   ...

  2. 关于银河麒麟系统配置本地yum源配置流程说明

    背景描述:护网行动,无法访问公网,需要制作本的yum源 操作系统:Kylin-Server-10-aarch64-Release 操作步骤: 1.通过找到原始yum源,找到包的地址,即baseurl ...

  3. U系银河麒麟配置本地镜像源

    1. 准备工作 准备一台银河麒麟4.0.2服务器版虚拟机.银河麒麟4.0.2服务器版iso.(下载地址:https://www.ubuntukylin.com/) 2. 操作步骤 打开虚拟机,打开虚拟 ...

  4. qt5.15.2在银河麒麟v10sp1上编译源码后安装运行

    转载备份,原文章:银河麒麟V10系统+飞腾CPU交叉编译安装Qt-5.15.2_银河麒麟交叉编译_savagelin的博客-CSDN博客 操作系统版本名称:银河麒麟V10(SP1) 版本号:2203 ...

  5. R系银河麒麟配置本地镜像源

    1.准备工作 一台银河麒麟V10服务器版虚拟机,银河麒麟V10系统iso镜像.(银河麒麟V10server版本为R系) 2.操作步骤 打开虚拟机设置,把iso挂载到虚拟机里. 进入系统,把iso挂载到 ...

  6. 银河麒麟系统配置实用技巧-立哥总结

    查看版本情况 1)右键状态栏空白部分,选择"关于银河麒麟",或命令行执行:cat /etc/.kyinfo 2)查看序列号 执行kylin-verify 启动解决 1)未接显示器时 ...

  7. 国产银河麒麟系统配置源

    源地址:http://archive.kylinos.cn/kylin/KYLIN-ALL/ 软件源使用方法 在系统的/etc/apt/sources.list文件中,根据不同版本填入以下内容 #4. ...

  8. 两台银河麒麟系统共享网络上网分享

    需求1:无线接入网络共享给有线网络 有A和B两台机器. A机器有无线网卡和有线网卡 B机器有无线网卡 现在A能通过无线连接互联网.需要通过网线将网络共享给B机器实现B机器可以上网. 思路 A机器通过w ...

  9. 银河麒麟操作系统搭建本地源

    笔者在一个项目上,发现操作系统连个tar命令都无. 无奈,只能配置本地yum源头. 1.创建本地镜像目录 mkdir /mnt 2.挂载本地镜像 sudo mount -o loop /home/ro ...

最新文章

  1. svn: Working copy locked
  2. 随笔2:关于linux和python
  3. C语言生成一个随机的九行九列数独,一个随机生成数独的C++程序
  4. Linux底层函数库“glibc”再现重大安全漏洞
  5. anki 新的卡片类型_梁宝川:这一类型Anki卡片,你做了吗?
  6. [转]Socket的阻塞模式和非阻塞模式
  7. Java并发7:并发工具类
  8. python frame如何置顶_Python tkinter frame父窗口小部件排列列
  9. ​WeihanLi.Npoi 根据模板导出Excel
  10. layui 流加载flow遇到的问题
  11. 登山(信息学奥赛一本通-T1283)
  12. 深度学习算法 | LSTM算法原理简介及Tutorial
  13. start mysql server_mysql5我的难点,快捷操作(mysql.server stop start),开机启动
  14. (55)Verilog HDL双沿采样设计
  15. c语言数据结构的主函数怎么写,您好,关于数据结构C语言的问题,上次百度知道里面主函数没有发上去? 爱问知识人...
  16. ERP核心业务流程和Oracle-ERP业务和数据对象分析
  17. 基于jsp的网上书店_[内附完整源码和文档] 基于JSP网上零食销售系统的设计与实现...
  18. Linux驱动学习--ALSA框架(三)PCM设备的创建--以SCO虚拟声卡为例
  19. 乐视尚酷版无线手柄PC驱动 手柄通用驱动教程
  20. 大白菜u盘启动盘清除系统登录密码详细教程

热门文章

  1. 【顶点计划2】设计思维——我们都是设计思考者
  2. [附源码]java毕业设计基于篮球云网站
  3. 一个好用又好看的UEFI启动管理器rEFInd
  4. Graph Neural Networks in Recommender Systems: A Survey
  5. php的strftime先是星期几,PHP中的strftime()函数
  6. Kdevelop显示行号
  7. (附源码)计算机毕业设计SSM基于html的网上购物系统
  8. 【游戏客户端】如何高效地和服务端交互“领奖信息”
  9. python表示后面部分是注释_Python 注释(Python Comments)用法详解
  10. php css下划线,css下划线与文字之间的距离如何设置?