我注意到 apt-mirror 不会复制完整的存储库。我想让它复制所有内容。你知道该怎么做吗?
这是 Xenial/Main 服务器上的内容
[DIR] binary-amd64/ 2016-04-21 19:39 -
[DIR] binary-i386/ 2016-04-21 19:39 -
[DIR] debian-installer/ 2015-12-02 22:22 -
[DIR] dep11/ 2016-04-21 13:13 -
[DIR] dist-upgrader-all/ 2016-04-16 18:13 -
[DIR] i18n/ 2016-04-21 19:39 -
[DIR] installer-amd64/ 2017-12-01 16:17 -
[DIR] installer-i386/ 2017-12-01 16:17 -
[DIR] source/ 2016-04-21 19:39 -
[DIR] uefi/ 2015-11-02 23:53 -
这就是我得到的
[DIR] binary-amd64/ 2016-04-21 19:39 -
[DIR] binary-i386/ 2016-04-21 19:39 -
[DIR] dep11/ 2016-04-21 13:13 -
[DIR] i18n/ 2016-04-21 19:39 -
[DIR] source/ 2016-04-21 19:39 -
编辑:我已经发现了一件事。要包含 debian-installer/ 部分,请在 mirror.list 文件中添加
deb http://archive.ubuntu.com/ubunut xenial main main/debian-installer restricted restricted/debian-installer universe multiverse
这是可行的,因为 apt-mirror 在那里找到了 packages.gz 文件。对于其他文件夹,例如 installer-amd64,此方法无效。
答案1
使用 bionic Ubuntu 18.04 尝试了以下操作并且有效:
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic universe
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic universe
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security universe
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-i386 http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-i386 http://security.ubuntu.com/ubuntu bionic-security universe
deb-i386 http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic main/debian-installer restricted/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates main/debian-installer restricted/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic universe/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates universe/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic multiverse/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic main/debian-installer restricted/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates main/debian-installer restricted/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic universe/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates universe/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security main/debian-installer restricted/debian-installer
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security universe/debian-installer
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security multiverse/debian-installer
deb-i386 http://security.ubuntu.com/ubuntu bionic-security main/debian-installer restricted/debian-installer
deb-i386 http://security.ubuntu.com/ubuntu bionic-security universe/debian-installer
deb-i386 http://security.ubuntu.com/ubuntu bionic-security multiverse/debian-installer
clean http://archive.ubuntu.com/ubuntu
clean http://security.ubuntu.com/ubuntu