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

Need to accurately detect distro codename #10

Open
adam-kosseck opened this issue Sep 30, 2020 · 0 comments
Open

Need to accurately detect distro codename #10

adam-kosseck opened this issue Sep 30, 2020 · 0 comments

Comments

@adam-kosseck
Copy link

apt-smart appears to use a hard-coded list of url to determine distro codename:

  • /etc/apt/sources.list
  • /etc/apt/sources.list.d/official-package-repositories.list

apt-smart should support dynamic sources, scanning .list files under /etc/apt/sources.list.d/.

In all of the boxes in our environment, /etc/apt/sources.list is empty and we use one file per repositories in /etc/apt/sources.list.d

Running apt-smart in our environment, supplying a mirror list file results in apt-smart failing with:
2020-09-30 11:35:09 hostname.domain.com property_manager3[14498] SPAM Setting value of AptMirrorUpdater.get_sources_list_options property to {2: 'Ubuntu-Server 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)', 4: 'Ubuntu-Server 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)'} .. 2020-09-30 11:35:09 hostname.domain.com apt_smart.cli[14498] ERROR Encountered unexpected exception! Aborting .. Failed to determine the distribution codename

Would it be a better idea to just get the distro information from /etc/os-release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant