haha@haha-desktop sudo apt-get install apt-transport-https ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20170717).
The following packages will be REMOVED:
apt apt-utils ubuntu-desktop ubuntu-minimal ubuntu-release-upgrader-gtk unattended-upgrades update-manager update-notifier update-notifier-common
The following NEW packages will be installed:
apt-transport-https
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt
0 upgraded, 1 newly installed, 9 to remove and 0 not upgraded.
Need to get 26.1 kB of archives.
After this operation, 7,674 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
Get:1 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.24 [26.1 kB]
Fetched 26.1 kB in 0s (209 kB/s)
(Reading database ... 180730 files and directories currently installed.)
Removing ubuntu-minimal (1.404.1) ...
Removing unattended-upgrades (0.98ubuntu1.1) ...
Removing apt-utils (1.5.1) ...
Removing ubuntu-desktop (1.404.1) ...
Removing update-notifier (3.186) ...
Removing update-notifier-common (3.186) ...
Removing apt (1.5.1) ...
Removing update-manager (1:17.10.11) ...
Removing ubuntu-release-upgrader-gtk (1:17.10.8) ...
Selecting previously unselected package apt-transport-https.
(Reading database ... 180217 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.2.24_amd64.deb ...
Unpacking apt-transport-https (1.2.24) ...
Setting up apt-transport-https (1.2.24) ...
Processing triggers for gconf2 (3.2.6-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.54.1-1ubuntu1) ...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
haha@haha-desktop
haha@haha-desktop sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo: apt-key: command not found
haha@haha-desktop sudo apt-get install apt-key
sudo: apt-get: command not found