Skip to content

Conversation

DaanDeMeyer
Copy link
Contributor

Let's make sure to install apt sources every time we install the apt package, even if BaseTrees= or volatile packages or such are in the mix.

To make this work we unfortunately have to reintroduce install_packages().

While we're at it, make sure the installed apt sources don't use the configured mirror or snapshot. We only install a default set of sources and for anything custom users should install their own sources.

@DaanDeMeyer DaanDeMeyer force-pushed the fix-apt-sources branch 2 times, most recently from e252508 to 3be9878 Compare October 16, 2025 14:34
Let's make sure to install apt sources every time we install the apt
package, even if BaseTrees= or volatile packages or such are in the mix.

To make this work we unfortunately have to reintroduce install_packages().

While we're at it, make sure the installed apt sources don't use the
configured mirror or snapshot. We only install a default set of sources
and for anything custom users should install their own sources.
def repositories(cls, context: Context, for_image: bool = False) -> Iterable[AptRepository]:
mirror = None if for_image else context.config.mirror
if not mirror:
mirror = "http://http.kali.org/kali"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be mentioned in the man page in the table for default mirrors (it should have been there before, but I just noticed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants