Skip to content

Fails to consider mirror scheme #72

@solsticedhiver

Description

@solsticedhiver

With (newer ?) ubuntu release, one can use a mirror protocol that use directly the mirrors from mirrors.ubuntu.com

Tihs means lines in sources.list looks like this:

deb mirror://mirrors.ubuntu.com/mirrors.txt [...]

When this is set in sources.list, then apt-select bails out with the error:

Traceback (most recent call last):
  File "/home/solstice/.local/bin/apt-select", line 11, in <module>
    sys.exit(main())
  File "/home/solstice/.local/lib/python2.7/site-packages/apt_select/__main__.py", line 244, in main
    apt_select()
  File "/home/solstice/.local/lib/python2.7/site-packages/apt_select/__main__.py", line 175, in apt_select
    sources.set_current_archives()
  File "/home/solstice/.local/lib/python2.7/site-packages/apt_select/apt.py", line 164, in set_current_archives
    self.skip_gen_msg)
apt_select.apt.SourcesFileError: Error finding current main URI in /etc/apt/sources.list
Skipping file generation

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions