Errors with "Install Tor and Tor Debian keyring" commands - Ubuntu 24

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

Yes, I updated my repos several times.

root@ubuntu-24:/etc/apt/sources.list.d# cat tor.sources Types: deb deb-src URIs: ``` https://deb.torproject.org/torproject.org/ `Suites: noble` `Components: main` Signed-By: /usr/share/keyrings/deb.torproject.org-keyring.gpg` ``

root@ubuntu-24:/etc/apt/sources.list.d# gpg --show-keys /usr/share/keyrings/deb.torproject.org-keyring.gpg
pub   rsa2048 2009-09-04 [SC] [expires: 2028-08-29]
      A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
uid                      deb.torproject.org archive signing key
sub   rsa2048 2009-09-04 [S] [expires: 2027-11-01]
root@ubuntu-24:/etc/apt/sources.list.d# sudo apt update -y
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease                         
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1387 kB]
Get:5 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [225 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [916 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [207 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [71.4 kB]
Get:10 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [2279 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]     
Get:12 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [522 kB]
Get:13 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [208 B]
Get:14 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1679 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [310 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [175 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1502 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [304 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [377 kB]
Get:21 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [2411 kB]
Get:22 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [550 kB]
Get:23 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:24 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:25 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7140 B]
Get:26 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [11.0 kB]
Get:27 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:28 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 13.3 MB in 5s (2554 kB/s)   
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

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?