I don't remember installing anything recently but when I pulled my laptop out of standby today I got the following notification:
In words:
An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong.
The error message was: Error: Opening the cache (E:Couldn't create temporary file to work with /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu__dists__bionic__InRelease - mkstemp (2: No such file or directory),
E:The package lists or status file could not be parsed or opened.)'. This usually means that your installed packages have unmet dependencies
(Side question: Is there a log file somewhere to copy the text from?)
I don't know what the right-click menu is. When I click on preferences, Software & Updates
opens up, but I'm unsure what to do there.
running apt-get check
diplays
Reading package lists... Error!
E: Couldn't create temporary file to work with /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_bionic_InRelease - mkstemp (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.
I have since tried: per https://sillycodes.com/quick-tip-couldnt-create-temporary-file/:
sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
reverted with
sudo mv /tmp /var/lib/apt/lists
There were error messages for several repositories, examplary:
W: GPG error: http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.tiVq7R for passing config to apt-key
E: The repository 'http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.