N: Is the package apt-transport-htps installed?

Fails to install per online documentation

cat /etc/*release;

Returns:

ID="ec2"
VERSION="20201214-484"
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

sudo apt-get install -y apt-transport-https;

Returns:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.8.2.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

sudo apt-get install -y software-properties-common wget;

Returns:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.20.2-2).
wget is already the newest version (1.20.1-1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

sudo apt-get install -y gnupg;
(Documentation doesn’t mention this but the step after this one requires this at least be installed)

Returns:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnupg is already the newest version (2.2.12-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -

Returns:

OK

echo “deb htps://packages.grafana.com/oss/deb stable main” | sudo tee -a /etc/apt/sources.list.d/grafana.list

Returns:

deb htps://packages.grafana.com/oss/deb stable main

sudo apt-get update

Returns:

Hit:1 <http://security.debian.org/debian-security> buster/updates InRelease
Hit:2 <http://cdn-aws.deb.debian.org/debian> buster InRelease
Hit:3 <http://cdn-aws.deb.debian.org/debian> buster-updates InRelease
Hit:4 <http://cdn-aws.deb.debian.org/debian> buster-backports InRelease
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/htps could not be found.
N: Is the package apt-transport-htps installed?
E: Failed to fetch htps://packages.grafana.com/oss/deb/dists/stable/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.

Note this is looking for ‘apt-transport- htps ’ instead of ‘apt-transport- https ’ that we actually installed.

sudo apt-get install grafana
[Can’t get this far, the error from the last command won’t allow it]

You have a typo in one of the commands, where you add a line to /etc/apt/sources.list.d/grafana.list. The URL should indeed start with https and not htps.

You didn’t mention which installation instructions you are using, but Install on Debian/Ubuntu | Grafana Labs appears to be correct.

You are 100% correct. I found it shortly after I posted it, and my account was still on hold so I was unable to retract my message or update it.

The process I used was to literally COPY and PASTE the commands from the URL you posted. Somehow it got bunged up in the pasting I guess. The terminal I’ve been using has had other oddities not related to this issue so it’s not really shocking to find an issue like this.

Thank you so much for taking the time to respond. I have resolved the issue, and the docs are 100% correct.

1 Like