Lidong's blog

反向代理apt镜像

通过apt镜像,可以快速的安装软件包,但由于部分镜像地址直接访问有困难,所以我对这些镜像地址使用nginx搭建了一个反向代理。如需使用,请修改 /etc/apt/sources.list.d/ 中对应文件中URL。

虽然我是为了方便在树莓派上安装而搭建反向代理,但大多数镜像地址是可以安装所有的版本的相关软件包,需要使用请自行尝试,更多信息 👇戳这里。如有疑问可以邮件联系我 email

镜像地址替换

# 开头为为注释内容,是原地址,

  • docker

    docker.list
    1
    2
    deb [arch=armhf] https://apt.proxy.oonnnoo.com/docker/repo raspbian-jessie main
    #deb [arch=armhf] https://apt.dockerproject.org/repo raspbian-jessie main
  • gitlab

    gitlab_raspberry-pi2.list
    1
    2
    3
    4
    deb https://apt.proxy.oonnnoo.com/gitlab/raspberry-pi2/raspbian/ jessie main
    deb-src https://apt.proxy.oonnnoo.com/gitlab/raspberry-pi2/raspbian/ jessie main
    #deb https://packages.gitlab.com/gitlab/raspberry-pi2/raspbian/ jessie main
    #deb-src https://packages.gitlab.com/gitlab/raspberry-pi2/raspbian/ jessie main
  • syncthing

    syncthing-release.list
    1
    2
    deb http://apt.proxy.oonnnoo.com/syncthing/ syncthing release
    #deb http://apt.syncthing.net/ syncthing release
  • megasync

    megasync.list
    1
    2
    deb https://apt.proxy.oonnnoo.com/mega/linux/MEGAsync/Raspbian_8.0/ ./
    #deb https://mega.nz/linux/MEGAsync/Raspbian_8.0/ ./

更新记录

  1. 2017-05-08 首次发布
  2. 2017-06-30 更换 mega 代理目录名称

本文链接: