首页 > 解决方案 > 无法在 Raspberry Pi 4 上安装 apt-transport-https

问题描述

我想在覆盆子上安装 docker,我在 docker 上使用了脚本:https ://docs.docker.com/engine/install/debian/#install-using-the-convenience-script 我运行脚本,然后我遇到了这个问题:

    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-certificates,curl 没问题,但是 apt-transport-https 遇到了问题:

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!'
 ?] 

标签: dockerraspberry-pi

解决方案


推荐阅读