Ubuntu: "method driver /usr/lib/apt/methods/https could not be found" update error
The Question: sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
michael@Ubuntu:~$ sudo apt-get clean
michael@Ubuntu:~$ cd /var/lib/apt
michael@Ubuntu:/var/lib/apt$ sudo mv lists lists.old
michael@Ubuntu:/var/lib/apt$ sudo mkdir -p lists/partial
michael@Ubuntu:/var/lib/apt$ sudo apt-get clean
michael@Ubuntu:/var/lib/apt$ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily
unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another
process using it?
michael@Ubuntu:/var/lib/apt$ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
Why am I getting these errors when doing an apt-get update?
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 217 people ==
Try:
sudo apt-get install apt-transport-https
== This solution helped 61 people ==
I encountered this problem as well. I was unable to fix it by installing apt-
transport-https, because it had been quite a while since I'd done any package
updates on the machine in question, and the version of that package that I
needed was no longer available in the package repository. (To get an available
version, I first had to be able to apt-get update successfully.) Thus, I was
forced to track down the reason why apt-get was suddenly trying to use HTTPS,
and stop it from doing that.
In my case, it turns out that one of the third-party apt sources that was
listed in a config file in my /etc/apt/sources.list.d directory had switched to
using HTTPS for all downloads, and they had begun redirecting the http:// URL
to an https:// URL. This was making apt attempt to use HTTPS even though none
of my source configurations requested it. (I discovered this by opening the
source repository URL in my web browser, and noticing that the URL in the
address bar changed to https:// when the page loaded.)
Since this was a third-party repository and thus non-essential, I simply
disabled that source temporarily, then reran apt-get update and it worked with
no problem. After apt-get update, apt-get upgrade and apt-get install apt-
transport-https, I was able to re-enable that third-party apt source, and from
there on everything worked.
With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free... | Images: https://stocksnap.io/license & others | With thanks to user SirCharlo (https://askubuntu.com/users/40421), user Nate C-K (https://askubuntu.com/users/44424), user Mostafa Ahangarha (https://askubuntu.com/users/214264), user mnorouzi (https://askubuntu.com/users/662856), user Michael12uk (https://askubuntu.com/users/46399), user Jorge Castro (https://askubuntu.com/users/235), and the Stack Exchange Network (http://askubuntu.com/questions/104160). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything looks amiss at Roel D.OT VandePaar A.T gmail.com.
Nesta página do site você pode assistir ao vídeo on-line Ubuntu: "method driver /usr/lib/apt/methods/https could not be found" update error duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Roel Van de Paar 28 Junho 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 727 vezes e gostou 6 espectadores. Boa visualização!