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

Limit apt sources to the actual architectures #2021

Merged
merged 3 commits into from
Nov 17, 2020
Merged

Limit apt sources to the actual architectures #2021

merged 3 commits into from
Nov 17, 2020

Conversation

dsame
Copy link
Contributor

@dsame dsame commented Nov 10, 2020

Description

Improvement

The Ubuntu mirrors http://azure.archive.ubuntu.com and http://security.ubuntu.com do not contains packages for arm architectures and this causes the error if an user attempts to apt-install packages compiled for ARM

This PR solves the problem by explicit definition the repos include only amd64 and i386 architectures and must be excluded from the search if ARM compiled packages are requested.

The result of the PR user become able to add the repos with ported packages like this

deb http://ports.ubuntu.com/ubuntu-ports bionimain
deb http://ports.ubuntu.com/ubuntu-ports bioniuniverse
deb http://ports.ubuntu.com/ubuntu-ports bionimultiverse
deb http://ports.ubuntu.com/ubuntu-ports bionirestricted

and issue the command like apt install -y libusb-1.0:armhf

Without the PR the command fails because there's no libusb-1.0:armhf package in http://azure.archive.ubuntu.com and http://security.ubuntu.com

Related issue: #1961

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@dsame dsame marked this pull request as ready for review November 10, 2020 15:21
@AlenaSviridenko AlenaSviridenko merged commit d79dfb9 into actions:main Nov 17, 2020
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.

4 participants