Fix "Error opening the cache, the Package list or status could not be parsed or opened."

Hello, I have this issue:

I know this would fix it:

But I got this error when I open my pc while there is no internet connection.
So I need a solution to not (try to) check the updates when there is no connection.

Thank you.

You could try it with apt list --upgradable but maybe simply connect to the Internet and try a sudo apt update && sudo apt upgrade and see what Output you get.

And when You want doing this:

You wouldn't need for the first 2 Commands a Internet Connection. That would only be neccessary for the last 2. So, You could use/try it.

But this is the problem. When I open my pc I don't have internet. I have to open my mobile data and hotspot and update just to fix this. And next week the same case. (but for a different apt/lists list. There should be another solution.
For example today the error source is different:

Could You show the Content of the File /etc/apt/sources.list and the Folder /etc/apt/sources.list.d please?

Now I connected to internet and run the commands so warning is gone (until it comes again)

Logs

(base) sglbl@ddspc:~$ cat /etc/apt/sources.list
# deb cdrom:[Zorin-OS 18 Core 64bit]/ noble main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://es.archive.ubuntu.com/ubuntu/ noble main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble universe
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble multiverse
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu noble-security main restricted
# deb-src http://security.ubuntu.com/ubuntu noble-security main restricted
deb http://security.ubuntu.com/ubuntu noble-security universe
# deb-src http://security.ubuntu.com/ubuntu noble-security universe
deb http://security.ubuntu.com/ubuntu noble-security multiverse
# deb-src http://security.ubuntu.com/ubuntu noble-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.


(base) sglbl@ddspc:~$ ls /etc/apt/sources.list.d
antigravity.list                        ubuntudde-dev-ubuntu-stable-noble.sources
brave-browser-release.list              vscode.sources
docker.list                             zorin.list
google-chrome.list                      zorin.list.bak
hluk-ubuntu-copyq-noble.sources         zorinos-ubuntu-apps-noble.sources
psygreg-ubuntu-linuxtoys-noble.sources  zorinos-ubuntu-drivers-noble.sources
rvm-ubuntu-smplayer-noble.sources       zorinos-ubuntu-patches-noble.sources
signal-desktop.sources                  zorinos-ubuntu-stable-noble.sources
teamviewer.list

Now I connected to internet and run the commands so warning is gone (until it comes again)

Logs

(base) sglbl@ddspc:~$ cat /etc/apt/sources.list
# deb cdrom:[Zorin-OS 18 Core 64bit]/ noble main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://es.archive.ubuntu.com/ubuntu/ noble main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble universe
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble multiverse
deb http://es.archive.ubuntu.com/ubuntu/ noble-updates multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-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://es.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu noble-security main restricted
# deb-src http://security.ubuntu.com/ubuntu noble-security main restricted
deb http://security.ubuntu.com/ubuntu noble-security universe
# deb-src http://security.ubuntu.com/ubuntu noble-security universe
deb http://security.ubuntu.com/ubuntu noble-security multiverse
# deb-src http://security.ubuntu.com/ubuntu noble-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.


(base) sglbl@ddspc:~$ ls /etc/apt/sources.list.d
antigravity.list                        ubuntudde-dev-ubuntu-stable-noble.sources
brave-browser-release.list              vscode.sources
docker.list                             zorin.list
google-chrome.list                      zorin.list.bak
hluk-ubuntu-copyq-noble.sources         zorinos-ubuntu-apps-noble.sources
psygreg-ubuntu-linuxtoys-noble.sources  zorinos-ubuntu-drivers-noble.sources
rvm-ubuntu-smplayer-noble.sources       zorinos-ubuntu-patches-noble.sources
signal-desktop.sources                  zorinos-ubuntu-stable-noble.sources
teamviewer.list

Open Software & Updates and there You the first Tab choose ''Mein Server'' as Download Source:

And then run in Terminal sudo apt update && sudo apt upgrade and post the Output here

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