Skip to main content

3 posts tagged with "wsl"

View All Tags

Bash terminal customization

· 8 min read
Anand Raja
Senior Software Engineer

Linux Shells

When we open up our terminal, chances are that it uses Bash as its UNIX shell environment. But other shell environments exist such as the C Shell, Korn Shell, Z Shell, and even the Fish Shell. All of these different shell environments have their own pros and cons, and you should consider them before you choose one to use on your own system.

How to Fix WSL2 & VPN Connectivity Issues

· 10 min read
Anand Raja
Senior Software Engineer

Comprehensive guide to fix WSL2 and Cisco AnyConnect VPN internet connectivity issues.

There is a known issue with DNS forwarding in WSL2 and WSL1 when using VPN (see GitHub Issue #1350). Additionally, there are specific problems with Cisco AnyConnect VPN client. This guide provides workarounds for these issues and should work for Ubuntu and Debian distributions.

The Problem - Common Symptoms

When connected to Cisco AnyConnect VPN, you may encounter the following DNS resolution failures:

  • Package updates fail - sudo apt update displays errors like:
Err:1 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
  • Git operations fail - git pull displays errors like:
// code-block-error-line
fatal: unable to access 'https://github.com/actionanand/wiki.git/': Could not resolve host: github.com
  • Network connectivity fails - ping google.com displays:
ping: google.com: Temporary failure in name resolution