E: Не удалось найти драйвер метода / usr / lib / apt / Methods / https

Я пытался использовать 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

My 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
0
задан 22 September 2013 в 20:57

2 ответа

Изучив ваш список sources.list, я все еще не совсем понимаю, почему apt нужен https (может быть, некоторые дополнительные источники в /etc/apt/sources.list.d?), Но чтобы установить apt-transport-https, вы можете сделайте это:

sudo wget http://ubuntu.mirror.atratoip.net/ubuntu/pool/main/a/apt/apt-transport-https_0.9.7.7ubuntu5_$(dpkg-architecture -qDEB_HOST_ARCH).deb && sudo dpkg -i apt-transport-https_0.9.7.7ubuntu5_$(dpkg-architecture -qDEB_HOST_ARCH).deb

Команда dpkg-architecture используется для определения архитектуры вашей системы. Вы также можете заменить его на i386 или amd64.

0
ответ дан 22 September 2013 в 20:57

Мне не удалось заставить работать точный вариант командной строки, но я смог перейти к

http://ubuntu.mirror.atratoip.net/ubuntu/pool/main/a/apt/

Где я нашел последнюю версию apt-transport-https, в моем случае

apt-transport-https_0.9.7.7ubuntu6_i386.deb

Затем я скачал его, дважды щелкнул файл deb и установил его. Теперь все, кажется, снова работает правильно.

0
ответ дан 22 September 2013 в 20:57

Другие вопросы по тегам:

Похожие вопросы: