I could not install wine, troubleshooting report

Asked by Paul Eisen

I could not install wine, and followed the procedure found at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Yeah, so this is the output:

ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/ lucid/main Translation-en_US
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/ lucid/restricted Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main Translation-en_US
Hit http://archive.ubuntu.com lucid Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Get:2 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Hit http://archive.ubuntu.com lucid Release
Get:3 http://security.ubuntu.com lucid-security Release [44.7kB]
Hit http://ppa.launchpad.net lucid/main Packages
Get:4 http://archive.ubuntu.com lucid-updates Release [44.7kB]
Get:5 http://security.ubuntu.com lucid-security/main Packages [200kB]
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Get:6 http://archive.ubuntu.com lucid-updates/main Packages [509kB]
Get:7 http://security.ubuntu.com lucid-security/restricted Packages [14B]
Get:8 http://security.ubuntu.com lucid-security/main Sources [60.7kB]
Get:9 http://security.ubuntu.com lucid-security/restricted Sources [14B]
Get:10 http://archive.ubuntu.com lucid-updates/restricted Packages [3,240B]
Get:11 http://archive.ubuntu.com lucid-updates/main Sources [199kB]
Get:12 http://archive.ubuntu.com lucid-updates/restricted Sources [1,443B]
Fetched 1,064kB in 5s (203kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt-get install wine1.2
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:
  wine1.2: Depends: libmpg123-0 (>= 1.6.2) but it is not installable
           Depends: libopenal1 but it is not installable
           Recommends: ttf-droid but it is not installable
           Recommends: ttf-mscorefonts-installer but it is not installable
           Recommends: ttf-umefont but it is not installable
           Recommends: wine1.2-gecko but it is not installable
           Recommends: winetricks but it is not going to be installed
E: Broken packages
ubuntu@ubuntu:~$ sudo apt-get install wine1.3
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:
  wine1.3: Depends: libmpg123-0 (>= 1.6.2) but it is not installable
           Depends: libopenal1 but it is not installable
           Recommends: ttf-droid but it is not installable
           Recommends: ttf-mscorefonts-installer but it is not installable
           Recommends: ttf-umefont but it is not installable
           Recommends: winetricks but it is not going to be installed
E: Broken packages
ubuntu@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
ubuntu@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
ubuntu@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
ubuntu@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpgk.backup
ubuntu@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
ubuntu@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ubuntu@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
ubuntu@ubuntu:~$ sudo rm -rf /var/lib/dpkg/lists
ubuntu@ubuntu:~$ sudo rm /var/lib/apt/*bin
rm: cannot remove `/var/lib/apt/*bin': No such file or directory
ubuntu@ubuntu:~$ sudo rm /var/lib/apt/*.bin
rm: cannot remove `/var/lib/apt/*.bin': No such file or directory
ubuntu@ubuntu:~$ sudo rm /var/cache/apt/*.bin
ubuntu@ubuntu:~$ sudo mkdir /var/lib/dpkg/lists
ubuntu@ubuntu:~$ sudo rm /var/lib/dpkg/lists
rm: cannot remove `/var/lib/dpkg/lists': Is a directory
ubuntu@ubuntu:~$ sudo rm -rf /var/lib/dpkg/lists
ubuntu@ubuntu:~$ sudo mkdir /var/lib/apt/lists
mkdir: cannot create directory `/var/lib/apt/lists': File exists
ubuntu@ubuntu:~$ sudo mkdir /var/lib/dpkg/lists
ubuntu@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
ubuntu@ubuntu:~$ sudo rm -rf /var/lib/apt/lists/partial
ubuntu@ubuntu:~$ sudo mkdir /var/lib/apt/lists/
ubuntu@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
ubuntu@ubuntu:~$ LANG=C;sudo apt-get clean
ubuntu@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu@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.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up ttf-symbol-replacement (1.2.3-0ubuntu1~ppa2~lucid1) ...
ubuntu@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid Release.gpg
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid Release
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
Err cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:1 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:2 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:4 http://security.ubuntu.com lucid-security Release.gpg [198B]
Get:5 http://ppa.launchpad.net lucid Release [14.0kB]
Get:6 http://archive.ubuntu.com lucid Release [57.2kB]
Get:7 http://security.ubuntu.com lucid-security Release [44.7kB]
Get:8 http://ppa.launchpad.net lucid/main Packages [3716B]
Get:9 http://archive.ubuntu.com lucid-updates Release [44.7kB]
Get:10 http://archive.ubuntu.com lucid/main Packages [1386kB]
Get:11 http://security.ubuntu.com lucid-security/main Packages [200kB]
Get:12 http://security.ubuntu.com lucid-security/restricted Packages [14B]
Get:13 http://security.ubuntu.com lucid-security/main Sources [60.7kB]
Get:14 http://security.ubuntu.com lucid-security/restricted Sources [14B]
Get:15 http://archive.ubuntu.com lucid/restricted Packages [6208B]
Get:16 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:17 http://archive.ubuntu.com lucid/restricted Sources [3775B]
Get:18 http://archive.ubuntu.com lucid-updates/main Packages [509kB]
Get:19 http://archive.ubuntu.com lucid-updates/restricted Packages [3240B]
Get:20 http://archive.ubuntu.com lucid-updates/main Sources [199kB]
Get:21 http://archive.ubuntu.com lucid-updates/restricted Sources [1443B]
Fetched 3194kB in 14s (218kB/s)
W: Failed to fetch cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/dists/lucid/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/dists/lucid/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download, they have been ignored, or old ones used instead.
ubuntu@ubuntu:~$ sudo dpkg --clear-avail
ubuntu@ubuntu:~$ sudo dpkg --configure -a
ubuntu@ubuntu:~$ LANG=C;sudo apt-get -a install
E: Command line option 'a' [from -a] is not known.
ubuntu@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 150 not upgraded.
ubuntu@ubuntu:~$ LANG=C;sudo apt-get --fix missing install
E: Command line option --fix is not understood
ubuntu@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 150 not upgraded.
ubuntu@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid Release.gpg
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid Release
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
Ign cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
Err cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1) lucid/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://security.ubuntu.com lucid-security Release
Hit http://archive.ubuntu.com lucid-updates Release
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-updates/restricted Packages
Hit http://archive.ubuntu.com lucid-updates/main Sources
Hit http://archive.ubuntu.com lucid-updates/restricted Sources
W: Failed to fetch cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/dists/lucid/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)/dists/lucid/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download, they have been ignored, or old ones used instead.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Remove the CD as a repo in software centre. May help

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

The packages that 'are not installable' are in the multiverse and universe repository, but apparently you have enabled main and restricted only.
If you adapt your package sources that should work.

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

Eyes of the hawk. Great spot dude.

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

I created a bug for this. Hopefully apt-get can be made to detect the fact that extra repos are needed

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

Can you give the output of:

apt-cache policy wine1.2

Thanks

Can you help with this problem?

Provide an answer of your own, or ask Paul Eisen for more information if necessary.

To post a message you must log in.