Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-apt-repository command fails on some bionic server installs #56

Open
sarnold opened this issue Aug 2, 2020 · 1 comment
Open

add-apt-repository command fails on some bionic server installs #56

sarnold opened this issue Aug 2, 2020 · 1 comment
Assignees
Labels
distro OS or distro runtime environment watch item hard to reproduce or rarely seen

Comments

@sarnold
Copy link
Contributor

sarnold commented Aug 2, 2020

For some as-yet unknown reason, the above command fails on one bionic RPi server instance:

# apt-add-repository ppa:nerdboy/embedded
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 107, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 117, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 612, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 146, in get_sources
    self.get_mirrors()
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 461, in get_mirrors
    self, mirror_template="http://%s.archive.ubuntu.com/ubuntu/")
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 170, in get_mirrors
    et = ElementTree(file=fname)
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 557, in __init__
    self.parse(file)
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 597, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 600, column 36
@sarnold sarnold added watch item hard to reproduce or rarely seen distro OS or distro runtime environment labels Aug 2, 2020
@sarnold sarnold self-assigned this Aug 2, 2020
@sarnold
Copy link
Contributor Author

sarnold commented Aug 2, 2020

The workaround is follow the manual "install" method documented on the PPA page under the dropdown link: Technical details about this PPA. Use the button to select your Ubuntu release, copy the required content into a new file under /etc/apt/sources.list.d/ and save the file, then run the apt-key command as shown in the README:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 41113ed57774ed19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distro OS or distro runtime environment watch item hard to reproduce or rarely seen
Projects
None yet
Development

No branches or pull requests

1 participant