Snapcraft build can not connet to internet

I tried to build a simple app and it fails every time on the apt-get update. I do have wifi and I can browse internet but inside of the of the shell nothing works, curl, apt-get, etc… The log of the build

2022-11-14 20:12:56.747 Starting Snapcraft 7.2.7
2022-11-14 20:12:56.748 lifecycle command: 'pack', arguments: Namespace(bind_ssh=False, build_for=None, debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2022-11-14 20:12:56.748 command: pack, arguments: Namespace(bind_ssh=False, build_for=None, debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2022-11-14 20:12:56.755 CPU count (from process affinity): 8
2022-11-14 20:12:56.755 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT value
2022-11-14 20:12:56.755 Running on amd64 for amd64
2022-11-14 20:12:56.756 Checking build provider availability
2022-11-14 20:12:56.762 Retrieved snap config: {}
2022-11-14 20:12:56.762 Using default provider 'lxd' on linux system.
2022-11-14 20:12:56.762 Emitter: Pausing control of the terminal
2022-11-14 20:12:56.868 Emitter: Resuming control of the terminal
2022-11-14 20:12:56.869 Launching instance...
2022-11-14 20:13:39.495 Emitter: Pausing control of the terminal
2022-11-14 20:14:24.561 Emitter: Resuming control of the terminal
2022-11-14 20:14:24.741 Logs retrieved from managed instance:
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.484 Starting Snapcraft 7.2.7
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.485 lifecycle command: 'pack', arguments: Namespace(bind_ssh=False, build_for='amd64', debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.485 command: pack, arguments: Namespace(bind_ssh=False, build_for='amd64', debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.502 CPU count (from process affinity): 8
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.502 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT value
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.502 Running on amd64 for amd64
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.504 Initializing parts lifecycle
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.504 is_snap: True, SNAP_NAME set to snapcraft
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.505 process src:Step.PULL
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.505 add action src:Step.PULL(ActionType.RUN)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 process src:Step.OVERLAY
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 add action src:Step.OVERLAY(ActionType.RUN)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 process src:Step.BUILD
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 add action src:Step.BUILD(ActionType.RUN)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 process src:Step.STAGE
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.512 add action src:Step.STAGE(ActionType.RUN)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.513 process src:Step.PRIME
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.513 add action src:Step.PRIME(ActionType.RUN)
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.513 Executing parts lifecycle...
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.514 ignore patterns: ['*.snap']
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.514 plugin build packages: {'python3-dev', 'findutils', 'python3-venv'}
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:43.514 Requested build-packages: ['findutils', 'python3-dev', 'python3-venv']
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.682 Marking python3-dev (and its dependencies) to be fetched
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.682 package: python3-dev
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.699 Marking findutils (and its dependencies) to be fetched
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.699 package: findutils
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.704 Marking python3-venv (and its dependencies) to be fetched
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.704 package: python3-venv
2022-11-14 20:14:24.741 :: 2022-11-14 20:13:44.736 Executing: ['apt-get', 'update']
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:16.834 :: Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:16.834 :: Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:16.835 :: Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:16.924 :: Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:17.837 :: Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:17.837 :: Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:17.838 :: Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:17.924 :: Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:19.839 :: Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:19.840 :: Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:19.841 :: Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:19.926 :: Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.842 :: Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.842 :: Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.842 :: Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.842 :: Unable to connect to archive.ubuntu.com:80:
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.843 :: Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.843 :: Unable to connect to archive.ubuntu.com:80:
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.928 :: Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:23.928 :: Could not connect to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:24.387 :: Reading package lists...
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:24.399 :: E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out
2022-11-14 20:14:24.741 :: 2022-11-14 20:14:24.399 :: E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.399 :: E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.399 :: E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (185.125.190.36), connection timed out
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.399 :: E: Some index files failed to download. They have been ignored, or old ones used instead.
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.400 Failed to refresh package list: failed to run apt update.
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 Traceback (most recent call last):
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 403, in refresh_packages_list
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     process_run(cmd)
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 746, in process_run
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     os_utils.process_run(command, logger.debug, **kwargs)
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/utils/os_utils.py", line 370, in process_run
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     raise subprocess.CalledProcessError(ret, command)
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 subprocess.CalledProcessError: Command '['apt-get', 'update']' returned non-zero exit status 100.
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 The above exception was the direct cause of the following exception:
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 Traceback (most recent call last):
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 164, in run
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     with self._lcm.action_executor() as aex:
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 281, in __enter__
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     self._executor.prologue()
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 87, in prologue
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     self._install_build_packages()
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 222, in _install_build_packages
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     packages.Repository.install_packages(sorted(build_packages))
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 525, in install_packages
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     cls.refresh_packages_list()
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_parts/packages/deb.py", line 405, in refresh_packages_list
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     raise errors.PackageListRefreshError(
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 craft_parts.packages.errors.PackageListRefreshError: Failed to refresh package list: failed to run apt update.
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 The above exception was the direct cause of the following exception:
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 Traceback (most recent call last):
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 284, in _run_command
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     _run_lifecycle_and_pack(
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 327, in _run_lifecycle_and_pack
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     lifecycle.run(
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404   File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 184, in run
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404     raise errors.PartsLifecycleError(str(err)) from err
2022-11-14 20:14:24.742 :: 2022-11-14 20:14:24.404 snapcraft.errors.PartsLifecycleError: Failed to refresh package list: failed to run apt update.
2022-11-14 20:14:26.115 Failed to execute pack in instance.
2022-11-14 20:14:26.116 Detailed information: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
2022-11-14 20:14:26.116 Traceback (most recent call last):
2022-11-14 20:14:26.116   File "/snap/snapcraft/8528/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 553, in _run_in_provider
2022-11-14 20:14:26.116     instance.execute_run(cmd, check=True, cwd=output_dir)
2022-11-14 20:14:26.116   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_providers/lxd/lxd_instance.py", line 289, in execute_run
2022-11-14 20:14:26.116     return self.lxc.exec(
2022-11-14 20:14:26.116   File "/snap/snapcraft/8528/lib/python3.8/site-packages/craft_providers/lxd/lxc.py", line 329, in exec
2022-11-14 20:14:26.116     return runner(final_cmd, **kwargs)  # pylint: disable=subprocess-run-check
2022-11-14 20:14:26.116   File "/snap/snapcraft/8528/usr/lib/python3.8/subprocess.py", line 516, in run
2022-11-14 20:14:26.116     raise CalledProcessError(retcode, process.args,
2022-11-14 20:14:26.116 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-tasker-on-amd64-for-amd64-16126489', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'SNAPCRAFT_MANAGED_MODE=1', 'snapcraft', 'pack', '--verbosity=brief', '--build-for', 'amd64']' returned non-zero exit status 1.

several *.ubuntu.com sites had outages today, this could potentially be fallout of them being down …