Skip to content

Instantly share code, notes, and snippets.

# Install Python2 environment for Bash on Ubuntu on Windows build 14943 or earlier
# respond to this issue -> https://github.com/Microsoft/BashOnWindows/issues/185
export DEBIAN_FRONTEND=noninteractive
sudo sh -c 'echo 127.0.1.1 $(hostname) >> /etc/hosts'
sudo sed -i -e 's%http://.*.ubuntu.com%http://ftp.jaist.ac.jp/pub/Linux%g' /etc/apt/sources.list
sudo -E add-apt-repository -y ppa:fkrull/deadsnakes-python2.7
sudo -E add-apt-repository -y ppa:aseering/wsl
sudo -E apt-get -y -qq update