我已经apt-mirror在一台可以访问互联网的机器上成功设置并下载了最新的 ubuntu 软件包。目标是在apt-get update无法访问互联网的目标机器上执行此操作时,将此机器用作存储库。两台机器都设置了手动 IP 地址,并且两台机器都以 Ubuntu 16.04 作为操作系统运行。的etc/apt/sources.list在目标机器只有1行:
deb http://<local_repo_IP>/ubuntu/ xenial main restricted multiverse universe
Run Code Online (Sandbox Code Playgroud)
但是当我sudo apt-get update在目标机器上执行时,出现以下错误:
Ign:1 http://<local_repo_IP>/ubuntu/dists/xenial main InRelease
Ign:2 http://<local_repo_IP>/ubuntu/dists/xenial main Release
Ign:3 http://<local_repo_IP>/ubuntu/dists/xenial main/restricted amd64 Packages
Ign:4 http://<local_repo_IP>/ubuntu/dists/xenial main/restricted i386 Packages
Ign:5 http://<local_repo_IP>/ubuntu/dists/xenial main/restricted all Packages
Ign:6 http://<local_repo_IP>/ubuntu/dists/xenial main/restricted Translation-en_HK
Ign:7 http://<local_repo_IP>/ubuntu/dists/xenial main/restricted Translation-en
Ign:8 http://<local_repo_IP>/ubuntu/dists/xenial main/multiverse amd64 Packages
Ign:9 http://<local_repo_IP>/ubuntu/dists/xenial main/multiverse i386 Packages
Ign:10 http://<local_repo_IP>/ubuntu/dists/xenial main/multiverse all Packages
Ign:11 http://<local_repo_IP>/ubuntu/dists/xenial main/multiverse Translation-en_HK
Ign:12 http://<local_repo_IP>/ubuntu/dists/xenial main/multiverse …Run Code Online (Sandbox Code Playgroud)