尝试设置离线 Repo;多次失败

尝试设置离线 Repo;多次失败

我在隔离网络上有大约 20 台 Ubuntu 20.04 服务器和桌面,我想更新它们,并提供软件包存储库,以便我可以安装其他软件。

尽管我浏览了上百个“如何操作”的网页,但我还是没有找到解决办法。

简而言之,在刚刚更新的 20.04.3 服务器上(显然是在互联网上),我安装了 apt-mirror 并编辑 mirror.list 以只有一个源 - debhttp://archive.ubuntu.com/ubuntu焦点主要

Apt-mirror 运行良好,但它不会下载所有需要的内容。哈希目录和 cnf 目录根本没有下载,以及 dep11 中的几个文件(icons*@2.tar.gz 似乎从未被下载)。所以我启动 wget 并将所有数据也下载下来。

我把所有这些东西放在一个目录中,并将其 chown 为 www-data:www-data,然后我就可以使用 Web 浏览器浏览这些目录。

在我保留的 20.04.1 桌面虚拟机上,我将 sources.list 文件更改为仅此 repo 可用(deb [arch=amd64]http://192.168.0.117/ubuntu/mirror/archive.ubuntu.com/ubuntufocal main )。Apt-get 很顺利(没有错误或忽略)。但是当我要求它安装某些东西时,我最终陷入了依赖地狱。例如,尝试安装 openssh-server,我得到:

root@ubuntu:~# apt install openssh-server
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:
 openssh-server : Depends: openssh-client (= 1:8.2p1-4) but 1:8.2p1-4ubuntu0.2 is to be installed
                  Depends: openssh-sftp-server but it is not going to be installed
                  Recommends: ncurses-term but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@ubuntu:~#

openssh-ftp-server 无法安装,因为它依赖于 openssh-client。openssh-client 已安装……但其版本号末尾添加了 ubuntu0.2,因此似乎不符合所需的依赖关系。(ncurses-term 和 ssh-import-id 可以自行安装)。

有什么建议么?

谢谢

相关内容