Install issue with dependencies

Questions about Wine on Linux
Locked
flaxeneel2
Newbie
Newbie
Posts: 3
Joined: Mon Sep 26, 2022 10:32 am

Install issue with dependencies

Post by flaxeneel2 »

I have looked absolutely everywhere for a fix, and I have tried so many of the suggested fixes, nothing works. Please help
Output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libsnmp35:i386 < none -> 5.8+dfsg-2ubuntu2.5 @un uN Ib >
Broken libsnmp35:i386 Depends on libmysqlclient21:i386 < none | 8.0.30-0ubuntu0.20.04.2 @un uH > (>= 8.0.11)
  Considering libmysqlclient21:i386 0 as a solution to libsnmp35:i386 0
  Holding Back libsnmp35:i386 rather than change libmysqlclient21:i386
Investigating (0) libsane:i386 < none -> 1.0.29-0ubuntu5.2 @un uN Ib >
Broken libsane:i386 Depends on libsnmp35:i386 < none | 5.8+dfsg-2ubuntu2.5 @un uH > (>= 5.8+dfsg)
  Considering libsnmp35:i386 0 as a solution to libsane:i386 0
  Holding Back libsane:i386 rather than change libsnmp35:i386
Investigating (0) wine-stable-i386:i386 < none -> 7.0.0.0~focal-1 @un uN Ib >
Broken wine-stable-i386:i386 Depends on libsane:i386 < none | 1.0.29-0ubuntu5.2 @un uH > (>= 1.0.24)
  Considering libsane:i386 0 as a solution to wine-stable-i386:i386 -1
  Holding Back wine-stable-i386:i386 rather than change libsane:i386
Investigating (1) wine-stable:amd64 < none -> 7.0.0.0~focal-1 @un uN Ib >
Broken wine-stable:amd64 Depends on wine-stable-i386:amd64 < none @un H > (= 7.0.0.0~focal-1)
  Considering wine-stable-i386:i386 -1 as a solution to wine-stable:amd64 0
  Holding Back wine-stable:amd64 rather than change wine-stable-i386:amd64
Investigating (2) winehq-stable:amd64 < none -> 7.0.0.0~focal-1 @un puN Ib >
Broken winehq-stable:amd64 Depends on wine-stable:amd64 < none | 7.0.0.0~focal-1 @un uH > (= 7.0.0.0~focal-1)
  Considering wine-stable:amd64 0 as a solution to winehq-stable:amd64 9999
    Reinst Failed early because of mysql-common:i386
    Reinst Failed because of libmysqlclient21:i386
    Reinst Failed because of libsnmp35:i386
    Reinst Failed because of libsane:i386
    Reinst Failed because of wine-stable-i386:i386
  Considering wine-stable:i386 -1 as a solution to winehq-stable:amd64 9999
    Reinst Failed because of wine-stable-i386:i386
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
I do have i386 as an architecture

Code: Select all

$ sudo dpkg --print-foreign-architectures
i386
This is the machine I am trying to run it on:

Code: Select all

OS: KDE neon User - 5.25 x86_64 
Host: Vivobook_ASUSLaptop M3401QA_M3401QA 1.0 
Kernel: 5.15.0-48-generic 
Uptime: 2 hours, 44 mins 
Packages: 2224 (dpkg), 15 (flatpak), 10 (snap) 
Shell: bash 5.0.17 
Resolution: 2880x1800 
DE: Plasma 
WM: KWin 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 4.463GHz 
GPU: AMD ATI 03:00.0 Device 1638 
Memory: 8228MiB / 15398MiB 
I can install wine 5.0 just fine, it is just wine 7.0 which is causing this issue
flaxeneel2
Newbie
Newbie
Posts: 3
Joined: Mon Sep 26, 2022 10:32 am

Re: Install issue with dependencies

Post by flaxeneel2 »

I have seemed to fix this issue. It was because of a mariadb sources. I have a mariadb instance that I use for development work, so I needed to get rid of it
After running

Code: Select all

sudo apt purge mariadb
I had to remove the sources, for which I did:

Code: Select all

cd /etc/apt
cd sources.list.d/
sudo rm mariadb.list mariadb.list.save
cd ../trusted.gpg.d/
sudo rm mariadb-keyring-2019.gpg
sudo apt remove mysql-common
cd preferences.d/
sudo rm mariadb-enterprise.pref
sudo apt install libmysqlclient21:i386
sudo apt install winehq-stable 
And that worked! I think directly running winehq-stable without explicitly installing libmysqlclient21 will work, but I haven't tested it out
Locked