Extreme file corruption, cannot install or uninstall

Maybe something is wrong with the repository itself...
Because that key should be good- and it shows as added and saved.

Please open Software & Updates
Move to the other tab.
Scroll through the list and remove any Wine Repository you find.

Once all Wine Repos are gone...
Open a terminal and run

sudo apt update

Read through the output and make sure you see nothing for Wine.

Then run

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources

Once done, run

sudo apt update

Make sure wine is showing good in the list...

Try installing:

sudo apt update && sudo apt install --install-recommends winehq-stable


What the hell happened!?

Log out and in, then try terminal and

sudo apt update

and see what it yields

I am stumped. I have double-checked that repo and the key

And while I do not use WINE, I went ahead and ran the commands and tested it on my own machine and it worked as normal.

Ok well...
One thing we can try is:
Remove all Wine Repositories just as before.
Once all Wine Repos are removed, run

sudo apt update && sudo apt install zorin-windows-app-support

That should install Wine, albeit an earlier version. If that works, though, it will give us some clues.

EDIT:
Another option:
Remove the key we added above, then repeat but with one extra step:

sudo mkdir -pm755 /etc/apt/keyrings

sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Re-add the Wine Repository from the command in posts above... Then try installing from the command in posts above.

1 Like

Why is WINE such a pain? The clue is in the mnemonic:

Wine Is No Emulator. (It utilises Windows Dynamic Link Libraries (DLL's = DLL Hell!

Personally the best option is to run Windows in virt-manager but no good for gaming.

You must remove the WINE repository prior to installing zorin-windows-app-support

Okay what do you want me to do now?

No matter what we try, something is failing with GPG. Just to test, let's remove the Wine Repository.
Then try installing zorin-windows-app-support

Alright how to I remove the wine repository?

You did do this before, in the posts above when we covered that it needed to be done, right?
IF you had not, it may explain why the gpg keeps failing.

From the app menu, launch Software & Updates. Move to the Other software tab.
Read through the list and spot the Wine Repository.
Select it
Then click the Remove button on the bottom toolbar.
Read through again and make sure there are no duplicate wine repositories still present.


Are you talking about soft where updater?

Tap alt+F2
Enter in:
software-properties-gtk

Hit the enter key

That should launch the Software & Updates app.

(It really should be suggested in the app menu if you type in software...)

Scroll down...

This does not make any sense whatsoever.

The system shows that the repository was added.

It shows that the Key was added and saved.

Then it shows that the Repo is unsigned and when you check the repo list, it doesn't show it.

Let's go to the source... Literally...

Can you run in terminal:

sudo -i

nautilus

This will launch Nautilus with Root Privileges.
In the left pane, select "Other Locations"
In the right pane, then select "Computer"
This myriad of unnecessary steps should take you to Root. You will see a series of folders, one of which is named etc
Click etc open.
Now, click open the folder named apt
Finally, click open the folder named sources.list.d
Please show the contents of that folder.

Also...
Need to see the output of

cat /etc/apt/sources.list

Let's see if we can locate that repository...



The above, please.