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

[PROTOTYPE] feat(apt_sources_manager): support foreign architectures #149

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mr-cal
Copy link
Contributor

@mr-cal mr-cal commented Jan 31, 2025

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint && make test?

This prototype allows for installing packages from foreign architectures for apt.

An example project for this can be found here: https://github.com/mr-cal/curl-consumer

Fixes #104
Unblocks canonical/snapcraft#5222
(CRAFT-2425)

"""Return true if the default sources are in deb822 format."""
# TODO

return bool("You're using core24, right?")
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤣

# Sources in 'ubuntu.sources' don't list architectures, so apt assumes the default
# repository can serve all architectures. These need to be restricted before adding
# other architectures with `dpkg --add-architecture`.
if _is_deb822_default():
Copy link
Collaborator

Choose a reason for hiding this comment

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

For a non-experimental version, maybe we just replace sources.list with a deb822 format? dpkg supports it at least as far back as focal

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

Successfully merging this pull request may close these issues.

[Investigate] support foreign architectures
2 participants