Docker 无法在Raspberry Pi 4上安装apt传输https

Docker 无法在Raspberry Pi 4上安装apt传输https,docker,raspberry-pi,Docker,Raspberry Pi,我想在raspberry上安装docker,我在docker上使用了脚本: 我运行脚本,然后遇到以下问题: sudo sh get-docker.sh # Executing docker install script, commit: 442e66405c304fa92af8aadaa1d9b31bf4b0ad94 + sh -c apt-get update -qq >/dev/null + sh -c DEBIAN_FRONTEND=noninteractive apt-g

我想在raspberry上安装docker,我在docker上使用了脚本: 我运行脚本,然后遇到以下问题:

    sudo sh get-docker.sh 
# Executing docker install script, commit: 442e66405c304fa92af8aadaa1d9b31bf4b0ad94
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y install -qq apt-transport-https ca-certificates curl >/dev/null
E: Essential packages were removed and -y was used without --allow-remove-essential.
然后我单独安装这个软件包,ca证书,curl还可以,但apt transport https遇到了问题agina:

sudo apt-get install apt-transport-https 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-apt-common python3-apt python3-debconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libapt-pkg4.12
The following packages will be REMOVED:
  apt apt-listchanges apt-utils tasksel tasksel-data
The following NEW packages will be installed:
  apt-transport-https libapt-pkg4.12
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt
0 upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
Need to get 847 kB of archives.
After this operation, 3,112 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!'
 ?]