Packaget dependencies cannot be resolved Ubuntu 12.10 (installing wine)

Asked by Tyler

I'm trying to install wine and whenever I install it from the software updater, it tells me the package dependencies cannot be resolved. I've run synaptic, software updater everything seems to be up to date but i still get the same error when I try to install wine. The software updater says
The following packages have unmet dependencies:

wine1.4: PreDepends: dpkg (>= 1.15.7.2~) but 1.16.7ubuntu6 is to be installed
         Depends: libc6 (>= 2.14) but 2.15-0ubuntu20 is to be installed
         Depends: wine1.4-amd64 (= 1.4.1-0ubuntu1) but 1.4.1-0ubuntu1 is to be installed
         Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not going to be installed

After trying to install wine the software updater needs to restart (every time I've tried installing).

I ran the following diagnostics, as per https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure.

tyler@ubuntu:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for tyler:
tyler@ubuntu:~$ echo $http_proxy

tyler@ubuntu:~$ echo $ftp_proxy

tyler@ubuntu:~$ grep proxy /etc/bash.bashrc
tyler@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
tyler@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
tyler@ubuntu:~$ uname -a
Linux ubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:15:40 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
tyler@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
tyler@ubuntu:~$ sudo rm /var/lib/dpkg/lock
tyler@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
tyler@ubuntu:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
tyler@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
tyler@ubuntu:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
tyler@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
tyler@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
tyler@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
tyler@ubuntu:~$ sudo rm /var/cache/apt/*.bin
tyler@ubuntu:~$ sudo mkdir /var/lib/apt/lists
tyler@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
tyler@ubuntu:~$ LANG=C;sudo apt-get clean
tyler@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
tyler@ubuntu:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gstreamer0.10-gconf:amd64 (0.10.31-3ubuntu1.1) ...
Setting up gstreamer0.10-plugins-good:amd64 (0.10.31-3ubuntu1.1) ...
Setting up iptables (1.4.12-2ubuntu2.1) ...
Setting up gstreamer0.10-pulseaudio:amd64 (0.10.31-3ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
tyler@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://archive.ubuntu.com quantal InRelease
Get:1 http://security.ubuntu.com quantal-security Release.gpg [933 B]
Ign http://archive.ubuntu.com quantal-updates InRelease
Get:2 http://security.ubuntu.com quantal-security Release [49.6 kB]
Get:3 http://archive.ubuntu.com quantal Release.gpg [933 B]
Get:4 http://archive.ubuntu.com quantal-updates Release.gpg [933 B]
Get:5 http://archive.ubuntu.com quantal Release [49.6 kB]
Get:6 http://security.ubuntu.com quantal-security/main amd64 Packages [83.3 kB]
Get:7 http://archive.ubuntu.com quantal-updates Release [49.6 kB]
Get:8 http://security.ubuntu.com quantal-security/restricted amd64 Packages [14 B]
Get:9 http://archive.ubuntu.com quantal/main amd64 Packages [1137 kB]
Get:10 http://security.ubuntu.com quantal-security/universe amd64 Packages [37.4 kB]
Get:11 http://security.ubuntu.com quantal-security/multiverse amd64 Packages [1146 B]
Get:12 http://security.ubuntu.com quantal-security/main Translation-en [43.3 kB]
Get:13 http://security.ubuntu.com quantal-security/multiverse Translation-en [587 B]
Get:14 http://security.ubuntu.com quantal-security/restricted Translation-en [14 B]
Get:15 http://security.ubuntu.com quantal-security/universe Translation-en [21.4 kB]
Get:16 http://archive.ubuntu.com quantal/restricted amd64 Packages [8369 B]
Get:17 http://archive.ubuntu.com quantal/universe amd64 Packages [5274 kB]
Get:18 http://archive.ubuntu.com quantal/multiverse amd64 Packages [131 kB]
Get:19 http://archive.ubuntu.com quantal/main Translation-en [660 kB]
Get:20 http://archive.ubuntu.com quantal/multiverse Translation-en [100 kB]
Get:21 http://archive.ubuntu.com quantal/restricted Translation-en [2575 B]
Get:22 http://archive.ubuntu.com quantal/universe Translation-en [3648 kB]
Get:23 http://archive.ubuntu.com quantal-updates/main amd64 Packages [199 kB]
Get:24 http://archive.ubuntu.com quantal-updates/restricted amd64 Packages [3048 B]
Get:25 http://archive.ubuntu.com quantal-updates/universe amd64 Packages [168 kB]
Get:26 http://archive.ubuntu.com quantal-updates/multiverse amd64 Packages [7948 B]
Get:27 http://archive.ubuntu.com quantal-updates/main Translation-en [94.7 kB]
Get:28 http://archive.ubuntu.com quantal-updates/multiverse Translation-en [4499 B]
Get:29 http://archive.ubuntu.com quantal-updates/restricted Translation-en [915 B]
Get:30 http://archive.ubuntu.com quantal-updates/universe Translation-en [89.5 kB]
Fetched 11.9 MB in 1min 17s (153 kB/s)
Reading package lists... Done
tyler@ubuntu:~$ sudo dpkg --configure -a
tyler@ubuntu:~$ sudo dpkg --clear-avail
tyler@ubuntu:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tyler@ubuntu:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tyler@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://security.ubuntu.com quantal-security InRelease
Hit http://security.ubuntu.com quantal-security Release.gpg
Hit http://security.ubuntu.com quantal-security Release
Ign http://archive.ubuntu.com quantal InRelease
Hit http://security.ubuntu.com quantal-security/main amd64 Packages
Hit http://security.ubuntu.com quantal-security/restricted amd64 Packages
Ign http://archive.ubuntu.com quantal-updates InRelease
Hit http://security.ubuntu.com quantal-security/universe amd64 Packages
Hit http://archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com quantal-security/multiverse amd64 Packages
Hit http://security.ubuntu.com quantal-security/main Translation-en
Hit http://archive.ubuntu.com quantal-updates Release.gpg
Hit http://security.ubuntu.com quantal-security/multiverse Translation-en
Hit http://security.ubuntu.com quantal-security/restricted Translation-en
Hit http://archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://archive.ubuntu.com quantal-updates Release
Hit http://archive.ubuntu.com quantal/main amd64 Packages
Hit http://archive.ubuntu.com quantal/restricted amd64 Packages
Hit http://archive.ubuntu.com quantal/universe amd64 Packages
Hit http://archive.ubuntu.com quantal/multiverse amd64 Packages
Hit http://archive.ubuntu.com quantal/main Translation-en
Hit http://archive.ubuntu.com quantal/multiverse Translation-en
Hit http://archive.ubuntu.com quantal/restricted Translation-en
Hit http://archive.ubuntu.com quantal/universe Translation-en
Hit http://archive.ubuntu.com quantal-updates/main amd64 Packages
Hit http://archive.ubuntu.com quantal-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com quantal-updates/universe amd64 Packages
Hit http://archive.ubuntu.com quantal-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com quantal-updates/main Translation-en
Hit http://archive.ubuntu.com quantal-updates/multiverse Translation-en
Hit http://archive.ubuntu.com quantal-updates/restricted Translation-en
Hit http://archive.ubuntu.com quantal-updates/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tyler@ubuntu:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
     2 deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
     3 deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse

/etc/apt/sources.list.d/ehoover-compholio-quantal.list

     1 # deb http://ppa.launchpad.net/ehoover/compholio/ubuntu quantal main
     2 # deb-src http://ppa.launchpad.net/ehoover/compholio/ubuntu quantal main
tyler@ubuntu:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
N1ck 7h0m4d4k15
Solved:
Last query:
Last reply:
Revision history for this message
David Pires (slickymaster) said :
#1

Install wine1.5 from the ppa (search "ubuntu wine ppa").

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

Try these commands

1) sudo dpkg --add-architecture i386
2) sudo apt-get update
3) sudo apt-get install wine

Thanks

Revision history for this message
Tyler (tyler-mcgee123) said :
#3

Thanks NikTh, that solved my question.