I was having problems with Tor Browser and uninstalled it. Now Software Updater and Synaptic Package Manager won't open.
Synaptic displays the following:
E: Conflicting values set for option Signed-By regarding source https://deb.torproject.org/torproject.org/ jammy: /usr/share/keyrings/deb.torproject.org-keyring.gpg != /usr/share/keyrings/tor-archive-keyring.gpg
E: The list of sources could not be read.
E: _cache->open() failed, please report.
Just discovered if I try to run apt I get the same message.
And software center won't open.
I probably made the original installation using Ubuntu's Software Center app. I read later on the Tor Project site that they recommended using their command line installation, which I did (I believe I uninstalled the original install first using the Software app again).
I don't know what kicked off this problem, but after it started I did go to the Tor Project and followed their instructions to remove Tor Browser -- which recommended just removing the Tor Browser directory, which I did. Doing so didn't repair anything.
Most programs work fine, but anything having to do with packages appears to be affected.
How can I get things back to normal?
Here are the requested outputs:
~$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
~$ ls -lah /etc/apt/sources.list.d/
total 48K
drwxr-xr-x 2 root root 4.0K Oct 27 23:55 .
drwxr-xr-x 8 root root 4.0K May 14 01:06 ..
-rw-r--r-- 1 root root 0 Oct 27 23:56 cappelikan-ubuntu-ppa-hirsute.list
-rw-r--r-- 1 root root 239 Oct 27 23:09 cappelikan-ubuntu-ppa-hirsute.list.distUpgrade
-rw-r--r-- 1 root root 0 Oct 27 23:56 cappelikan-ubuntu-ppa-hirsute.list.save
-rw-r--r-- 1 root root 52 Oct 27 23:56 surfshark.list
-rw-r--r-- 1 root root 52 Oct 27 23:09 surfshark.list.distUpgrade
-rw-r--r-- 1 root root 52 Oct 27 23:56 surfshark.list.save
-rw-r--r-- 1 root root 234 Oct 27 23:56 tor.list
-rw-r--r-- 1 root root 234 Oct 27 23:09 tor.list.distUpgrade
-rw-r--r-- 1 root root 234 Oct 27 23:56 tor.list.save
-rw-r--r-- 1 root root 131 Oct 27 23:56 tor-project.list
-rw-r--r-- 1 root root 131 Oct 27 23:56 tor-project.list.save
-rw-r--r-- 1 root root 0 Oct 27 23:56 yann1ck-ubuntu-onedrive-impish.list
-rw-r--r-- 1 root root 140 Oct 27 23:09 yann1ck-ubuntu-onedrive-impish.list.distUpgrade
-rw-r--r-- 1 root root 0 Oct 27 23:56 yann1ck-ubuntu-onedrive-impish.list.save
-rw-r--r-- 1 root root 0 Jun 23 17:36 yann1ck-ubuntu-onedrive-jammy.list
-rw-r--r-- 1 root root 0 Jun 23 17:36 yann1ck-ubuntu-onedrive-jammy.list.save
~$ cat /etc/apt/sources.list.d/*
# deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu/ impish main # disabled on upgrade to impish
# deb-src http://ppa.launchpad.net/cappelikan/ppa/ubuntu/ impish main
# deb-src http://ppa.launchpad.net/cappelikan/ppa/ubuntu/ hirsute main
deb https://ocean.surfshark.com/debian stretch main
deb https://ocean.surfshark.com/debian stretch main
deb https://ocean.surfshark.com/debian stretch main
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb [arch=amd64 signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
deb [arch=amd64 signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org jammy main
# deb http://ppa.launchpad.net/yann1ck/onedrive/ubuntu/ impish main
# deb-src http://ppa.launchpad.net/yann1ck/onedrive/ubuntu/ impish main
~$ sudo apt update
[sudo] password for peter:
E: Conflicting values set for option Signed-By regarding source https://deb.torproject.org/torproject.org/ jammy: /usr/share/keyrings/deb.torproject.org-keyring.gpg != /usr/share/keyrings/tor-archive-keyring.gpg
E: The list of sources could not be read.