How to fix deb.torproject.org-keyring error

I got this error while doing “apt install tor deb.torproject.org-keyring”
How do i fix this?

The following packages have unmet dependencies:
  tor : Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is to be installed
        Depends: runit-helper (>= 2.14.0~) but it is not going to be installed
        Recommends: tor-geoipdb but it is not going to be installed
        Recommends: Torsocks but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Try running the following command:
sudo apt --fix-broken install

If that doesn’t fix your issue, could you please provide your sources.list file and/or your tor.list file?

deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main

And what’s your operating system?

I use Ubuntu 22.04

So, you’re using the wrong distribution name (bookworm = Debian 12) in your tor.list file.

Replace bookworm with jammy, and run sudo apt update.

2 Likes

Thank you so much, it works now :grin:

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.