apt(-get) source fails to use credentials from /etc/apt/auth.conf(.d)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have configured apt-src access to the private ESM PPAs via entries in /etc/apt/
deb-src https:/
and then added credentials as follows to /etc/apt/
machine private-
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
Reading package lists... Done
Selected version '3.20201110.
NOTICE: 'intel-microcode' packaging is maintained in the 'Git' version control system at:
https:/
Please use:
git clone https:/
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 3,447 kB of source archives.
Err:1 https:/
401 Unauthorized [IP: 2001:67c:
Err:2 https:/
401 Unauthorized [IP: 2001:67c:
E: Failed to fetch https:/
E: Failed to fetch https:/
E: Failed to fetch some archives.
However if I edit /etc/apt/
deb-src https:/
$ apt-get source --only-source intel-microcode
Reading package lists... Done
Selected version '3.20201110.
NOTICE: 'intel-microcode' packaging is maintained in the 'Git' version control system at:
https:/
Please use:
git clone https:/
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 3,447 kB of source archives.
Get:1 https:/
Get:2 https:/
Fetched 3,447 kB in 5s (657 kB/s)
dpkg-source: info: extracting intel-microcode in intel-microcode
dpkg-source: info: unpacking intel-microcode
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:/
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: apt 2.1.10
ProcVersionSign
Uname: Linux 5.8.0-28-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckR
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)
Status changed to 'Confirmed' because the bug affects multiple users.