Hello, I’m running Ubuntu 24.04 (noble) and am following the Debian/Ubuntu How to install Tor guide. I followed all the steps and when I get to the 5. Install tor and tor debian keyring step, I get the errors shown below. I made sure to replace <DISTRIBUTION> with noble in my /etc/apt/sources.list.d/tor.sources file. I tried pinging static.torproject.org and got good speed and no packet loss. How can I get the Tor and keyring install commands to work?
E: Unable to locate package deb.torproject.org-keyring E: Couldn't find any package by glob 'deb.torproject.org-keyring'
root@ubuntu-24:/usr/share/keyrings# ls
deb.torproject.org-keyring.gpg ubuntu-cloudimage-removed-keys.gpg ubuntu-pro-cis.gpg ubuntu-pro-esm-infra.gpg ubuntu-pro-ros.gpg
ubuntu-archive-keyring.gpg ubuntu-master-keyring.gpg ubuntu-pro-esm-apps-legacy.gpg ubuntu-pro-fips-preview.gpg
ubuntu-archive-removed-keys.gpg ubuntu-pro-anbox-cloud.gpg ubuntu-pro-esm-apps.gpg ubuntu-pro-fips.gpg
ubuntu-cloudimage-keyring.gpg ubuntu-pro-cc-eal.gpg ubuntu-pro-esm-infra-legacy.gpg ubuntu-pro-realtime-kernel.gpg
root@ubuntu-24:/usr/share/keyrings# sudo apt install tor deb.torproject.org-keyring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package deb.torproject.org-keyring
E: Couldn't find any package by glob 'deb.torproject.org-keyring'
@yummy_onion are you sure you ran sudo apt update? If you did, please post the contents of /etc/apt/sources.list.d/tor.sources and also the result of gpg --show-keys /usr/share/keyrings/deb.torproject.org-keyring.gpg
The results of your sudo apt update -y command should include a hit on “https://deb.torproject.org/torproject.org noble InRelease” and they don’t so I’m not surprised apt can’t find the package. Your gpg file and tor.sources look fine though, I copied the latter and apt could find the deb.torproject.org-keyring package just fine.
I’m on Linux Mint 22.2 (which is based on noble) and I can only think this might be an Ubuntu-specific thing with apt. Do you need to permission third party package repos somewhere maybe?