E: _cache->open() failed, please report.

Asked by Marcos Chirinos

After upgrading to Ubuntu version 22.04 a couple programs were giving errors that seemed might solve with an update.
Trying to update encountered the present problem.

When using any sudo apt-get command in terminal and this paste is actually the error when opening Synaptic Package Manager:

E: Type '“deb' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release.list
E: The list of sources could not be read.
E: _cache->open() failed, please report.

An older fix which had misplaced " marks was not applicable. Then i noticed the sources.list text was for cdrom installation. searched for how to change that and that's when i tried opening Synaptic and got the above error message. messed around with the source list and pasted the official sources.list for web updates and the same error message appears, no resolution yet.

After typing the last paragraph I saw the brave-browser-release.list was the problem and have now edited the quote makes from that file which has taken me past the error to the following errors.

From apt-get update:
[sudo] password for marcos:
Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:2 http://archive.canonical.com/ubuntu jammy InRelease
Ign:3 https://archive.ubuntu.com/ubuntu jammy InRelease
Ign:4 https://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:5 https://archive.ubuntu.com/ubuntu jammy-security InRelease
Ign:6 https://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:3 https://archive.ubuntu.com/ubuntu jammy InRelease
Ign:4 https://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:5 https://archive.ubuntu.com/ubuntu jammy-security InRelease
Ign:6 https://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:3 https://archive.ubuntu.com/ubuntu jammy InRelease
Ign:4 https://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:5 https://archive.ubuntu.com/ubuntu jammy-security InRelease
Ign:6 https://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:3 https://archive.ubuntu.com/ubuntu jammy InRelease
  Could not connect to archive.ubuntu.com:443 (2001:67c:1562::18). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (91.189.91.38). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2001:67c:1562::15). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2620:2d:4000:1::16). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (91.189.91.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2620:2d:4000:1::19). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (185.125.190.39). - connect (111: Connection refused)
Err:4 https://archive.ubuntu.com/ubuntu jammy-updates InRelease
  Unable to connect to archive.ubuntu.com:https:
Err:5 https://archive.ubuntu.com/ubuntu jammy-security InRelease
  Unable to connect to archive.ubuntu.com:https:
Err:6 https://archive.ubuntu.com/ubuntu jammy-backports InRelease
  Unable to connect to archive.ubuntu.com:https:
Reading package lists... Done
W: Failed to fetch https://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Could not connect to archive.ubuntu.com:443 (2001:67c:1562::18). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (91.189.91.38). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2001:67c:1562::15). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2620:2d:4000:1::16). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (91.189.91.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (2620:2d:4000:1::19). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:443 (185.125.190.39). - connect (111: Connection refused)
W: Failed to fetch https://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Unable to connect to archive.ubuntu.com:https:
W: Failed to fetch https://archive.ubuntu.com/ubuntu/dists/jammy-security/InRelease Unable to connect to archive.ubuntu.com:https:
W: Failed to fetch https://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Unable to connect to archive.ubuntu.com:https:
W: Some index files failed to download. They have been ignored, or old ones used instead.

I don't know if the problem comes because I changed the sources.list data or something else.

Brave Browser is still not loading any page, not even its own settings page. Screenshot program is also not performing normally.

hope this is enough information to help me.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Marcos Chirinos (chisau999) said :
#1

sources.list data posted from here, I don't have the original anymore which looked like a cdrom based sources.list

https://gist.github.com/hakerdefo/9c99e140f543b5089e32176fe8721f5f

Revision history for this message
Best Manfred Hampl (m-hampl) said (last edit ):
#2

I assume that there are different issues:

1. Apparently there was a spare doublequote character in the first line of the sources.list configuration file (already solved by you)

2. When you install Ubuntu, you will have the installation medium (named CD, although it isn't one any more) in the first line of the sources.list. That entry should have been disabled (by putting a hash sign in front), or eventually the line can be removed (already solved by you).

3. The archive.ubuntu.com repository server currently does not support https, but only http.
You have to change your sources.list configuration file to

- either change https to http
- or select a different repository server in your vicinity that supports https, see https://launchpad.net/ubuntu/+archivemirrors for a list of servers and their supported access methods.

In my opinion the fastest way for changing the sources.list file is the command
sudo gedit /etc/apt/sources.list
and doing the change in the editor.

Revision history for this message
Marcos Chirinos (chisau999) said :
#3

Thanks Manfred Hampl, that solved my question.