Limit apt sources to the actual architectures #2021
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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.comRelated issue: #1961
Check list