Public bug reported: Related to https://bugs.launchpad.net/ubuntu/+source/texinfo/+bug/993407
It looks like the principle consumer for /etc/environment is linux-pam, and as such the de facto formatting rubric is here as per https://unix.stackexchange.com/a/748791, which points to: https://github.com/linux-pam/linux- pam/blob/1fbf123d982b90d41463df7b6b59a4e544263358/modules/pam_env/pam_env.c#L906 Note specifically: /* skip blanks lines and comments */ if (key[0] == '#') continue; Since there is no other explicit documentation for /etc/enviroment, I would suggest keeping those exceptions as valid. Right now my commented lines in /etc/environment are causing a failure to upgrade thanks to the changes in reponse to https://bugs.launchpad.net/ubuntu/+source/texinfo/+bug/2125808 from texinfo - 7.2-5ubuntu1. ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: install-info 7.2-5ubuntu1 Uname: Linux 7.0.0-rc3-mt7925utest x86_64 NonfreeKernelModules: zfs ApportVersion: 2.33.1-0ubuntu3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Sun Mar 15 09:10:21 2026 InstallationDate: Installed on 2025-03-07 (374 days ago) InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Daily amd64 (20250306) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: texinfo UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: texinfo (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug resolute wayland-session -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2144471 Title: install-info upgrade fails w/ commented lines in /etc/environment To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/texinfo/+bug/2144471/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
