From be5c92e30f1f22a7a2c1e999ecb22a76386becbc Mon Sep 17 00:00:00 2001 From: Simon Podhajsky Date: Thu, 9 May 2024 19:39:53 +0000 Subject: [PATCH 1/2] Add instructions for Docker issue with hash mismatch to FAQ --- website/docs/FAQ.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/website/docs/FAQ.mdx b/website/docs/FAQ.mdx index d2a4b3b2a32..010a9b2d8f2 100644 --- a/website/docs/FAQ.mdx +++ b/website/docs/FAQ.mdx @@ -277,3 +277,22 @@ To resolve this issue, you need to upgrade your Autogen library to version 0.2.2 ```python pip install --upgrade autogen ``` + +## None of the devcontainers are building due to "Hash sum mismatch", what should I do? + +This is an intermittent issue that appears to be caused by some combination of mirror and proxy issues. +If it arises, try to replace the `apt-get update` step with the following: + +```bash +RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \ + echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \ + echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom + +RUN apt-get clean && \ + rm -r /var/lib/apt/lists/* && \ + apt-get update -o Acquire::CompressionTypes::Order::=gz && \ + apt-get -y update && \ + apt-get install sudo git npm # and whatever packages need to be installed in this specific version of the devcontainer +``` + +This is a combination of StackOverflow suggestions [here](https://stackoverflow.com/a/48777773/2114580) and [here](https://stackoverflow.com/a/76092743/2114580). \ No newline at end of file From 30e87d5ff2a378da25a5442d9f13b432ba668a9e Mon Sep 17 00:00:00 2001 From: Simon Podhajsky Date: Thu, 9 May 2024 19:48:01 +0000 Subject: [PATCH 2/2] Make pre-commit happy --- website/docs/FAQ.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/FAQ.mdx b/website/docs/FAQ.mdx index 010a9b2d8f2..5a0adece6b0 100644 --- a/website/docs/FAQ.mdx +++ b/website/docs/FAQ.mdx @@ -280,7 +280,7 @@ pip install --upgrade autogen ## None of the devcontainers are building due to "Hash sum mismatch", what should I do? -This is an intermittent issue that appears to be caused by some combination of mirror and proxy issues. +This is an intermittent issue that appears to be caused by some combination of mirror and proxy issues. If it arises, try to replace the `apt-get update` step with the following: ```bash @@ -295,4 +295,4 @@ RUN apt-get clean && \ apt-get install sudo git npm # and whatever packages need to be installed in this specific version of the devcontainer ``` -This is a combination of StackOverflow suggestions [here](https://stackoverflow.com/a/48777773/2114580) and [here](https://stackoverflow.com/a/76092743/2114580). \ No newline at end of file +This is a combination of StackOverflow suggestions [here](https://stackoverflow.com/a/48777773/2114580) and [here](https://stackoverflow.com/a/76092743/2114580).