Wine-staging recently quit working via Upgrades

It worked until most everything Wine was disabled when 24.04.2 was released for distribution.
Now, nothing Wine works.

How do I fix this or do the maintainers need to fix this?

wyatt@wyatt-aspiree1532:~$    sudo /home/wyatt/Desktop/Upd-Upg.sh
[sudo] password for wyatt: 
Hit:1 http://us.archive.ubuntu.com/ubuntu oracular InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu oracular-updates InRelease                                 
Hit:3 http://us.archive.ubuntu.com/ubuntu oracular-backports InRelease                               
Hit:4 http://security.ubuntu.com/ubuntu oracular-security InRelease                         
Hit:5 https://dl.winehq.org/wine-builds/ubuntu oracular InRelease     
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 wine-staging : Depends: wine-staging-amd64 (= 10.2~oracular-2) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
wyatt@wyatt-aspiree1532:~$    sudo apt --fix-broken install -y
Correcting dependencies... Done 
The following package was automatically installed and is no longer required:
  python3-netifaces
Use 'sudo apt autoremove' to remove it.

Installing dependencies:
  wine-staging-amd64
                                                                                                       
Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0
  263 not fully installed or removed.
  Download size: 0 B / 118 MB
  Space needed: 814 MB / 924 GB available

Preconfiguring packages ...
(Reading database ... 310437 files and directories currently installed.)
Preparing to unpack .../wine-staging-amd64_10.2~oracular-2_amd64.deb ...
Unpacking wine-staging-amd64 (10.2~oracular-2) ...
dpkg: error processing archive /var/cache/apt/archives/wine-staging-amd64_10.2~oracular-2_amd64.deb (--unpack):
 trying to overwrite '/opt/wine-staging/bin/wine', which is also in package wine-staging-i386:i386 10.2~oracular-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/wine-staging-amd64_10.2~oracular-2_amd64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
wyatt@wyatt-aspiree1532:~$

What is in this script? Is it sudo apt -y update and sudo apt -y upgrade?

If so, you might want to change it to:

sudo apt -y update

and

sudo apt -y dist-upgrade or sudo apt -y full-upgrade

What happens if you sudo apt dist-upgrade now?

"$APTGET" update -y ; "$APTGET" upgrade -y

I used the most recent download of oracular just downloaded last night.

Still try running those you suggest?

wyatt@wyatt-aspiree1532:~$    sudo apt -y dist-upgrade
[sudo] password for wyatt: 
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 wine-staging : Depends: wine-staging-amd64 (= 10.2~oracular-2) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
wyatt@wyatt-aspiree1532:~$

I would change that script, don’t use upgrade, use dist-upgrade or full-upgrade.
You may need to remove and reinstall wine.

sudo apt remove wine-staging-amd64 wine-staging-i386 and then reinstall it.

wyatt@wyatt-aspiree1532:~$    sudo apt remove wine-staging-amd64 wine-staging-i386
[sudo] password for wyatt: 
Package 'wine-staging-amd64' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 wine-staging : Depends: wine-staging-i386 (= 10.2~oracular-2)
                Depends: wine-staging-amd64 (= 10.2~oracular-2) but it is not going to be installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
wyatt@wyatt-aspiree1532:~$ 

Um…I know for certain that I ran the script below…
Info at…
https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu

# Preparation If your system is 64 bit, enable 32 bit architecture:
   "$DPKG" --add-architecture i386

# Download and add the repository key:
   "$MKDIR" -pm755 /etc/apt/keyrings
   "$WGET" -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

# Add the repository.
# oracular	Ubuntu 24.10
   "$WGET" -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/oracular/winehq-oracular.sources

# Update the package information
   "$APTGET" update

# Install Wine Staging branch
   "$APTGET" install -y --install-recommends winehq-staging
1 Like

Pro tip: If you want to paste code or a script, use three backticks (```)

```
Line 1
Line 2
And so on
```

Becomes:

Line 1
Line 2
And so on

I’ve done this for you. :smiley:

From dpkg…what does the iU mean?


iU  wine-staging                          10.2~oracular-2                          amd64        WINE Is Not An Emulator - runs MS Windows programs
iU  wine-staging-i386:i386                10.2~oracular-2                          i386         WINE Is Not An Emulator - runs MS Windows programs
iU  winehq-staging                        10.2~oracular-2                          amd64        WINE Is Not An Emulator - runs MS Windows programs

Try dpkg -l | head -n 4

wyatt@wyatt-aspiree1532:~$    dpkg -l | head -n 4
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                                  Architecture Description
wyatt@wyatt-aspiree1532:~$ 

Right. And that is the legend. Use it to answer your question. Pay attention to the upper case characters.

Unknown…Unpacked…or bad?

The first row of text labeled ā€œdesiredā€ starts above the first column. Underneath the first character of that first line are a series of pipes. That is meant to be a line pointing at the first character. That is the ā€œiā€ so what do you think that means?

The second row of text labeled ā€œstatusā€ starts above the third column. Just below it and to the left is a slash. Below it, a pipe. That is meant to be a crooked line pointing at the second column. So that’s the ā€œUā€ so what do you think that means?

I don’t believe I’m correct in this but following what you guide it looks like installed and unpacked.

Anyway, I just did a fresh clean install of Lubuntu 24.10 Normal.

I kept rebooting and running update and full-upgrade until I seen the below.
Is it now safe to install timeshift and synaptic?

wyatt@wyatt-aspiree1532:~$    sudo apt -y update ;   sudo apt -y full-upgrade
[sudo] password for wyatt: 
Hit:1 http://security.ubuntu.com/ubuntu oracular-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu oracular InRelease       
Get:3 http://us.archive.ubuntu.com/ubuntu oracular-updates InRelease [126 kB]
Hit:4 http://us.archive.ubuntu.com/ubuntu oracular-backports InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu oracular-updates/universe amd64 Packages [181 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu oracular-updates/universe i386 Packages [80.7 kB]
Fetched 388 kB in 1s (289 kB/s)    
All packages are up to date.    
Summary:                        
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
wyatt@wyatt-aspiree1532:~$ 

Yep.

Looks like you should be good to go.

If the iU means installed and Unpacked…
Why did this happen…

This is from the Build From Source page.
Would all of these being disabled have anything to do with what happened?
https://build.opensuse.org/package/show/Emulators:Wine:Debian/wine-staging

 wine-staging

xUbuntu_24.10
x86_64
disabled

i586
disabled

The package has been disabled from building 
in project or package metadata. 
Packages that depend on this package will be 
built using any previously created packages, 
if they still exist.
Repository has been published

I wonder if my script needs to be changed to the following.

From https://software.opensuse.org//download.html?project=Emulators%3AWine%3ADebian&package=wine-staging

echo 'deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_24.10/ /' | sudo tee /etc/apt/sources.list.d/Emulators:Wine:Debian.list
curl -fsSL https://download.opensuse.org/repositories/Emulators:Wine:Debian/xUbuntu_24.10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/Emulators_Wine_Debian.gpg > /dev/null
sudo apt update
sudo apt install wine-staging

Sorry, I led you astray. It doesn’t mean that precisely.

Let’s read again:

So the i means the desire or plan is to install it. It doesn’t mean it is installed, per se. It just means it hasn’t been selected to be removed, purged or held. It’s been selected to be installed. If something is completely installed, this i remains.

Status should be self explanatory. So the U means it is unpacked. This means it’s not any of the other things, including it’s not installed or configured.

Since the status/second column is U and not i (or rather anything other than i), it’s not installed. If it’s not, you can’t remove it. Admittedly, being unpacked, you definitely have some local files associated with it. But you can’t get rid of them with apt remove.

Good questions for the WINE folks. We can help you figure out how to use the package management tools. With regards to specific questions about bleeding edge upstream software, you can’t really expect us to know. However, you can be certain the upstreams will know.

Chances are you don’t want the staging branch, though, looking at the wiki:

This branch includes several hundred experimental patches
that are not yet ready for inclusion in the main branch

If that’s really what you want, you should expect it to break.

I got it working, however it poses another question about upgrade’s.
Do I ask it here or do I need a different new topic?

The most recent wine version is 10.2 which caused the issue.
I rolled back wine to version 10.1
Now it is working, at least until it upgrade’s to version 10.2