我试过使用sudo apt-get install apt-transport-https
,但它对我不起作用。
sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apt-transport-https is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'apt-transport-https' has no installation candidate
我的etc/apt/sources.list
# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring main restricted
deb-src http://ubuntu.mirror.atratoip.net/ubuntu/ raring restricted universe multiverse main #Added by software-properties
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-updates main restricted
deb-src http://ubuntu.mirror.atratoip.net/ubuntu/ raring-updates restricted main multiverse universe #Added by software-properties
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring universe
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-updates universe
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring multiverse
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-updates multiverse
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://ubuntu.mirror.atratoip.net/ubuntu/ raring-backports main restricted universe multiverse #Added by software-properties
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-security main restricted
deb-src http://ubuntu.mirror.atratoip.net/ubuntu/ raring-security restricted main multiverse universe #Added by software-properties
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-security universe
deb http://ubuntu.mirror.atratoip.net/ubuntu/ raring-security multiverse
## Uncomment the following two lines to add software from Canonical\'s
## \'partner\' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu raring main
deb http://archive.canonical.com/ raring partner
deb-src http://archive.canonical.com/ raring partner
deb-src http://extras.ubuntu.com/ubuntu raring main
发布于 2013-11-09 19:33:50
我无法使命令行变体准确工作,但我能够浏览到
http://ubuntu.mirror.atratoip.net/ubuntu/pool/main/a/apt/
在这里,我找到了apt传输-https的最新版本,在我的例子中,
apt-transport-https_0.9.7.7ubuntu6_i386.deb
然后我下载了它,双击deb文件并安装了它。现在一切似乎又恢复正常了。
https://askubuntu.com/questions/348582
复制相似问题