1

I can't install many different kinds of packages on my Ubuntu 14.04 64bit system.

I have run the command

sudo dpkg --add-architecture i386

as many of the related questions have suggested, but when I run

sudo apt-get install skype

I get:

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:
 skype : Depends: skype-bin
E: Unable to correct problems, you have held broken packages.

Steam fails too:

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:
 steam:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be installed
              Depends: libgl1-mesa-glx:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Also, even something I thought was simple like samba fails to install:

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:
 samba : Depends: samba-common (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
         Depends: samba-common-bin (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
         Depends: samba-dsdb-modules but it is not going to be installed
         Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
         Recommends: attr
         Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Here are the uncommented lines from /etc/apt/sources.list:

deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.canonical.com/ trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

I believe this has something to do with the "new" (?) multiarch system in Ubuntu 14.04 (my last system ran 13.04), but I don't really know what to do to fix this problem. I have seen many suggests that involve crowbaring packages from older distributions into 14.04, but I don't want to do that unless as a last resort.

The only PPA I have installed is the one for Google Chrome.

How do I fix this?

Braiam
  • 69,112

1 Answers1

0

For Skype and Steam, the packages come from the Canonical partner's repo, for which the correct line is:

deb http://archive.canonical.com/ubuntu trusty partner

There's an ubuntu at the end of the URL, missing in your list.

Try again after an apt-get update after making this change. You should use the software-properties-gtk program for selecting from such pre-listed repositories. You can run it by typing Sources in the Dash.

I'm not sure of samba. In this case, the error is that you have held broken packages. I suggest an apt-get install -f.

muru
  • 207,228