apt-mirror 本地网络存储库

apt-mirror 本地网络存储库

我有一个网络部分,无法访问互联网。但是它充满了 Ubuntu 16.04 机器。有时,我必须从这个网络部分下载一些标准软件包,但我不能,因为我在这个区域没有机会上网。所以我使用 apt-mirror,下载了整个存储库,这在初始阶段有所指示源列表任何 ubuntu 16.04 的文件。它大约有 500GB。但是,当我尝试安装除“mc”或某些通用包以外的其他东西时,我陷入了依赖地狱。例如,尝试安装“sssd”时,我收到:

root@ubuntu:~# apt-get install sssd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
 sssd : Depends: python-sss (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-ad (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-common (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-ipa (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-krb5 (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-ldap (= 1.13.4-1ubuntu1.15) but it is not going to be installed
        Depends: sssd-proxy (= 1.13.4-1ubuntu1.15) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

但它到底是怎么工作的呢?当我安装来自同一存储库的软件包时,不是在本地电脑上下载,而是从互联网上下载。这意味着,apt-mirror 不会下载整个存储库,并且会遗漏某些内容。因此,我有两个问题:

  1. 我如何下载整个 repo,以模拟互联网上 repo 的工作?
  2. 如果我不能,我该如何将包添加到我自己的本地存储库并在某个时间修复依赖关系?

谢谢你!

答案1

相关内容