Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save therobyouknow/4b9094983bedeccc1b6ccb1d298aa140 to your computer and use it in GitHub Desktop.
Save therobyouknow/4b9094983bedeccc1b6ccb1d298aa140 to your computer and use it in GitHub Desktop.
failed ddev windows powershell install script due to temporary failure resolving
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; PS C:\Windows\system32> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1'))
Chocolatey does not appear to be installed yet, installing
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.1.0.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.1.0 to C:\Users\rd4n23\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Extracting C:\Users\rd4n23\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\rd4n23\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
Creating Chocolatey folders if they do not already exist.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\rd4n23\OneDrive - University of
Southampton\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
Chocolatey v2.1.0
Upgrading the following packages:
ddev;gsudo;mkcert
By upgrading, you accept licenses for the packages.
ddev is not installed. Installing...
Progress: Downloading gsudo 2.0.10... 100%
gsudo v2.0.10 [Approved]
gsudo package files upgrade completed. Performing other installation steps.
PATH environment variable does not have C:\tools\gsudo\Current in it. Adding...
symbolic link created for C:\tools\gsudo\v2.0.10\sudo.exe <<===>> C:\tools\gsudo\v2.0.10\gsudo.exe
symbolic link created for C:\tools\gsudo\Current <<===>> C:\tools\gsudo\v2.0.10\
gsudo successfully installed. Please restart your consoles to use gsudo.
PowerShell users: To use enhanced gsudo and Invoke-Gsudo cmdlet, add the following line to your $PROFILE
Import-Module 'C:\tools\gsudo\Current\gsudoModule.psd1'
Or run:
Write-Output "`nImport-Module 'C:\tools\gsudo\Current\gsudoModule.psd1'" | Add-Content $PROFILE
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The upgrade of gsudo was successful.
Software installed to 'C:\tools\gsudo'
Progress: Downloading mkcert 1.4.4... 100%
mkcert v1.4.4 [Approved]
mkcert package files upgrade completed. Performing other installation steps.
ShimGen has successfully created a shim for mkcert.exe
The upgrade of mkcert was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\mkcert'
Progress: Downloading ngrok 3.3.1... 100%
ngrok v3.3.1 [Approved]
ngrok package files upgrade completed. Performing other installation steps.
Downloading ngrok 64 bit
from 'https://bin.equinox.io/a/cJk8dzafvmN/ngrok-v3-3.3.1-windows-amd64.zip'
Progress: 100% - Completed download of C:\Users\rd4n23\AppData\Local\Temp\chocolatey\ngrok\3.3.1\ngrok-v3-3.3.1-windows-amd64.zip (8.62 MB).
Download of ngrok-v3-3.3.1-windows-amd64.zip (8.62 MB) completed.
Hashes match.
Extracting C:\Users\rd4n23\AppData\Local\Temp\chocolatey\ngrok\3.3.1\ngrok-v3-3.3.1-windows-amd64.zip to C:\ProgramData\chocolatey\lib\ngrok\tools...
C:\ProgramData\chocolatey\lib\ngrok\tools
ShimGen has successfully created a shim for ngrok.exe
The upgrade of ngrok was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\ngrok\tools'
Progress: Downloading NSSM 2.24.101.20180116... 100%
nssm v2.24.101.20180116 [Approved]
nssm package files upgrade completed. Performing other installation steps.
Installing 64 bit version
Extracting C:\ProgramData\chocolatey\lib\NSSM\tools\nssm-2.24-101-g897c7ad.zip to C:\ProgramData\chocolatey\lib\NSSM\tools...
C:\ProgramData\chocolatey\lib\NSSM\tools
ShimGen has successfully created a shim for nssm.exe
The upgrade of nssm was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\NSSM\tools'
Progress: Downloading ddev 1.21.6... 100%
ddev v1.21.6 [Approved]
ddev package files upgrade completed. Performing other installation steps.
Downloading ddev 64 bit
from 'https://github.com/ddev/ddev/releases/download/v1.21.6/ddev_windows_installer.v1.21.6.exe'
Progress: 100% - Completed download of C:\Users\rd4n23\AppData\Local\Temp\chocolatey\ddev\1.21.6\ddev_windows_installer.v1.21.6.exe (11.14 MB).
Download of ddev_windows_installer.v1.21.6.exe (11.14 MB) completed.
Hashes match.
Installing ddev...
ddev has been installed.
ddev may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The upgrade of ddev was successful.
Software installed as 'EXE', install location is likely default.
gsudo v2.0.10 is the latest version available based on your source(s).
mkcert v1.4.4 is the latest version available based on your source(s).
Chocolatey upgraded 5/5 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Upgraded:
- ddev v1.21.6
- gsudo v2.0.10
- mkcert v1.4.4
- ngrok v3.3.1
- nssm v2.24.101.20180116
Created a new local CA 💥
The local CA is now installed in the system trust store! ⚡️
SUCCESS: Specified value was saved.
SUCCESS: Specified value was saved.
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
lsb-release set to manually installed.
ca-certificates is already the newest version (20211016ubuntu0.22.04.1).
ca-certificates set to manually installed.
curl is already the newest version (7.81.0-1ubuntu1.10).
curl set to manually installed.
gnupg is already the newest version (2.2.27-3ubuntu2.1).
gnupg set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
curl: (6) Could not resolve host: download.docker.com
gpg: no valid OpenPGP data found.
curl: (6) Could not resolve host: pkg.ddev.com
gpg: no valid OpenPGP data found.
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:3 https://pkg.ddev.com/apt * InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 https://pkg.ddev.com/apt * InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 https://pkg.ddev.com/apt * InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 https://pkg.ddev.com/apt * InRelease
Temporary failure resolving 'pkg.ddev.com'
Err:2 https://download.docker.com/linux/ubuntu jammy InRelease
Temporary failure resolving 'download.docker.com'
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://pkg.ddev.com/apt/dists/*/InRelease Temporary failure resolving 'pkg.ddev.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/jammy/InRelease Temporary failure resolving 'download.docker.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ddev
E: Unable to locate package docker-ce
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Unable to locate package wslu
[sudo] password for robdavis:
usermod: group 'docker' does not exist
CAROOT=/mnt/c/Users/rd4n23/AppData/Local/mkcert
/bin/bash: line 1: mkcert: command not found
Failed to start docker.service: Unit docker.service not found.
<3>WSL (827) ERROR: CreateProcessEntryCommon:577: execvpe docker failed 2
<3>WSL (827) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
docker does not seem to be working inside the WSL2 distro yet.
At line:59 char:5
+ throw "docker does not seem to be working inside the WSL2 distro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (docker does not...L2 distro yet. :String) [], RuntimeException
+ FullyQualifiedErrorId : docker does not seem to be working inside the WSL2 distro yet.
PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
PS C:\Windows\system32> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1'))
Chocolatey v2.1.0
Upgrading the following packages:
ddev;gsudo;mkcert
By upgrading, you accept licenses for the packages.
ddev v1.21.6 is the latest version available based on your source(s).
gsudo v2.0.10 is the latest version available based on your source(s).
mkcert v1.4.4 is the latest version available based on your source(s).
Chocolatey upgraded 0/3 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
The local CA is already installed in the system trust store! 👍
SUCCESS: Specified value was saved.
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 https://download.docker.com/linux/ubuntu jammy InRelease
Temporary failure resolving 'download.docker.com'
Err:1 https://pkg.ddev.com/apt * InRelease
Temporary failure resolving 'pkg.ddev.com'
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://pkg.ddev.com/apt/dists/*/InRelease Temporary failure resolving 'pkg.ddev.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/jammy/InRelease Temporary failure resolving 'download.docker.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
ca-certificates is already the newest version (20211016ubuntu0.22.04.1).
curl is already the newest version (7.81.0-1ubuntu1.10).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
curl: (6) Could not resolve host: download.docker.com
gpg: no valid OpenPGP data found.
curl: (6) Could not resolve host: pkg.ddev.com
gpg: no valid OpenPGP data found.
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:3 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 https://pkg.ddev.com/apt * InRelease
Ign:3 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:1 https://pkg.ddev.com/apt * InRelease
Temporary failure resolving 'pkg.ddev.com'
Err:3 https://download.docker.com/linux/ubuntu jammy InRelease
Temporary failure resolving 'download.docker.com'
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch https://pkg.ddev.com/apt/dists/*/InRelease Temporary failure resolving 'pkg.ddev.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/jammy/InRelease Temporary failure resolving 'download.docker.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ddev
E: Unable to locate package docker-ce
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Unable to locate package wslu
[sudo] password for robdavis:
usermod: group 'docker' does not exist
CAROOT=/mnt/c/Users/rd4n23/AppData/Local/mkcert
/bin/bash: line 1: mkcert: command not found
Failed to start docker.service: Unit docker.service not found.
<3>WSL (1148) ERROR: CreateProcessEntryCommon:577: execvpe docker failed 2
<3>WSL (1148) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
docker does not seem to be working inside the WSL2 distro yet.
At line:59 char:5
+ throw "docker does not seem to be working inside the WSL2 distro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (docker does not...L2 distro yet. :String) [], RuntimeException
+ FullyQualifiedErrorId : docker does not seem to be working inside the WSL2 distro yet.
PS C:\Windows\system32>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment