[Bug 1904068] Re: apt(-get) source fails to use credentials from /etc/apt/auth.conf(.d)

Renan Rodrigo 1904068 at bugs.launchpad.net
Fri Feb 10 19:44:05 UTC 2023


Gabriel Kaufmann (info-typoworx) wrote on 2022-08-24 (last edit on
2022-08-24):

> Also affects me. But instead of "only" source-packages all updates
fail with Unauthorized 401. ESM is unusable in fact working like that!
In my case Ubuntu 16.04 is affected which still should work for ESM
Updates and there are about 300 updates proposed for me, but I'm not
able to download them.

Hello, Gabriel
To have access to the esm repositories you need an Ubuntu Pro subscription (https://ubuntu.com/pro). If you are attached to a subscription, `pro enable esm-infra` will give you access.

If you still get 401s when the service is enabled, please open a bug
against `ubuntu-advantage-tools`
(https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-
tools/+filebug) so we can help you.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1904068

Title:
  apt(-get) source fails to use credentials from /etc/apt/auth.conf(.d)

Status in apt package in Ubuntu:
  Confirmed

Bug description:
  I have configured apt-src access to the private ESM PPAs via entries
  in /etc/apt/sources.list.d/ubuntu-security.list as follows:

  deb-src https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-
  security/ubuntu trusty main

  and then added credentials as follows to /etc/apt/auth.conf.d/ubuntu-
  security.conf:

  machine private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu
  login alexmurray password XXXXXXXX

  Running apt-get update then succeeds - but if I then try and run `apt-
  get source` to download from the PPA it fails:

  $ apt-get source --only-source intel-microcode/trusty
  Reading package lists... Done
  Selected version '3.20201110.0ubuntu0.14.04.2' (trusty) for intel-microcode
  NOTICE: 'intel-microcode' packaging is maintained in the 'Git' version control system at:
  https://salsa.debian.org/hmh/intel-microcode.git
  Please use:
  git clone https://salsa.debian.org/hmh/intel-microcode.git
  to retrieve the latest (possibly unreleased) updates to the package.
  Need to get 3,447 kB of source archives.
  Err:1 https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu trusty/main intel-microcode 3.20201110.0ubuntu0.14.04.2 (tar)
    401  Unauthorized [IP: 2001:67c:1560:8008::15 443]
  Err:2 https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu trusty/main intel-microcode 3.20201110.0ubuntu0.14.04.2 (dsc)
    401  Unauthorized [IP: 2001:67c:1560:8008::15 443]
  E: Failed to fetch https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu/pool/main/i/intel-microcode/intel-microcode_3.20201110.0ubuntu0.14.04.2.tar.xz  401  Unauthorized [IP: 2001:67c:1560:8008::15 443]
  E: Failed to fetch https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu/pool/main/i/intel-microcode/intel-microcode_3.20201110.0ubuntu0.14.04.2.dsc  401  Unauthorized [IP: 2001:67c:1560:8008::15 443]
  E: Failed to fetch some archives.

  
  However if I edit /etc/apt/sources.list.d/ubuntu-security.list above to specify the credentials in-line then it succeeds:

  deb-src https://alexmurray:XXXXXXXX@private-ppa.launchpad.net/ubuntu-
  esm/esm-infra-security/ubuntu trusty main

  $ apt-get source --only-source intel-microcode/trusty
  Reading package lists... Done
  Selected version '3.20201110.0ubuntu0.14.04.2' (trusty) for intel-microcode
  NOTICE: 'intel-microcode' packaging is maintained in the 'Git' version control system at:
  https://salsa.debian.org/hmh/intel-microcode.git
  Please use:
  git clone https://salsa.debian.org/hmh/intel-microcode.git
  to retrieve the latest (possibly unreleased) updates to the package.
  Need to get 3,447 kB of source archives.
  Get:1 https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu trusty/main intel-microcode 3.20201110.0ubuntu0.14.04.2 (tar) [3,446 kB]
  Get:2 https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu trusty/main intel-microcode 3.20201110.0ubuntu0.14.04.2 (dsc) [1,604 B]
  Fetched 3,447 kB in 5s (657 kB/s)                     
  dpkg-source: info: extracting intel-microcode in intel-microcode-3.20201110.0ubuntu0.14.04.2
  dpkg-source: info: unpacking intel-microcode_3.20201110.0ubuntu0.14.04.2.tar.xz

  However now apt(-get) update complains about having credentials
  manually listed in the apt sources:

  $ sudo apt update
  ...
  N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for 'https://private-ppa.launchpad.net/ubuntu-esm/esm-infra-security/ubuntu'

  ProblemType: Bug
  DistroRelease: Ubuntu 20.10
  Package: apt 2.1.10
  ProcVersionSignature: Ubuntu 5.8.0-28.30-generic 5.8.14
  Uname: Linux 5.8.0-28-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu50
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Nov 13 09:09:54 2020
  InstallationDate: Installed on 2020-10-11 (32 days ago)
  InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20200930)
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1904068/+subscriptions




More information about the foundations-bugs mailing list