-
Notifications
You must be signed in to change notification settings - Fork 8
Fix build: handle missing ubuntu.sources for deb-src #284
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,11 @@ ENV MFT_VERSION=4.33.0-169 | |
| ARG PACKAGES="dpkg-dev=1.22.6ubuntu6.5 libusb-1.0-0=2:1.0.27-1 ipmitool=1.8.19-7ubuntu0.24.04.3 rshim curl=8.5.0-2ubuntu10.6 systemd-sysv=255.4-1ubuntu8.12 mstflint=4.26.0+1-2ubuntu3" | ||
|
|
||
| # enable deb-src repos | ||
| RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources | ||
| RUN if [ -f /etc/apt/sources.list.d/ubuntu.sources ]; then \ | ||
| sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources; \ | ||
| elif [ -f /etc/apt/sources.list ]; then \ | ||
| sed -i 's/^#\s*deb-src/deb-src/' /etc/apt/sources.list; \ | ||
| fi | ||
|
Comment on lines
+37
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deb-src not enabled Same issue as in |
||
|
|
||
| # DOCA repositories have a GPG issue, so we need to allow insecure repositories. | ||
| # GPG error: https://linux.mellanox.com/public/repo/doca/3.2.1/ubuntu22.04/x86_64 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A024F6F0E0E6D6A281 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deb-src not enabled
The
/etc/apt/sources.listfallback only uncomments lines that start with# deb-src, but many Ubuntu images ship activedeblines without anydeb-srclines at all. In that case, thissedno-ops andapt-get source ${PACKAGES}will still fail (the same build failure, just on a different base). Consider ensuring adeb-srcentry exists (or enablingdeb-srcfrom existingdebentries) rather than only uncommenting existingdeb-srclines.