[M004] deploy :kylinOS ATP local repo

  1. ARM公共源
# 阿里云公共ARM的源
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial universe
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe
deb [arch=armhf] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=armhf] https://download.docker.com/linux/ubuntu xenial stable
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe

issue:

  • pull下载拉取安装mariadb10.0失败,需麒麟原厂提供总源

solution1:「原厂源」

  • 银河麒麟OS公司官网的开放总源访问主页:
  • http://archive.kylinos.cn/kylin/KYLIN-ALL/
  • 按需按OS版本使用如下sources.list(例):
# 4.0.2-sp2 FT2000+服务器版本:
deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-server-ft2000 main restricted universe multiverse

solution2:搭建本地源

  1. 上传KYLIN-ALL源文件至环境/home目录下;
  2. 配置本地apt源:
vim /etc/apt/sources.list
#deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2-desktop main restricted universe multiverse:
deb file:///home/KYLIN-ALL 4.0.2-desktop main restricted universe multiverse

#4.0.2桌面版本:
deb file:///home/KYLIN-ALL  4.0.2-desktop main restricted universe multiverse

#4.0.2-sp1桌面版本:
deb file:///home/KYLIN-ALL  4.0.2sp1-desktop main restricted universe multiverse

#4.0.2-sp2桌面版本:
deb file:///home/KYLIN-ALL 4.0.2sp2-desktop main restricted universe multiverse

#4.0.2服务器版本:
deb file:///home/KYLIN-ALL 4.0.2-server main restricted universe multiverse

#4.0.2-sp1服务器版本:
deb file:///home/KYLIN-ALL 4.0.2sp1-server main restricted universe multiverse

#4.0.2-sp2服务器版本:
deb file:///home/KYLIN-ALL 4.0.2sp2-server main restricted universe multiverse

#4.0.2-sp2 FT2000+服务器版本:
deb file:///home/KYLIN-ALL 4.0.2sp2-server-ft2000 main restricted universe multiverse
  1. 清除历史apt源
apt-get clean all
  1. 安装apache2
apt-get install apache2
  1. 将apt源以软连接的方式挂载至/var/www/html/
ln -s /home/KYLIN-ALL /var/www/html/
  1. 验证以http方式是否可以正常访问。
http://172.16.146.10/KYLIN-ALL/
  1. 参考
    ubuntu下的apt内网本地源的正确搭建
    Ubuntu apt iso镜像 本地源配置

你可能感兴趣的:([M004] deploy :kylinOS ATP local repo)