AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1174265
Accepted
Radcriminal
Radcriminal
Asked: 2019-09-15 22:20:39 +0800 CST2019-09-15 22:20:39 +0800 CST 2019-09-15 22:20:39 +0800 CST

apt-mirror 本地网络存储库

  • 772

我有一段网络,无法访问互联网。但是它充满了 Ubuntu 16.04 的 mashines,我必须从这个网络段下载一些标准包,但我不能,因为我没有机会在这个区域上网。所以我使用了 apt-mirror,下载了整个 repos,这在任何 ubuntu 16.04的初始source.list文件中都有说明。它大约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.

但是它是如何工作的,当我从同一个 repo 安装包时,但不是从我的本地电脑上下载,而是从互联网上下载的。这意味着,apt-mirror 不会下载整个 repo 并且遗漏了一些东西。所以,我有两个问题:

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

谢谢!

package-management repository localrepository apt-mirror
  • 1 1 个回答
  • 558 Views

1 个回答

  • Voted
  1. Best Answer
    Radcriminal
    2019-09-19T01:18:38+08:002019-09-19T01:18:38+08:00

    我发现这本手册对我帮助很大

    https://www.debian.org/doc/manuals/repository-howto/repository-howto.en.html

    • 0

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve