Corrupted apt-get file?

Same errors as above I'm afraid...

Might it be worthwhile for me to delete sources.list and then see if an update will rebuild it?

Could you copy the outputs from that command to here, please??

Same ones that I mentioned above - i.e.

I'm so sorry if I couldn't be more helpful to you. But here what I did in the past where I faced an issue that were caused by the repositories. The outputs were these:

W: GPG error: http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease: The following signatures were invalid: EXPKEYSIG 02456C79B2FD48BF home:ungoogled_chromium OBS Project <home:ungoogled_chromium@build.opensuse.org>
E: The repository 'http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Then I opened up Software & Updates,
image

Choose Other Software
image

Then scrolled down until I found http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal InRelease: and unticked it, and then press Closeand proceed to Reload
image

image

After that, I tried sudo apt update again and everything is back to normal.

Now, it's important to note that I don't suggest you to do this if the terminal outputs doesn't specify which repository that caused a problem.

Since it's already broken you could go ahead and try to fix this manually, but whatever you do first of all make a copy of that file first:

# Any name will do, for example
sudo cp /etc/apt/sources.list /etc/apt/sources.old.list

My guess is that is probably missing some "main" at the end of one of the line or something. If you don't mind sharing the file we could take a look here. Otherwise you can try educating yourself with a video such as this one:

1 Like

Okay, but is there a way to upload it? The extension .list isn't accepted. As an experiment I tried changing the extension to .webp but that then told me the file couldn't be verified.

You can copy/paste the file here (or at leas the first few lines since that's where the error message is pointing to where the issue is). You can also use a 3rd party service like pastebin.

1 Like

Thanks swarfendor437. I'll take a look at that article later.

zenzen - there's currently no readable text in sources.list here. I'm pretty sure it's just 800 bytes of junk :disappointed:

[Edit...] I renamed sources.list here and then ran sudo apt update and sudo apt-get update which both now seem to work. Interestingly, it didn't recreate etc/apt/sources.list but it did create a new sources.list in rofs/etc/apt. The new version is a plain text file containing the following text:-

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

Some progress at least, that's more like what is should look like. The article mentioned by @swarfendor437 looks like it could solve the issue altogether, give it a read specially the "Solution 6 - /etc/apt/sources.list is missing or corrupted" section, and see if that works.

1 Like

Incidentally... I've been using Zorin Live ver 15 up until now but if I wanted to try ver 16 from a bootable USB stick is that possible? I've read about something called Zorin 16 Lite - but is Lite the same as Live?

All of the Zorin OSs is/has live. The lite version uses XFCE instead of Gnome.

Thanks Storm - do you know where it can be downloaded? I've found downloads for Pro, Core and Lite but nothing for the Live version :disappointed:

If you use the officials channel (Piracy can get you banned & most of all you compromising your OS) - All of them have live version. You simple "burn" the image to the USB. Pop in the USB and bootup from it. When you're in live session you can choose to install it on your hard drive.

Thanks again Storm - I created a bootable USB stick using Zorin Core (ver 16) but unlike ver 15, ver 16 doesn't seem to handle persistence very well. Certain things do work - e.g. it'll remember my Region settings and screensaver settings etc. But if I install an app or even just copy files to the desktop, any changes of that kind will get totally forgotten, next time I boot the USB stick.

Has anyone else mentioned that?

How are you creating the bootable USB drive? The lack of persistence between reboots is the expected behavior when running a live image :thinking:

I'm using a Windows app called UUI (Universal USB Installer). It's the same one I used when I created my Zorin 15 Live USB stick - and in Zorin 15's case, the persistence worked even after a reboot.

Ah, I see. I knew it was possible but never actually used any installer like that. Looking around in the forum I found another comment where it's mentioned (no sources though) that Zorin 16, being based on Ubuntu 20.04, does indeed not play well with persistence on usb drives:

EDIT: Rather, it seems it may be an issue with the software used and not so much with the OS? It might be worth using another option just to rule it out. Then again this post was made a while ago so things may have changed.

Yes, normally, the solution is to remove the malformed entry.
I have marked the solution, since remaking the sources.list is a viable alternative.

1 Like

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