Skip to content

Update eLxr specific changes

Fix the following error:

apt-add-repository -L
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 361, in <module>
    addaptrepo = AddAptRepository()
                 ^^^^^^^^^^^^^^^^^^
  File "/usr/bin/apt-add-repository", line 39, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for eLxr/aria
WARNING: "apt-add-repository -L" returns 1

This is caused by changing the Name from "eLxr Linux" to "eLxr" in /etc/os-release
lsb_release determines the distribution's ID with the NAME and ID in /etc/os-release
origin:  os-release: NAME="eLxr linux", ID=elxr, lsb_release determines distribution's ID="Elxr"
current: os-release: NAME="eLxr",       ID=elxr, lsb_release determines distribution's ID="eLxr"
The search template using the distribution's ID "eLxr" fails because the existing template is still "Elxr."

Signed-off-by: Rong Fu Rong.Fu.CN@windrier.com

Edited by Rong Fu

Merge request reports

Loading