ctrl + z
After the process is aborted, the process does not end but hangs in the background.
Restart process
hanjiale@ubuntu-16-04-VirtualBox:~$ jobs
[1]- Stopped sudo apt-get install python3.8
[2]+ Stopped ubuntu-drivers devices
hanjiale@ubuntu-16-04-VirtualBox:~$ fg 1
sudo apt-get install python3.8
0% [Connecting to ppa.launchpad.net]
Kill process
hanjiale@ubuntu-16-04-VirtualBox:~$ jobs -l
[1]+ 3709 Stopped sudo apt-get install python3.8
hanjiale@ubuntu-16-04-VirtualBox:~$ sudo kill -9 3709
[1]+ Killed sudo apt-get install python3.8