Problem: deprecation warning when using username:password authentication in a sources.list file

Info

When using a protected repository it is common to put username:password into a deb repo definition into a /etc/apt/sources.list.d/* list.
The lines are generated by UCRVs documented in 11. Integration of external repositories — Univention Corporate Server - Manual for developers

This attempt now generates a warning during apt update:

N: Die Verwendung von apt_auth.conf(5) sollte gegenüber der Methode bevorzugt werden, Login-Informationen direkt in den sources.list(5)-Abschnitt für »https://service.software-univention.de/
univention-repository/apt/99999/5.0/maintained/component« einzutragen.
N: Die Verwendung von apt_auth.conf(5) sollte gegenüber der Methode bevorzugt werden, Login-Informationen direkt in den sources.list(5)-Abschnitt für »https://service.software-univention.de/
univention-repository/apt/99999/5.0/maintained/component« einzutragen.

See also: Bug 55528 – deprecation warning when using username:password authentication in a sources.list file

Workaround

Configure the corresponding UCR-variable

repository/online/component/example/server: https://service.univention.de/univention-repository/apt/99999

and create an authentication file /etc/apt/auth.conf.d/example with the following

machine service.univention.de login <username> password <password>

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon