I would like to install Influxdb via a repo, not by installing manually each release, so I tried to add a repo for it, as I used to do with Influxdb v1 (I just updated my server after a long while).
I followed the instructions provided but "apt list influx*" gave no results:
# apt list influx*
Listing... Done
so I adapted it to ubuntu, by browsing the repo myself, so I after cleaning up things I repeated except by:
changing from "-archive_compat" to "-archive", as recommended,
skipping verification of the signature because I couldn't find the value to compare the "-archive" against
change from debian to ubuntu
wget -q https://repos.influxdata.com/influxdata-archive.key cat influxdata-archive.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg > /dev/null echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/ubuntu jammy stable' | sudo tee /etc/apt/sources.list.d/influxdata.list
and "apt update"
Now I get in /etc/apt/sources.list.d/influxdata.list:
deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/ubuntu jammy stable
however the same result:
# apt list influx*
Listing... Done
If I check manually https://repos.influxdata.com/ubuntu/dists/jammy/stable/binary-amd64/Packages I find there are packages inside it!
Where is my mistake?
What you added is NOT the proper URL for your repository. NOWHERE in the instructions did it say to replace
debian
orstable
withubuntu
and the codename of your Ubuntu version.The instructions from the repository page itself in question (https://repos.influxdata.com/ubuntu/) explicitly state:
Because you did not follow these instructions and use the correct repository URL, you are not actually looking at the proper repository. Ubuntu and Debian, per the Influx Data page, both use the debian root directory of stable for the packages. Follow the instructions set by the repository and you should be able to see the packages.
The command lines I executed were correct, but somehow the
I used to find all version was the culprit: if I run
I get all packages I expect, both the 1.x and the 2.x versions. Somehow truncating influxdb doesn't work the same way as, for example, "apt nan*" which gives me nano, nanopolish and so on.