Debmirror 用于本地回购同步。包裹不见了?

问题描述 投票:0回答:1

所以我使用 Debmirror 设置了一个本地镜像,它非常适合修补,但是当我键入安装软件时,例如 vnstat 或 multitail,它似乎无法从我的镜像中获得。

https://help.ubuntu.com/community/Debmirror

如果我使用 apt-get 从连接互联网的机器上下载包,它会从 ubuntu.com/ubuntu jammy/universe 中下载

Debmirror 配置包括 universe 和 multiverse:

# Minimum Ubuntu system requires main, restricted
# Section=      -s      # Section (One of the following - main/restricted/universe/multiverse).
# You can add extra file with $Section/debian-installer. ex: main/debian-installer,universe/debian-installer,multiverse/debian-installer,restricted/debian-installer
#
section=main,restricted,universe,multiverse

在使用本地镜像仓库的主机上,我得到了

E: 无法定位包 vnstat

ubuntu apt mirror
1个回答
-1
投票

所以我发现我在尝试使用本地镜像的机器上的

sources.list
中丢失了一些位。

我没有宇宙和多元宇宙的条目

deb http://${mirrorbox-hostname}/ubuntu focal main restricted **universe** **multiverse**

deb http://${mirrorbox-hostname}/ubuntu focal-security main restricted **universe** **multiverse**

deb http://${mirrorbox-hostname}/ubuntu focal-updates main restricted **universe** **multiverse**

基本错误。

© www.soinside.com 2019 - 2024. All rights reserved.