this post was submitted on 26 Feb 2025
19 points (91.3% liked)

Linux

52855 readers
240 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Edit: explicitly downgrading to 10.1 with

sudo apt install wine-staging=10.1~focal-1 wine-staging-amd64=10.1~focal-1 wine-staging-i386:i386=10.1~focal-1 winehq-staging=10.1~focal-1

worked for me, but see other solutions posted below.

Thank you for the help!


On Ubuntu, the last apt upgrade of Wine broke down, bringing down the whole apt system:

The following packages have unmet dependencies. wine-staging : Depends: wine-staging-amd64 (= 10.2~focal-2) but 10.2~focal-1 is installed

At the suggestion of running sudo apt --fix-broken install, this is what happens:

Unpacking wine-staging-amd64 (10.2~focal-2) over (10.2~focal-1) ... dpkg: error processing archive /var/cache/apt/archives/wine-staging-amd64_10.2~focal-2_amd64.deb (--unpack): trying to overwrite '/opt/wine-staging/bin/wine', which is also in package wine-staging-i386:i386 10.2~focal-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~focal-2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Apparently this is also happening on Linux Mint: https://forums.linuxmint.com/viewtopic.php?t=441158

Any suggestions? Cheers!

top 9 comments
sorted by: hot top controversial new old
[–] mactan@lemmy.ml 4 points 1 month ago

unfortunately 10.2 removed wine 64 loader name too, so anything hard coded to look for it like eac broke

[–] catloaf@lemm.ee 4 points 1 month ago* (last edited 1 month ago) (1 children)

Well that's not supposed to happen. I'm guessing the package itself is broken and should be fixed by the packager. Just stick with 10.2~focal-1 for now.

[–] pglpm@lemmy.ca 2 points 1 month ago* (last edited 1 month ago) (1 children)

The problem is that the whole apt system seems to be broken. It doesn't let me install other packages, and I can't even uninstall wine. So I wonder if any fixes from wine will work. It looks like this needs the user's manual intervention.

$ sudo apt upgrade 
Reading package lists... Done
Building dependency tree       
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~focal-2) but 10.2~focal-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ sudo apt remove wine-staging-amd64
Reading package lists... Done
Building dependency tree       
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~focal-2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

but sudo apt --fix-broken install does not solve anything...

[–] catloaf@lemm.ee 4 points 1 month ago* (last edited 1 month ago) (1 children)

Yeah it'll take manual intervention until 10.2~focal-3 comes out. You should be able to remove wine-staging, or maybe uninstall wine-staging-i386 then use --fix-broken, or maybe downgrade wine-staging to whichever version depends on 10.2~focal-1. Anything that gets rid of the dependency on the broken package.

[–] pglpm@lemmy.ca 2 points 1 month ago* (last edited 1 month ago) (1 children)

Edit: explicitly installing 10.1 with

sudo apt install wine-staging=10.1~focal-1 wine-staging-amd64=10.1~focal-1 wine-staging-i386:i386=10.1~focal-1 winehq-staging=10.1~focal-1

worked.

Thank you for the help!

But I can't remove wine-staging, at least not via apt:

$ sudo apt remove wine-staging-i386
Reading package lists... Done
Building dependency tree       
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-i386 (= 10.2~focal-2)
                Depends: wine-staging-amd64 (= 10.2~focal-2) but 10.2~focal-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

So no go there. --fix-broken doesn't work either:

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  wine-staging-amd64
The following packages will be upgraded:
  wine-staging-amd64
1 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.
3 not fully installed or removed.
Need to get 0 B/114 MB of archives.
After this operation, 15.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 393922 files and directories currently installed.)
Preparing to unpack .../wine-staging-amd64_10.2~focal-2_amd64.deb ...
Unpacking wine-staging-amd64 (10.2~focal-2) over (10.2~focal-1) ...
dpkg: error processing archive /var/cache/apt/archives/wine-staging-amd64_10.2~focal-2_amd64.deb (--unpack):
 trying to overwrite '/opt/wine-staging/bin/wine', which is also in package wine-staging-i386:i386 10.2~focal-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~focal-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea on how to remove Wine manually, bypassing apt?

[–] ryannathans@aussie.zone 2 points 1 month ago (2 children)

sudo apt -o Dpkg::Options::="--force-overwrite" --fix-broken install

[–] catloaf@lemm.ee 2 points 1 month ago (1 children)

I'm not sure I'd recommend that. Seems like it'd result in more breakage from mismatched architecture files.

[–] ryannathans@aussie.zone 1 points 1 month ago

Probably but it's fucked anyway and now you can at least replace it with another wine or wait till it's fixed tomorrow

[–] pglpm@lemmy.ca 1 points 1 month ago

Thank you! didn't know about that command.