Enable Apt HTTPS Transport
Optionally, one can enable apt to obtain packages via HTTPS instead of the conventional HTTP. This is useful for private repository. This section guides you on how to enable HTTPS for Apt transport.
NOTE
Debian does not include this transport by default mainly because most open-source packages in Debian are already available in public and is cryptographically signed by Debian GnuPG key.
Enable HTTPS Transport
Enable HTTPS Transport
To enable apt to use HTTPS, you can install apt-transport-https
package.
$ apt install apt-transport-https -y
That should solves most of the HTTPS required packages problem.