How to Fix the 'Method Driver /usr/lib/apt/methods/https Could Not Be Found' Error in Ubuntu and other Debian-based systems.


The “Method Driver /usr/lib/apt/methods/https Could Not Be Found” error is an issue that can occur when attempting to install packages with the apt package manager on Linux systems. This error indicates that the apt package manager is unable to find the method driver for using https, and thus cannot proceed with the installation. In order to resolve this issue, it is necessary to install a package containing the missing method driver and configure apt to use it. Once this has been done, users should be able to install packages without encountering any further errors.

More details about the error

When you attempt to install a package or update the system repository by running the command: sudo apt update or apt-upgrade, you get the following error:

E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.

The issue could hapeen because your repositories could be configured to use HTTP connections instead of HTTPS or vice versa

Fixing the error

To fix this problem, run thec following command to install the apt-transport-https package and the ca-certificates package
apt-transport-https is a package that enables the use of HTTPS as a transport protocol for downloading packages from an APT repository. This is especially useful for those who need to download packages from an external repository over the internet. With apt-transport-https, users can securely download packages from remote repositories and ensure that their data stays safe and secure. It also provides additional features such as authentication, encryption, and integrity checks which help protect against malicious attacks.
The apt ca-certificates package is an essential tool for any system administrator. With this package, users can securely access websites and services without having to worry about their data being compromised. This package includes a set of certificates that are used to authenticate servers and other network devices, ensuring that the connection is secure and encrypted. It also helps protect against malicious attacks such as man-in-the-middle attacks. By installing the apt ca-certificates package, you can rest assured that your data will remain safe while browsing the internet or using various online services.


We hope that the solutions mentioned on this page will help you to resolve this problem. We hope that this tutorial has been informative and we would like to thank you for reading it.