Solving Update Error (Apt-transport-https) on Kali Linux

Overcoming Apt-transport-https Not Installed Error While Updating on Kali Linux

Some time ago, I was confused about the Kali Linux that I use on my device. Why? Because when I want to update after adding the repository an output or error message appears on my device as shown below:

Solving Apt-transport-https Error and Installing Apt-transport-https on Kali Linux
Error During Repository Update

The error message states that a file or method driver “/usr/lib/apt/methods/https” was not found on my Kali Linux. This means that the package “apt-transport-https” is not installed on the device.

The message appears when I update the repository after adding some Debian repositories to the source list repository or the “/etc/apt/sources.list” file on my Kali Linux. After searching, it turns out that this happened because I added the secure version of the repository, namely the line “deb https://foo distro main” in my sources list repository.

Where it turns out that Kali Linux requires the “apt-transport-https” package in order to use the repository. Apt-transport-https is a package that allows APT to download from a secure version of a repository or a repository that uses the HTTPS (Hypertext Transfer Protocol Secure) protocol.

Maybe some of you have experienced the same problem as me, the error occurred when adding a Debian repository or a certain repository on Kali Linux. Well, you don’t need to panic and be confused if the same problem happens to you, you just need to install the “apt-transport-https” package.

Install Apt-transport-https Package on Kali Linux

To install the “apt-transport-https” package on Kali Linux, you must first have the “apt-transport-https” package. You can download the “apt-transport-https” package here.

Solving Apt-transport-https Error and Installing Apt-transport-https on Kali Linux
Download Apt-transport-https According to OS Architecture

Select and download the package according to the type or architecture of the Kali Linux you are using on your device. Here I use Kali Linux with 64 bit architecture, so I downloaded the amd64 version of the “apt-transport-https” package.

After successfully downloading the “apt-transport-https” package, it matches the architecture of the operating system you are using. Then check where the downloaded package file is stored. Just move the package file to the “/home” folder to make it easier when installing, as shown below.

Solving Apt-transport-https Error and Installing Apt-transport-https on Kali Linux
Move the Apt-transport-https Package File to /home

After moving the package file to the “/Home” folder. Open Terminal on your Kali Linux to install the package file. Install the package using the following command:

dpkg -i nama_package.deb

Replace the word “name_package” in the command with the name of the package file that you downloaded. For example on my device, according to the package I downloaded, the command is as follows:

dpkg -i apt-transport-https_1.0.9.8.4_amd64.deb

Then press Enter and wait for the package installation process to finish and
make sure there are no error messages during the installation process.

After the package installation process is complete and there are no errors during the installation process. Then check whether APT is able to download from the secure or HTTPS version of the repository by trying to update and upgrade again. Perform updates and upgrades using the following command:

apt-get update && apt-get upgrade

Make sure the error message as before does not reappear and you can update the repository on your Kali Linux, even from the secure version of the repository. Hopefully this article is useful and can help you solve the problem you are facing. Hello Linuxers!

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *