Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried using sudo apt-get install apt-transport-https but it doesn't work for me.

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
share|improve this question
    
    
Tried the method on that link but I can't make it work. –  mlalbertoii Sep 22 '13 at 8:11
    
all the other methods ? –  AgentCool Sep 22 '13 at 8:14
    
Which version of Ubuntu do you run? Can you paste your /etc/apt/sources.list? –  tlo Sep 22 '13 at 11:06
    
I'm a newcomer to Linux, please excuse my dumbness. Here's my source list. pastebin.com/embed_js.php?i=rwXaeFMX –  mlalbertoii Sep 22 '13 at 12:17

2 Answers 2

After looking at your sources.list, I still don't understand why apt is in need oft https (maybe some additional sources in /etc/apt/sources.list.d?), but to get apt-transport-https installed you can do this:

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)

The dpkg-architecture command is used to determine the architecture of your system. You could also replace it with i386 or amd64.

share|improve this answer

I was not able to get the exact command line variant working, but I was able to browse to

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

Where I located the latest version of the apt-transport-https, in my case the

apt-transport-https_0.9.7.7ubuntu6_i386.deb

I then downloaded it, double clicked the deb file and installed it. Now everything seems to work correctly again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.