Skip to content

Instantly share code, notes, and snippets.

@tinhtun
Last active March 20, 2020 04:28
Show Gist options
  • Select an option

  • Save tinhtun/79865e9ccc834a3f9280f54aa83cedc1 to your computer and use it in GitHub Desktop.

Select an option

Save tinhtun/79865e9ccc834a3f9280f54aa83cedc1 to your computer and use it in GitHub Desktop.
#ubuntu #wsl
  • For some reasons, your apt is gone and get errror message like apt command not found
  • Download the apt package for your ubuntu version here http://security.ubuntu.com/ubuntu/pool/main/a/apt/
  • For example, get apt 1.6 for Ubuntu 18.04.2 LTS
  • Force install apt package and run apt-get update
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.6.1_amd64.deb
sudo dpkg -i --force-all apt_1.6.1_amd64.deb
sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment