Unable to install WINE on Saucy - can't make dependencies work

Asked by EvilSupahFly

WINE worked fine on Ringtail, but now that I've upgraded to Saucy, it won't work. Tried to reinstall, but that fails. When I try to install, APT complains about unmet dependencies, and when I try to meet the requirements manually, it complains about more, then eventually complains about conflicts.

See terminal output log for reference: http://pastebin.com/R6tAnKC2

I can't even do build-dep without errors!

root@optiplex:~# apt-get build-dep wine1.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'wine1.6' as source package instead of 'wine1.5'
The following packages have unmet dependencies:
 libgphoto2-2-dev : Depends: libgphoto2-2 (= 2.4.14-2.3ubuntu2) but 2.5.2-0ubuntu2 is to be installed
 libsane-dev : Depends: libtiff5-dev but it is not going to be installed
               Depends: libgphoto2-6-dev but it is not going to be installed
E: Build-dependencies for wine1.5 could not be satisfied.

I've tried for "wine", "wine1.4", "wine1.5" and "wine1.6" with the same result. APT says something is missing, and when I try to install that something it says it can't because something ELSE is missing, and it keeps going around like that. Any help would be GREATLY appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine1.4 Edit question
Assignee:
No assignee Edit question
Solved by:
EvilSupahFly
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug. Saucy is not stable and not ready.

If you need an OS that works then I suggest you reinstall with Precise.

If you want a half made OS but want to report bugs to get the distribution ready for release in October then by all means use Saucy but don't expect a smooth ride.

Saucy is not for the average user.

Revision history for this message
EvilSupahFly (seann-giffin) said :
#2

I was attempting to test Saucy, but I hadn't realized how incomplete is still is.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#3

This is testing.
You are testing and if something is incompatible or fails, then you report bug against. (if not already reported)

Also, try to use the wine PPA, sometimes resolves such problems.

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get -y dist-upgrade
    sudo apt-get install wine

Regards
 NikTh

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

1. You might try adding --no-install-recommends and --no-install-suggests to the apt-get command

2. I am a bit astonished to see messages about monodoc in your output. monodoc hasn't existed any more since Karmic.
Are you sure that your package management system is in a consistent state before you attempted to install wine?
What is the output of "dpkg --audit"?

It think it would be good if you could provide the output of step 5 in https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Revision history for this message
EvilSupahFly (seann-giffin) said :
#5

@Nik.Th. - I was using the WINE PPA after the first attempt failed, and that failed too.

@Manfred - Making Step 5 into a BASH script. Will post output when Step 5 is complete. Running "dpkg --audit" gives no output.

Revision history for this message
EvilSupahFly (seann-giffin) said :
#6

Here's the output from "Step 5": http://pastebin.com/vZijMTQk

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The output of step 5 of the troubleshooting procedure looks a bit strange to me. I do not know if that is specific for your system or if that is something caused by changes in the upcoming saucy release (I am not using saucy myself so far):

sudo apt-get update contains lines like
Get:38 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Ign http://archive.canonical.com raring/partner Translation-en
Get:100 http://archive.ubuntu.com raring-security/restricted amd64 Packages [14 B]
Get:101 http://archive.ubuntu.com raring-security/universe amd64 Packages [32.2 kB]
But I do not see any reference to raring in your sources.list files.

Similar with
W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/raring/dists/saucy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/raring/dists/saucy/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ubuntu-wine/ppa/raring/dists/saucy/main/binary-i386/Packages 404 Not Found
but in none of the source.lists I find a reference to "ubuntu-wine/ppa/raring"

I see two directions that have to be followed now:
1. Chase your problem further
2. Find out why the package management troubleshooting procedure creates contradictory output.

As in my opinion solving issue 2. might help finding the reason for 1., I would llike to start with that.

Please provide the output of the commands
ls -la /etc/apt
ls -la /etc/apt/sources.list

Revision history for this message
EvilSupahFly (seann-giffin) said :
#8

My system was pending a reboot prior to Step 5. Having done that, I'm running it again to see what happens. Will post new output once it's available.

Revision history for this message
EvilSupahFly (seann-giffin) said :
#9

Step 5 - Take Two: http://pastebin.com/pYJqYU64

Output from ls:

root@optiplex:~# ls -la /etc/apt
total 64
drwxrwxrwx 6 root root 4096 Aug 15 16:22 .
drwxr-xr-x 224 root root 16384 Aug 13 22:20 ..
-rw-r--r-- 1 root root 4546 Jul 3 20:19 apt.conf
drwxr-xr-x 2 root root 4096 Aug 13 22:29 apt.conf.d
drwxrwxrwx 2 root root 4096 Apr 12 19:51 preferences.d
-rwxrwxrwx 1 root root 3480 Aug 15 16:22 sources.list
-rwxrwxrwx 1 root root 3329 Aug 13 17:20 sources.list~
drwxrwxrwx 2 root root 4096 Aug 13 22:13 sources.list.d
-rwxr-xr-x 1 root root 2052 Aug 7 08:43 sources.list.old
-rwxrwxrwx 1 root root 3319 Aug 13 22:17 sources.list.save
-rw------- 1 root root 1200 Aug 13 09:21 trustdb.gpg
-rw-r--r-- 1 root root 0 Aug 9 07:59 trusted.gpg
drwxrwxrwx 2 root root 4096 Aug 13 09:21 trusted.gpg.d
root@optiplex:~# ls -la /etc/apt/sources.list
-rwxrwxrwx 1 root root 3480 Aug 15 16:22 /etc/apt/sources.list

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Ok, now the output looks consistent.

It seems that you made an error when adding the Ubuntu-win ppa to your sources.list

I recommend doing the following:

open a terminal and issue the command
gksudo gksudo gedit /etc/apt/sources.list

scroll to lines 18 and 19 and insert /ubuntu between ppa and saucy to make it

deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu saucy main
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu saucy main

Furthermore as a cleanup activity I recommend deleting all lines starting from line 26.
Save the file and close the editor
Delete a redundant file:
sudo rm /etc/apt/sources.list.d/ubuntu-wine-ppa-saucy.list

Then try again with the commands

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wine
(or sudo apt-get install wine1.6 or whatever)

Revision history for this message
EvilSupahFly (seann-giffin) said :
#11

Cleaned up sources.list as recommended, altered the WINE lines, also as recommended, ran apt-get update, and all that with no problems until "upgrade":

root@optiplex:~# apt-get upgrade
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:
 libc6 : Depends: libgcc1 but it is not installed
         Suggests: glibc-doc but it is not installed
         Suggests: debconf but it is not installed or
                   debconf-2.0
         Suggests: locales but it is not installed
E: Unmet dependencies. Try using -f.

So I did as it suggested, and tried to fix with -f :

root@optiplex:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
  libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/43.4 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: regarding .../libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb containing libgcc1:amd64, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb (--unpack):
 pre-dependency problem - not installing libgcc1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Which leads me to this:

root@optiplex:~# apt-get install multiarch-support
Reading package lists... Done
Building dependency tree
Reading state information... Done
multiarch-support is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6 : Depends: libgcc1 but it is not going to be installed
         Suggests: glibc-doc but it is not going to be installed
         Suggests: debconf but it is not going to be installed or
                   debconf-2.0
         Suggests: locales but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

So I did this:

root@optiplex:~# apt-get install multiarch-support libgcc1 libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version.
multiarch-support is already the newest version.
The following NEW packages will be installed:
  libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/43.4 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: regarding .../libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb containing libgcc1:amd64, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb (--unpack):
 pre-dependency problem - not installing libgcc1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

And now I'm chasing my tail. I can't install WINE because there's issues with libc6 which I can't install because there's issues with libgcc1 which won't go because of a problem with multiarch-support, which I can't fix because it depends on libc6.

Guess how annoyed I am at this point!

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#12

sudo dpkg --configure -a

what above command tells you ?

Revision history for this message
EvilSupahFly (seann-giffin) said :
#13

root@optiplex:~# dpkg --configure -a
dpkg: dependency problems prevent configuration of libc6:amd64:
 libc6:amd64 depends on libgcc1; however:
  Package libgcc1 is not installed.

dpkg: error processing libc6:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
 multiarch-support depends on libc6 (>= 2.3.6-2); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing multiarch-support (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6:amd64
 multiarch-support

Revision history for this message
EvilSupahFly (seann-giffin) said :
#14

For the record:

root@optiplex:~# apt-get install libgcc1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/43.4 kB of archives.
After this operation, 130 kB of additional disk space will be used.
dpkg: regarding .../libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb containing libgcc1:amd64, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb (--unpack):
 pre-dependency problem - not installing libgcc1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#15

sudo dpkg-reconfigure multiarch-support

And this is my last try. Why ? Because you are in a development branch, and some packages may not be ready yet, repositories and libraries maybe are not ready yet.. etc

Development branch is not a stable system and I'm not a developer. Sorry.

Regards
 NikTh

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

You might try things like

sudo dpkg -i /var/cache/apt/archive/libgcc1_1%3a4.8.1-9ubuntu1_amd64.deb --force-all --ignore-depends=multiarch-support

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#17

You should do this on the bug. Has the bug been confirmed?

Revision history for this message
EvilSupahFly (seann-giffin) said :
#18

Bug was confirmed. Have since reverted from Saucy to Ringtail. A kernel update left the system in question unbootable, and I no longer have the time to tinker with a beta level release. Closing question with big thanks to all contributors for their suggestions and advice.