Bug #13741
closedapt configuration issue - add apost-check to validate generated line
Description
Getting this on a Rudder 5.0 node on 4.3 master:
root@ubu-hg:/etc/apt/sources.list.d# cat *- Managed by Rudder, edit with care ###
deb http://de.archive.ubuntu.com/ubuntu ${apt_detected_distro} universe multiverse
breaks updates and OS install.
This is an LTS ubuntu that came out ages ago, no idea what is going wrong.
root@ubu-hg:/etc/apt/sources.list.d# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
since I see that there's a preexisting issue for the same problem a few years back... please could you consider a cleaner solution, that validates the generated url before writing it.
https://www.rudder-project.org/redmine/issues/11336
I know it's just Ubuntu, but still :)