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 / 问题

问题[localrepository](ubuntu)

Martin Hope
Tarun Maganti
Asked: 2020-02-25 21:03:35 +0800 CST

如何在apt包管理器的sources.list中同时拥有arch=amd64和trusted=yes?

  • 12

我想做什么?

你可以有
deb [trusted=yes] http://pathtoserver/ubuntu bionic main
deb [arch=amd64] http://pathtoserver/ubuntu bionic main

在sources.list 中分开。

有没有办法我可以做
deb [trusted=yes, arch=amd64] http://pathtoserver/ubuntu bionic main或类似的事情,我只能有 amd64 作为选项并且信任应该是肯定的。在 Ubuntu 18.04 仿生中。


错误

如果我使用以下 deb 行
deb [arch=amd64 trusted=yes] http://pathtoserver/ubuntu bionic main

E: Conflicting values set for option Trusted regarding source
E: The list of sources could not be read.

这是一个气隙系统,我已经镜像了 ubuntu 存储库以供离线使用。

package-management apt aptitude synaptic localrepository
  • 1 个回答
  • 9012 Views
Martin Hope
Radcriminal
Asked: 2019-09-15 22:20:39 +0800 CST

apt-mirror 本地网络存储库

  • 0

我有一段网络,无法访问互联网。但是它充满了 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 个回答
  • 558 Views
Martin Hope
Phil795
Asked: 2018-11-13 04:05:47 +0800 CST

合并存储库

  • 2

为了给我们的离线服务器(Ubuntu 16-18)提供软件,我运行了一个镜像http://archive.ubuntu.com/ubuntu/的虚拟机。

有了可用的软件包,我总是可以管理。现在网络服务器已经属于我的职责范围。PHP 的包在这里:https ://packages.sury.org/php/

我现在的问题是,我可以将 PHP 存储库克隆到与官方 Ubuntu 软件包相同的目录中吗?还是我必须创建一条新路径?如果您可以将两个存储库放在一个目录中,那么您将不得不向 Sources.list 添加更少的条目。

repository localrepository
  • 1 个回答
  • 203 Views
Martin Hope
Soo
Asked: 2018-05-23 01:26:55 +0800 CST

使用 apt-mirror 创建本地仓库时出错

  • 2

我想为 Ubuntu 18.04 和 16.04 创建一个本地存储库。我只对下载 64 位软件包感兴趣。我正在使用“apt-mirror”将软件包下载到硬盘上。

我在“mirror.lst”中使用以下内容

deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

使用“sudo apt-mirror”时出现以下错误

Downloading 380 index files using 40 threads...
Begin time: Tue May 22 12:09:11 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Tue May 22 12:09:26 2018

Processing translation indexes: [TTTTTTTTTT]

Downloading 453 translation files using 40 threads...
Begin time: Tue May 22 12:09:26 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Tue May 22 12:10:03 2018

Processing DEP-11 indexes: [DDDDDDDDDD]

Downloading 144 dep11 files using 40 threads...
Begin time: Tue May 22 12:10:03 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Tue May 22 12:13:42 2018

Processing indexes: [P
gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format
PPPPP
gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format
PPPP
gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format

gzip: stdin: not in gzip format
]

26.9 GiB will be downloaded into archive.
Downloading 5640 archive files using 40 threads...
Begin time: Tue May 22 12:13:43 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... 


[0]... 
End time: Tue May 22 12:58:01 2018

我反复尝试了很多次,每次都得到同样的错误。

下载也很慢(尽管我的互联网连接很快)。是否有任何选项可以从多个镜像同时下载软件包?也请让我知道克服错误的任何解决方案!

apt localrepository apt-mirror
  • 3 个回答
  • 599 Views
Martin Hope
Alexar
Asked: 2010-09-25 04:54:43 +0800 CST

如何使用 .iso 映像作为 CD-ROM 存储库?

  • 52

我将 Debian、Ubuntu 和 Ubuntustudio 的所有图像都保存为.iso. 我如何将它们用作存储库来安装我想要的软件包sudo apt-get install package-name?

我很容易用Archive Mounter挂载.iso文件,但是在Software Sources添加 CD-ROM 时,它说Please Insert CD-ROM。

我应该如何做到这一点而不将它们刻录到磁盘?

repository cd apt localrepository add-apt-repository
  • 10 个回答
  • 165985 Views
Martin Hope
Rojan
Asked: 2010-09-05 00:27:34 +0800 CST

如何将 USB 驱动器作为本地存储库

  • 29

我从另一台计算机复制了“存档”文件夹(/var/cache/apt/archives),该计算机已完全更新并有一些我想要的软件包。有人可以指导我如何将我的 USB 驱动器添加到存储库列表中,以便我可以从中安装这些软件包吗?

谢谢。

software-installation repository apt localrepository
  • 6 个回答
  • 95120 Views

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