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 / 问题 / 1454409
Accepted
popey
popey
Asked: 2023-02-11 10:48:30 +0800 CST2023-02-11 10:48:30 +0800 CST 2023-02-11 10:48:30 +0800 CST

我从哪里获得 ESM 软件包的源代码?

  • 772

我的家庭服务器运行的是 Ubuntu 22.04 (Jammy) 并且注册了 Ubuntu Pro。

alan@earth:~$ pro status
SERVICE          ENTITLED  STATUS    DESCRIPTION
esm-apps         yes       enabled   Expanded Security Maintenance for Applications
esm-infra        yes       enabled   Expanded Security Maintenance for Infrastructure
livepatch        yes       enabled   Canonical Livepatch service
realtime-kernel  yes       disabled  Ubuntu kernel with PREEMPT_RT patches integrated

Enable services with: pro enable <service>

     Account: (my email here)
Subscription: Ubuntu Pro - free personal subscription

我通过 ESM 收到了一个或多个软件包的更新。

alan@earth:~$ dpkg -l  | grep esm
ii  imagemagick                            8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 amd64        image manipulation programs -- binaries
ii  imagemagick-6-common                   8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 all          image manipulation programs -- infrastructure
ii  imagemagick-6.q16                      8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 amd64        image manipulation programs -- quantum depth Q16
ii  libmagickcore-6.q16-6:amd64            8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 amd64        low-level image manipulation library -- quantum depth Q16
ii  libmagickcore-6.q16-6-extra:amd64      8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 amd64        low-level image manipulation library - extra codecs (Q16)
ii  libmagickwand-6.q16-6:amd64            8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 amd64        image manipulation library -- quantum depth Q16
ii  libopenexr25:amd64                     2.5.7-1ubuntu0.1~esm1                    amd64        runtime files for the OpenEXR image library

例如,libopenexr25:

alan@earth:~$ apt-cache policy libopenexr25
libopenexr25:
  Installed: 2.5.7-1ubuntu0.1~esm1
  Candidate: 2.5.7-1ubuntu0.1~esm1
  Version table:
 *** 2.5.7-1ubuntu0.1~esm1 500
        500 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.5.7-1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

我想要这些的来源。我的相关 sources.list 文件中有源代码行。

alan@earth:~$ cat /etc/apt/sources.list.d/ubuntu-esm-*
deb https://esm.ubuntu.com/apps/ubuntu jammy-apps-security main
deb-src https://esm.ubuntu.com/apps/ubuntu jammy-apps-security main
deb https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates main
deb-src https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates main
deb https://esm.ubuntu.com/infra/ubuntu jammy-infra-security main
deb-src https://esm.ubuntu.com/infra/ubuntu jammy-infra-security main
deb https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates main
deb-src https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates main

然而,当我尝试下载源代码时,出现 401 错误。

alan@earth:~/foo$ apt source libopenexr25
Reading package lists... Done
Picking 'openexr' as source package instead of 'libopenexr25'
NOTICE: 'openexr' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/debian-phototools-team/openexr.git
Please use:
git clone https://salsa.debian.org/debian-phototools-team/openexr.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 27.6 MB of source archives.
Err:1 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main openexr 2.5.7-1ubuntu0.1~esm1 (tar)
  401  Unauthorized [IP: 185.125.190.23 443]
Err:2 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main openexr 2.5.7-1ubuntu0.1~esm1 (asc)
  401  Unauthorized [IP: 185.125.190.23 443]
Err:3 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main openexr 2.5.7-1ubuntu0.1~esm1 (diff)
  401  Unauthorized [IP: 185.125.190.23 443]
Err:4 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main openexr 2.5.7-1ubuntu0.1~esm1 (dsc)
  401  Unauthorized [IP: 185.125.190.23 443]
E: Failed to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/o/openexr/openexr_2.5.7.orig.tar.gz  401  Unauthorized [IP: 185.125.190.23 443]
E: Failed to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/o/openexr/openexr_2.5.7.orig.tar.gz.asc  401  Unauthorized [IP: 185.125.190.23 443]
E: Failed to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/o/openexr/openexr_2.5.7-1ubuntu0.1%7eesm1.debian.tar.xz  401  Unauthorized [IP: 185.125.190.23 443]
E: Failed to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/o/openexr/openexr_2.5.7-1ubuntu0.1%7eesm1.dsc  401  Unauthorized [IP: 185.125.190.23 443]

我如何获得这些源文件?

apt
  • 1 1 个回答
  • 149 Views

1 个回答

  • Voted
  1. Best Answer
    Julian Andres Klode
    2023-02-11T11:43:44+08:002023-02-11T11:43:44+08:00

    访问受存储在 /etc/apt/auth.conf.d 内文件中的令牌保护。普通用户无法读取该文件,因此您必须使用 sudo 或以 root 身份运行下载,或者授予您的用户读取该片段的权限(但不确定专业客户端是否保留它)。

    • 3

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

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