1、若系统安装了aptitude
aptitude show apt-transport-https
显示如下:
软件包:apt-transport-https
版本号:1.3~rc2
状态: 未安装
优先级:可选
部分:admin
维护者:APT Development Team <deity@lists.debian.org>
体系:amd64
未压缩尺寸:237 k
依赖于: libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
推荐: ca-certificates
冲突: apt-transport-https:i386
描述:https download transport for APT
This package enables the usage of 'deb https://foo distro main' lines in the /etc/apt/sources.list so that all package managers using the libapt-pkg library can access metadata and packages available in sources accessible over https
(Hypertext Transfer Protocol Secure).
This transport supports server as well as client authentication with certificates.
标签: admin::package-management, protocol::http, protocol::ssl, role::shared-lib, suite::debian, use::downloading
2、到ubuntu安装包商店下载deb安装包然后手动安装
https://packages.ubuntu.com/ ####64位PC选amd64
一共需要安装三个deb安装包,安装都需要用dpkg命令
dpkg -i apt-transport-https_1.0.9.8.3_amd64.deb
apt-transport-https_1.0.9.8.3_amd64.deb
apt_1.6.6ubuntu0.1_amd64.deb
libapt-pkg-dev_1.6.6ubuntu0.1_amd64.deb #若缺少依赖,先解决依赖问题,安装这个依赖包
3、修复和更新
apt-get install -f
apt-get update