Error Updating

Questions about Wine on Linux
Locked
jason7783
Newbie
Newbie
Posts: 3
Joined: Sat Jul 09, 2022 3:12 pm

Error Updating

Post by jason7783 »

I have tried installing Wine by following the Wiki and I am now faced with an error. i got all the way to updating the system and I got what you see in the photo. I am running Kubuntu 22.04. I have just one more step.
WineInstallErrors.png
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error Updating

Post by dimesio »

Did you follow the instructions on https://wiki.winehq.org/Ubuntu for downloading and adding the key?
Download and add the repository key:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
jason7783
Newbie
Newbie
Posts: 3
Joined: Sat Jul 09, 2022 3:12 pm

Re: Error Updating

Post by jason7783 »

Yes I did that.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Error Updating

Post by jkfloris »

What is the output of:

Code: Select all

find /etc/apt/ -type f \( -name "*.list" -o -name "*.sources" \) -print -exec nl {} \;
jason7783
Newbie
Newbie
Posts: 3
Joined: Sat Jul 09, 2022 3:12 pm

Re: Error Updating

Post by jason7783 »

I somehow fixed the original problem, but now I get the following when trying to install the stable version of Wine:

W: http://linux.dropbox.com/ubuntu/dists/disco/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package winehq-stable
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Error Updating

Post by jkfloris »

Code: Select all

W: http://linux.dropbox.com/ubuntu/dists/disco/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
This is because dropbox uses apt-key add to add its repository.
After Debian 11/ Ubuntu 22.04 this will no longer work, therefore the user is warned.

Code: Select all

$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package winehq-stable
This looks like the WineHQ repository has not been added.
Did you run sudo apt update, after adding the repository .sources-file?
With the command in my previous post, you can see which repositories have been added to the system.
Locked