Skip to content

Instantly share code, notes, and snippets.

@guangxuanliu
Last active October 29, 2025 02:06
Show Gist options
  • Save guangxuanliu/294d004e8648e22a1b58415321229ac9 to your computer and use it in GitHub Desktop.
Save guangxuanliu/294d004e8648e22a1b58415321229ac9 to your computer and use it in GitHub Desktop.
麒麟(kylin)配置本地apt源

Kylin配置离线apt源

以对应的iso镜像作为apt源,步骤如下:

  1. 挂载iso镜像

    # 注:iso镜像的路径必须为绝对路径
    # 挂载点必须要存在
    mount -o loop /pathofiso/kylin-server-4.0.2.iso /mnt/cdrom
  2. 编辑sources.list文件

    vim /etc/apt/sources.list
    
    # 添加如下内容,并把其他行都注释掉
    deb file:///mnt/cdrom juniper main restricted multiverse universe
  3. 更新源

    apt-get update
  4. 安装测试

    apt-get install lrzsz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment