Force Ubuntu apt to use HTTPS

As I said, I don't want anyone to spy on me.


1. backup
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2. change APT source
sudo sed --in-place --regexp-extended 's http://(us\.archive\.ubuntu\.com|security\.ubuntu\.com) https://free.nchc.org.tw g' /etc/apt/sources.list

3. go to `/etc/apt/sources.list.d/`, replace all text with `http` to `https`

4. update software infomation, and see if all links becomes https
sudo apt update