Install 32 bit software in 64 bit Trisquel - Troubleshooting

12 replies [Last post]
fbit

I am a member!

Offline
Joined: 07/07/2013

Hi,

I wanted to install a program that has no 64 bit version on a 64 bit Trisquel install. I read that this was possible. I followed the instructions here: http://howtoubuntu.org/how-to-install-a-32bit-program-in-64bit-ubuntu since I couldn't find Trisquel specific instructions. I ran:

sudo apt-get install ia32-libs

This returned errors and now I have a red circle with a horizontal white line on the right side of the bottom bar on the GUI. When I click on it, it says:
------------
An error occurred. Please run Package Manager from the right-click menu or apt-get from a terminal to see what is wrong.
The error message was: 'Error: BrokenCount > 0'. This usually means that your installed packages have unmet dependencies.
-----------

At this point I would like to fix whatever I broke. I have tried several things explained below, but nothing has fixed the problem yet. Does anyone know how I can fix this?

Thank you.

What I have done so far:

I have run Synaptic Package Manager. On starting the following error pops up:
-----------
You have 10 broken packages on your system!
Use the "Broken" filter to locate them.
-----------

I went to edit > fix broken packages. Apply. The following error is shown:
-----------
An error occurred
The following details are provided:
E: /var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb: './usr/share/doc/libgtk2.0-0/changelog.Debian' is different from the same file on the system
E: /var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb: './usr/share/doc/libsdl1.2debian/changelog.Debian.gz' is different from the same file on the system
-----------

Then after clicking OK:
-----------
Changes Applied.
Not all changes and updates succeeded. For further details of the failure, please expand the 'Details' panel below.

Details:
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 97, <> line 2.
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/share/perl5/Debconf/FrontEnd/Gnome.pm line 103, <> line 2.
(Reading database ... 173128 files and directories currently installed.)
Unpacking libgtk2.0-0:i386 (from .../libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb (--unpack):
'./usr/share/doc/libgtk2.0-0/changelog.Debian' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking libsdl1.2debian:i386 (from .../libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb (--unpack):
'./usr/share/doc/libsdl1.2debian/changelog.Debian.gz' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb
/var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of gtk2-engines-murrine:i386:
gtk2-engines-murrine:i386 depends on libgtk2.0-0 (>= 2.24.5-4); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing gtk2-engines-murrine:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ibus-gtk:i386:
ibus-gtk:i386 depends on libgtk2.0-0 (>= 2.24.5-4); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing ibus-gtk:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcanberra-gtk-module:i386:
libcanberra-gtk-module:i386 depends on libgtk2.0-0 (>= 2.24.5-4); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing libcanberra-gtk-module:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsdl-net1.2:i386:
libsdl-net1.2:i386 depends on libsdl1.2debian (>= 1.2.10-1); however:
Package libsdl1.2debian:i386 is not installed.
dpkg: error processing libsdl-net1.2:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsdl-image1.2:i386:
libsdl-image1.2:i386 depends on libsdl1.2debian (>= 1.2.10-1); however:
Package libsdl1.2debian:i386 is not installed.
dpkg: error processing libsdl-image1.2:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gtk2-engines:i386:
gtk2-engines:i386 depends on libgtk2.0-0 (>= 2.19.7-2); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing gtk2-engines:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of librsvg2-common:i386:
librsvg2-common:i386 depends on libgtk2.0-0 (>= 2.21.5); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing librsvg2-common:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsdl-mixer1.2:i386:
libsdl-mixer1.2:i386 depends on libsdl1.2debian (>= 1.2.10-1); however:
Package libsdl1.2debian:i386 is not installed.
dpkg: error processing libsdl-mixer1.2:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcanberra-gtk0:i386:
libcanberra-gtk0:i386 depends on libgtk2.0-0 (>= 2.24.0); however:
Package libgtk2.0-0:i386 is not installed.
dpkg: error processing libcanberra-gtk0:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsdl-ttf2.0-0:i386:
libsdl-ttf2.0-0:i386 depends on libsdl1.2debian (>= 1.2.10-1); however:
Package libsdl1.2debian:i386 is not installed.
dpkg: error processing libsdl-ttf2.0-0:i386 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gtk2-engines-murrine:i386
ibus-gtk:i386
libcanberra-gtk-module:i386
libsdl-net1.2:i386
libsdl-image1.2:i386
gtk2-engines:i386
librsvg2-common:i386
libsdl-mixer1.2:i386
libcanberra-gtk0:i386
libsdl-ttf2.0-0:i386
------------

Then on the terminal I have tried:

sudo apt-get -f install ia32-libs

An the output was:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gtk2-engines:i386 : Depends: libgtk2.0-0:i386 (>= 2.19.7-2) but it is not going to be installed
gtk2-engines-murrine:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
ia32-libs : Depends: ia32-libs-multiarch
ibus-gtk:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
libcanberra-gtk-module:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
libcanberra-gtk0:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.0) but it is not going to be installed
librsvg2-common:i386 : Depends: libgtk2.0-0:i386 (>= 2.21.5) but it is not going to be installed
libsdl-image1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-mixer1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-net1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-ttf2.0-0:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I have also tried:

sudo dpkg --force-all -P ia32-libs

The output is the following:

dpkg: warning: there's no installed package matching ia32-libs
mve@mve:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-image-3.4.59-gnu1 thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libgtk2.0-0:i386 libsdl1.2debian:i386
The following NEW packages will be installed:
libgtk2.0-0:i386 libsdl1.2debian:i386
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
10 not fully installed or removed.
Need to get 0 B/2,941 kB of archives.
After this operation, 6,890 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 173128 files and directories currently installed.)
Unpacking libgtk2.0-0:i386 (from .../libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb (--unpack):
'./usr/share/doc/libgtk2.0-0/changelog.Debian' is different from the same file on the system
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking libsdl1.2debian:i386 (from .../libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb (--unpack):
'./usr/share/doc/libsdl1.2debian/changelog.Debian.gz' is different from the same file on the system
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb
/var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

fbit

I am a member!

Offline
Joined: 07/07/2013

Well, I have spent most of the day trying to return my Trisquel to the way it was before I tried installing the ia32-libs. I think the solution must be to remove the broken packages manually, but I am wary of screwing things up further, since I understand these same named packages already exist with my 64 bit install. I am afraid if I try to remove them one by one I may end up removing the 64 bit ones.

As things stand, Trisquel still runs (I have not tried to restart yet) but I cannot do any updates or install any new packages.

Any pointers would be highly appreciated. I am a rookie at GNU/Linux and I am afraid to start tinkering and make the system unusable.

Thanks!

fbit

I am a member!

Offline
Joined: 07/07/2013

I have tried removing the packages individually but that doesn't work either:

$sudo apt-get remove ibus-gtk

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gtk2-engines:i386 : Depends: libgtk2.0-0:i386 (>= 2.19.7-2) but it is not going to be installed
gtk2-engines-murrine:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
ibus-gtk:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
libcanberra-gtk-module:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.5-4) but it is not going to be installed
libcanberra-gtk0:i386 : Depends: libgtk2.0-0:i386 (>= 2.24.0) but it is not going to be installed
librsvg2-common:i386 : Depends: libgtk2.0-0:i386 (>= 2.21.5) but it is not going to be installed
libsdl-image1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-mixer1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-net1.2:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
libsdl-ttf2.0-0:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not going to be installed
trisquel : Depends: ibus-gtk but it is not going to be installed
Recommends: evolution but it is not going to be installed
Recommends: evolution-exchange but it is not going to be installed
Recommends: evolution-plugins but it is not going to be installed
Recommends: evolution-indicator but it is not going to be installed
Recommends: gnome-orca but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

fbit

I am a member!

Offline
Joined: 07/07/2013

Have also tried:

$sudo apt-get remove --auto-remove -f

With the following results:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgtk2.0-0:i386 libsdl1.2debian:i386
The following packages will be REMOVED:
linux-image-3.4.59-gnu1 thunderbird-globalmenu
The following NEW packages will be installed:
libgtk2.0-0:i386 libsdl1.2debian:i386
0 upgraded, 2 newly installed, 2 to remove and 1 not upgraded.
10 not fully installed or removed.
Need to get 0 B/2,941 kB of archives.
After this operation, 149 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 173128 files and directories currently installed.)
Unpacking libgtk2.0-0:i386 (from .../libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb (--unpack):
'./usr/share/doc/libgtk2.0-0/changelog.Debian' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking libsdl1.2debian:i386 (from .../libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb (--unpack):
'./usr/share/doc/libsdl1.2debian/changelog.Debian.gz' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb
/var/cache/apt/archives/libsdl1.2debian_1.2.14-6.4ubuntu3+6.0trisquel1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mve@mve:/etc/apt$ sudo apt-get remove libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb
E: Couldn't find any package by regex 'libgtk2.0-0_2.24.10-0ubuntu6+6.0trisquel2_i386.deb'

fbit

I am a member!

Offline
Joined: 07/07/2013

Seems I have found a way to remove them one by one. One done so far. I hope I'm not destroying anything.

:/var/lib/dpkg/info$ sudo mv libsdl-image1.2:i386.* /tmp/
:/var/lib/dpkg/info$ sudo dpkg --remove --force-remove-reinstreq libsdl-image1.2:i386
(Reading database ...
dpkg: warning: files list file for package `libsdl-image1.2:i386' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `gtk2-engines-murrine:i386' missing, assuming package has no files currently installed.
(Reading database ... 173124 files and directories currently installed.)
Removing libsdl-image1.2:i386 ...

fbit

I am a member!

Offline
Joined: 07/07/2013

OK, that seems to have done the job! :D

fbit

I am a member!

Offline
Joined: 07/07/2013

Some problems after fix:

Could not launch Pidgin. Had to:

reinstall libcanberra-gtk-module
reinstall python
remove and reinstall apparmor

We'll see what else I've broken.

onpon4
Offline
Joined: 05/30/2012

ia32-libs-multiarch being broken (caused by a couple 32-bit packages) is a known problem, and there's a way to fix it on an individual system. See:

https://trisquel.info/en/issues/8155

It sounds like you panicked and removed basic system packages. Bad idea in general; better to deal with problems cautiously and be sure you understand what you're doing at each step. It's not going to get any more broken if you do nothing, but it might if you do the wrong thing.

Probably you should make sure the trisquel and trisquel-recommended packages are installed.

By the way, for future reference, what I think you should have done if it weren't possible to solve the broken packages (and what I previously did when I ran into this problem, before it had a solution) is remove all the packages apt was complaining about, all at once. So, you should have done "sudo apt-get remove libsdl1.2debian:i386", then added the 32-bit package apt said was causing a problem with that command (e.g. if it was foo:i386, the next attempt would be "sudo apt-get remove libsdl1.2debian:i386 foo:i386"), and keep doing it until it works. You instead used a force option, which is pretty much asking to destroy your system if you don't know exactly what you're doing.

fbit

I am a member!

Offline
Joined: 07/07/2013

Thank you for the explanation. I did try to remove the packages one by one with "sudo apt-get remove package" but it wouldn't remove anything...it would just keep complaining about the dependencies.

How can I check to make sure that the trisquel and trisquel-recommended packages are installed?

(yes, it was a bit of a panic) *blush*

fbit

I am a member!

Offline
Joined: 07/07/2013

do you think I still need to do this:
----------------
Problem solved ! Just needed to remove the old changelog files on the /usr/share/doc/ folder.

But this need to be solved.

Best Regards,
Luis Da Costa
---------------

If so, how should I proceed? My Trisquel seems to be working well now, but as you have seen I am no expert :/

Thank you again!

onpon4
Offline
Joined: 05/30/2012

You can remove multiple packages at once. Just list them all as arguments.

For example: "apt-get remove foo bar baz" would remove the hypothetical foo, bar, and baz packages all at once.

fbit

I am a member!

Offline
Joined: 07/07/2013

I understand what you mean now. If I run into a problem like this again, I will try that approach. By the way, the system seems to be working well so far. I initially considered reinstalling it, but so far I think there is no need.

Thanks again for your help.

fbit

I am a member!

Offline
Joined: 07/07/2013

You were right. trisquel and trisquel-recommended packages were no longer installed. Installing them again now.