[build] clear dpkg cache and update sources#3732
[build] clear dpkg cache and update sources#3732yxieca wants to merge 4 commits intosonic-net:masterfrom
Conversation
This change is intended to fix the issue with dpkg-query during build process. The symptom is dpkg-query failed to open package info file, usually /var/lib/dpkg/updates/000? This issue happens rarely. Not sure if this change has fully addressed the issue. So far my continuous build test didn't fail. Signed-off-by: Ying Xie <ying.xie@microsoft.com>
|
looks like there is some build issue with this pr. |
sonic-slave/Dockerfile.j2
Outdated
| RUN echo "deb [arch={{ CONFIGURED_ARCH }}] http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list | ||
| RUN apt-get -o Acquire::Check-Valid-Until=false update | ||
| RUN apt-get -y -o Acquire::Check-Valid-Until=false install ca-certificates-java=20161107~bpo8+1 openjdk-8-jdk | ||
| RUN dpkg --clear-avail; apt-get update |
There was a problem hiding this comment.
This might fix the build:
| RUN dpkg --clear-avail; apt-get update | |
| RUN dpkg --clear-avail; apt-get -o Acquire::Check-Valid-Until=false update |
One question, though: would it not work to replace line 364 with this line instead of adding this line here?
Also, do we even still need to build the Jessie-based sonic-slave container any more in the master branch?
There was a problem hiding this comment.
Thanks Joe!
I should have tested with master branch before creating the PR. There is enough difference between 201811 and master causing me unable to cherry-pick directly.
There was a problem hiding this comment.
Sorry. Looks like I missed something again in the second try.
There was a problem hiding this comment.
Strange. I wouldn't think you'd need to make the same change for the Stretch container...
There was a problem hiding this comment.
My understanding is that the change is to cleanup the environment.
Master might not need Jessie change and 201811 might not need stretch change. But change both anyways to keep it consistent.
There was a problem hiding this comment.
Clarified offline and you have already made the change, but for posterity, I meant that the -o Acquire::Check-Valid-Until=false option should not be needed when building the Stretch container because there are currently no expired repos (whereas the "jessie-backports" repo is no longer maintained and they are no longer updating its "Valid-Until" date.
|
retest mellanox please |
|
retest vs please |
1 similar comment
|
retest vs please |
|
Turns out that this change didn't fix the issue. Joe and I discussed. The issue might have come from 2 possible sources:
|
…lly (#23137) #### Why I did it src/sonic-swss ``` * c2528f15 - (HEAD -> 202505, origin/202505) [trim]: Add Packet Trimming to OA (#3733) (2 days ago) [mssonicbld] * 14c2796c - [portsorch] postpone non-critical port init part in warm/fast-reboot (#3734) (2 days ago) [mssonicbld] * 8815c640 - [routeorch] Handle SAI_STATUS_ITEM_NOT_FOUND when setting route entries (#3732) (2 days ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
- What I did
Fixes: #119
This change is intended to fix the issue with dpkg-query during build process.
The symptom is dpkg-query failed to open package info file, usually /var/lib/dpkg/updates/000?
This issue happens rarely. Not sure if this change has fully addressed the issue. So far my continuous build test didn't fail.
Signed-off-by: Ying Xie ying.xie@microsoft.com
- How I did it
https://ubuntuforums.org/showthread.php?t=872210
- How to verify it
I made change in 201811 branch initially. Continuous build test was executed there.