Can't install Wine under 19.1: Held packages

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
jiawen
Level 2
Level 2
Posts: 53
Joined: Sun Mar 17, 2013 5:29 pm

Can't install Wine under 19.1: Held packages

Post by jiawen »

I recently had Wine working quite well under my install of 19.1, but then a package expired and the update manager kept telling me that a package had a bad signature or something along those lines. (I forget the specifics now, sorry.) I finally got tired of turning this off, and removed the packages. That apparently broke Wine. I've tried to reinstall Wine but have had no luck.

I followed this guide, including karlchen's post about the basic

Code: Select all

apt install --install-recommends wine-installer
console command, and Flemur's post about cleaning out any remaining PPAs/repos. I believe I have successfully removed any old PPAs/repos; when I run

Code: Select all

inxi -r | grep wine
, nothing is listed. However, when I try to run

Code: Select all

apt install --install-recommends wine-installer
, I get the "held packages" error:

Code: Select all

$ apt install --install-recommends wine-installer
Reading package lists... Done
Building dependency tree       
Reading state information... 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:
 wine-installer : Depends: winehq-stable but it is not going to be installed or
                           winehq-devel but it is not installable or
                           winehq-staging but it is not installable
                  Depends: libsane1:i386
E: Unable to correct problems, you have held broken packages.
This doesn't mean I should just install libsane1:i386 from some random repository, does it?

I also tried going into Synaptic and searching for "wine". When I do that currently, it gives lots and lots of candidates packages, and shows none currently installed. When I click "Fix broken packages", it says "Successfully fixed dependency problems". When I click on wine-installer to be installed, it allows me to mark it for installation. However, when I click "Apply", it says "Could not apply changes! Fix broken packages first." When I next try to fix broken packages, it gives this error:

Code: Select all

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
What should I try next to get Wine running under Linux Mint 19.1?
User avatar
spamegg
Level 9
Level 9
Posts: 2799
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Can't install Wine under 19.1: Held packages

Post by spamegg »

Hello jiawen
Please share your system info by going to:
→→→→ Menu/System Reports/System Information/click "Copy"
and pasting it here.
jiawen
Level 2
Level 2
Posts: 53
Joined: Sun Mar 17, 2013 5:29 pm

Re: Can't install Wine under 19.1: Held packages

Post by jiawen »

My System Reports app has no "System Information" page. There's a light-bulb icon, whose page appears to be called "Information reports:". However, that is all blank; there's nothing for me to copy and paste there. The "crash reports" page has a report from what I have to assume is an unrelated program (my IME, from two days ago; not related to yesterday's attempts to install Wine).

Is there a console command I can do to get the information you're looking for? For what it's worth, I'm running Linux Mint 19.1 Tessa 64-bit, and MATE 1.20.1.
User avatar
spamegg
Level 9
Level 9
Posts: 2799
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Can't install Wine under 19.1: Held packages

Post by spamegg »

I see, I guess 19.1 is quite old to me by now, the System Reports tool probably did not have that feature in 19.1 and I must have forgotten.

The terminal equivalent is inxi -Fxxxmprz
Cosmo.
Level 24
Level 24
Posts: 22055
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't install Wine under 19.1: Held packages

Post by Cosmo. »

System Report had been introduced with LM 19.2.
Gotcha!
User avatar
karlchen
Level 22
Level 22
Posts: 16636
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Can't install Wine under 19.1: Held packages

Post by karlchen »

Cosmo. wrote:
Wed Sep 28, 2022 3:49 am
System Report had been introduced with LM 19.2.
C o r r e c t !

Whoever takes the pain of reading the post How to post your Linux Mint System Information (inxi report), can confirm so.
karlchen wrote:
Sat May 02, 2020 7:25 pm
Topic: How to post your Linux Mint System Information (inxi report)
Applies to: LM 19.2 and above [...]
I assume it is the most ignored sticky post in the forum, ignored specifically by 99,999% of the intended audience.
Yet, this is a different story and need not be discussed here or elsewhere.

--

With respect to Mint 19.1 or older or any Linux Mint release:

In the mentioned thread there is this 4th post, How to post your System Information (inxi report) the manual way.
The given steps can be applied on Mint 19.1 or any other Linux Mint release.
karlchen wrote:
Thu May 07, 2020 5:18 pm
Topic: How to post your System Information (inxi report) the manual way
Applies to: Linux Mint, any supported version
Image
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Cosmo.
Level 24
Level 24
Posts: 22055
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't install Wine under 19.1: Held packages

Post by Cosmo. »

karlchen wrote:
Wed Sep 28, 2022 5:14 am
I assume it is the most ignored sticky post in the forum, ignored specifically by 99,999% of the intended audience.
Yet, this is a different story and need not be discussed here or elsewhere.
It suffers the same fate as the forum rules. :(
There exist even those users, who describe the question for system information as ... (words similar to idiotic :twisted: ); seen twice yesterday.
Discussing this situation would indeed be a step in the right direction. :idea:
Gotcha!
User avatar
karlchen
Level 22
Level 22
Posts: 16636
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Can't install Wine under 19.1: Held packages

Post by karlchen »

Hello, jiawen.

The wine-installer fetches Wine from the mainLinux Mint software repository, not from WineHQ specifically. This is why the output of inxi -r does not hold any "wine" string.

Code: Select all

$ LC_ALL=C apt-cache policy wine-stable
wine-stable:
  Installed: 4.0~bionic
  Candidate: 4.0~bionic
  Version table:
 *** 4.0~bionic 500
        500 http://packages.linuxmint.com tricia/import amd64 Packages
        100 /var/lib/dpkg/status
     3.0-1ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
---
Here are the libsane1:* packages installed ony my LM 19.3 system:

Code: Select all

$ LC_ALL=C dpkg --list libsane1:*
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
+++-=============================-===================-===================-================================================================
ii  libsane1:amd64                1.0.27-1~experiment amd64               API library for scanners
ii  libsane1:i386                 1.0.27-1~experiment i386                API library for scanners
So the answer to your question whether you should install the package libsane1:i386 is: yes, you should.

---
Wine requires 32-bit support to be enabled. By default, 32-but support is enabled on Mint 19.x.
You can verify it is by executing the commands:

Code: Select all

$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
The first command, which displays amd64, confirms that this Mint installation is a 64-bit installation.
The second command, which displays i386, confirms that in addition 32-bit software support has been enabled.
Any other result may indicate a problem.

HTH,
Karl
Image
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
jiawen
Level 2
Level 2
Posts: 53
Joined: Sun Mar 17, 2013 5:29 pm

Re: Can't install Wine under 19.1: Held packages

Post by jiawen »

karlchen wrote:
Wed Sep 28, 2022 6:06 am
So the answer to your question whether you should install the package libsane1:i386 is: yes, you should.
Okay, thank you for that. I had tried installing it before from the console, but hesitated when it gave the long "The following packages will be REMOVED" list, including many packages I use a fair amount. Also, it said there were two further broken requirements (libgphoto2-6:i386 and libgphoto2-port12:i386), with libgphoto2-6:i386 further depending on libgphoto2-port12:i386 but that being broken. But then I tried to install libgphoto2-port12:i386, and finally it seemed like something that could actually install rather than being a broken dependency. The long list of "packages [that] will be REMOVED" was certainly intimidating, but I decided to go for it anyway, because the program I need Wine for is really pretty important. libgphoto2-port12:i386 installed successfully, then libgphoto2-6:i386, and libsane1:i386, then finally Wine. It also looks like many of the programs that got uninstalled still have good candidates afterwards. Looks like I was just being too hesitant about installing libsane1:i386.

Thanks again for your help.

And here, just in case someone else later on needs it, is what my console commands looked like:

Code: Select all

$ sudo apt-get install libsane1:i386
[sudo] password for you:          
Reading package lists... Done
Building dependency tree       
Reading state information... 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:
 libsane1:i386 : Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                 Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install libgphoto2-6:i386
Reading package lists... Done
Building dependency tree       
Reading state information... 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:
 libgphoto2-6:i386 : Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install libgphoto2-port12:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  blender-data 
[a very long list of programs]
  xsane-common
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  gphoto2:i386
The following packages will be REMOVED:
  blender 
[a very long list of programs]
  xsane
The following NEW packages will be installed:
  libgphoto2-port12:i386
0 upgraded, 1 newly installed, 24 to remove and 6 not upgraded.
Need to get 52.0 kB of archives.
After this operation, 172 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ubuntu.cs.nctu.edu.tw/ubuntu bionic/main i386 libgphoto2-port12 i386 2.5.16-2 [52.0 kB]
Fetched 52.0 kB in 1s (100 kB/s)            
(Reading database ... 2044091 files and directories currently installed.)
Removing blender (2.79.b+dfsg0-1ubuntu1.18.04.1) ...
[Other programs removed]

Removing libgphoto2-port12:amd64 (2.5.30+202207290704~ubuntu18.04.1) ...
Selecting previously unselected package libgphoto2-port12:i386.
(Reading database ... 2042214 files and directories currently installed.)
Preparing to unpack .../libgphoto2-port12_2.5.16-2_i386.deb ...
Unpacking libgphoto2-port12:i386 (2.5.16-2) ...
Setting up libgphoto2-port12:i386 (2.5.16-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...

[More 'Processing']

Processing triggers for gconf2 (3.2.6-4ubuntu1) ...
$ 
User avatar
karlchen
Level 22
Level 22
Posts: 16636
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Can't install Wine under 19.1: Held packages

Post by karlchen »

Hello, jiawen.

It had not occurred to me that by selecting to install one missing 32-bit software package a cascading removal effect might be triggered, which in the end removed blender from your system.

I should have been more careful when confirming that libsane1:i386 should be installed and I should have added a warning:

In case the apt-get command should suggest that a lot of software packages will be removed when installing libsane1:i386,
then it would be wiser not to agree, but to share the list of packages here, which apt-get wants to remove.

In this case it seems to have been the software package libgphoto2-port12:i386, which triggered the uninstallation of blender and many more software packages. Those may or may not have been packages needed by blender.

Too bad that you omitted precisely this list of removed packages completely.

But you should be able to find the list of software packages, removed today, by launching Synaptic packages manager.
In Synaptic click on "File" => "History".
Inside the history, there should be in descending order from newst to oldest clickable date/timestamps.
Clicking on each date/timestamp will make Synaptic display which operation it executed: install / update / remove
And it will list all affected software package names.
You can mark this list and copy it.
Doing this for every removal operation done today, it should be possible to find out what all has been uninstalled together with blender.

By the way:
Does Wine work now properly?
Do you experience any problems affecting the system or other applications, which might be related to the software removal?

You could execute the terminal command

Code: Select all

sudo apt-get check
in order to find out whether there are any obvious inconsistencies, and share the screen output with us.

Als the command

Code: Select all

sudo dpkg --configure -a
could be executed. In case everything is ok, it will return quickly and without any feedback.
In case it detects software packages, which still need configuring, it will try to do so.
In case it succeeds, good.
Else it will tell why it could not complete its work successfully. What needs to be done in such a case depends on the detected problem(s).


Regards,
Karl
Image
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Post Reply

Return to “Software & Applications”