E: Broken error occurs when trying to install Samba

Asked by Sampara Avesh

Hi Team,

When I am trying to install Samba in my ubuntu server 10.04.3, It's throwing below mentioned error.

sudo apt-get install samba
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: libpopt0 (>= 1.16) but 1.15-1 is to be installed
E: Broken packages

I installed "libpopt0 (>= 1.16) but 1.15-1 " and tired installing Samba. However i still receive the same error. Please help.

Question information

Language:
English Edit question
Status:
Answered
For:
samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Miha Gašperšič (miha.gaspersic) said :
#1

Hi Sampara,

if you add some extra ppa's which are related to this package, please remove them first and then install samba. Or you can run this command sudo apt-get repair samba. If not, download samba from official page and install it on your computer.

If this helps you solve your question, please mark this thread as solved.

Regards,
Miha

Revision history for this message
Sampara Avesh (aveshhft) said :
#2

Hi Miha,

When i tried the command sudo apt-get repair samba. I am receiving the below error.

sudo apt-get repair samba
E: Invalid operation repair

Thanks,
Avesh Sampara

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Sampara Avesh (aveshhft) said :
#4

Hi,

I am still facing the problem in configuring samab server on Ubuntu 10.04 server.

Can anyone provide a solution for this.

Thanks,

Avesh Sampara

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

please open a terminal and issue the following commands:

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install samba libpopt0
apt-cache policy samba libpopt0

then select all output (edit - select all), copy it (edit - copy) and paste into a new message of this question thread.

Revision history for this message
Sampara Avesh (aveshhft) said :
#6

Hi Manfred,

sudo apt-get install -f
[sudo] password for avesh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libt1-5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

sudo apt-get update
Get:1 http://dl.google.com stable Release.gpg [198B]
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/ondrej/php5/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Get:2 http://security.debian.org stable/updates Release.gpg [836B]
Ign http://security.debian.org/ stable/updates/main Translation-en_US
Ign http://security.debian.org/ stable/updates/contrib Translation-en_US
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_US
Hit http://archive.canonical.com lucid Release.gpg
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Get:3 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
Hit http://ppa.launchpad.net lucid Release
Get:4 http://dl.google.com stable Release.gpg [198B]
Get:5 http://security.debian.org stable/updates Release [86.9kB]
Ign http://security.debian.org stable/updates Release
Ign http://archive.canonical.com/ lucid/partner Translation-en_US
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://archive.canonical.com lucid Release
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Get:6 http://security.ubuntu.com lucid-security Release [57.3kB]
Get:7 http://us.archive.ubuntu.com lucid Release.gpg [189B]
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Get:8 http://us.archive.ubuntu.com lucid-updates Release.gpg [198B]
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://security.debian.org stable/updates/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://archive.canonical.com lucid Release
Get:9 http://http.us.debian.org stable Release.gpg [1,672B]
Ign http://http.us.debian.org/debian/ stable/all Translation-en_US
Get:10 http://us.archive.ubuntu.com lucid Release [57.2kB]
Get:11 http://packages.dotdeb.org stable Release.gpg [836B]
Ign http://packages.dotdeb.org/ stable/all Translation-en_US
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.canonical.com lucid/partner Sources
Get:12 http://http.us.debian.org stable Release [111kB]
Ign http://http.us.debian.org stable Release
Get:13 http://packages.dotdeb.org stable Release [2,203B]
Ign http://packages.dotdeb.org stable Release
Hit http://archive.canonical.com lucid/partner Packages
Get:14 http://us.archive.ubuntu.com lucid-updates Release [57.3kB]
Hit http://packages.dotdeb.org stable/all Packages
Ign http://http.us.debian.org stable/all Packages
Get:15 http://security.ubuntu.com lucid-security/main Packages [423kB]
Ign http://http.us.debian.org stable/all Packages
Get:16 http://us.archive.ubuntu.com lucid/main Packages [1,383kB]
Err http://http.us.debian.org stable/all Packages
  404 Not Found [IP: 199.6.12.70 80]
Get:17 http://security.ubuntu.com lucid-security/restricted Packages [2,840B]
Get:18 http://security.ubuntu.com lucid-security/main Sources [125kB]
Get:19 http://security.ubuntu.com lucid-security/restricted Sources [1,259B]
Get:20 http://security.ubuntu.com lucid-security/universe Packages [147kB]
Get:21 http://security.ubuntu.com lucid-security/universe Sources [40.8kB]
Get:22 http://security.ubuntu.com lucid-security/multiverse Packages [5,348B]
Get:23 http://security.ubuntu.com lucid-security/multiverse Sources [2,316B]
Get:24 http://us.archive.ubuntu.com lucid/restricted Packages [6,193B]
Get:25 http://us.archive.ubuntu.com lucid/main Sources [659kB]
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_US
Get:26 http://dl.google.com stable Release [1,347B]
Get:27 http://dl.google.com stable Release [1,347B]
Get:28 http://us.archive.ubuntu.com lucid/restricted Sources [3,775B]
Get:29 http://us.archive.ubuntu.com lucid/universe Packages [5,430kB]
Get:30 http://dl.google.com stable/main Packages [1,224B]
Get:31 http://dl.google.com stable/main Packages [771B]
Get:32 http://us.archive.ubuntu.com lucid/universe Sources [3,165kB]
Get:33 http://us.archive.ubuntu.com lucid/multiverse Packages [176kB]
Get:34 http://us.archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:35 http://us.archive.ubuntu.com lucid-updates/main Packages [617kB]
Get:36 http://us.archive.ubuntu.com lucid-updates/restricted Packages [4,638B]
Get:37 http://us.archive.ubuntu.com lucid-updates/main Sources [224kB]
Get:38 http://us.archive.ubuntu.com lucid-updates/restricted Sources [2,194B]
Get:39 http://us.archive.ubuntu.com lucid-updates/universe Packages [287kB]
Get:40 http://us.archive.ubuntu.com lucid-updates/universe Sources [101kB]
Get:41 http://us.archive.ubuntu.com lucid-updates/multiverse Packages [11.5kB]
Get:42 http://us.archive.ubuntu.com lucid-updates/multiverse Sources [5,818B]
Fetched 13.1MB in 51s (254kB/s)
W: GPG error: http://security.debian.org stable/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://http.us.debian.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://packages.dotdeb.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E9C74FEEA2098A6E
W: Failed to fetch http://http.us.debian.org/debian/dists/stable/all/binary-amd64/Packages.gz 404 Not Found [IP: 199.6.12.70 80]

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

 sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  bind9-host bind9utils evince imagemagick libbind9-60 libcupsimage2 libdns64
  libisc60 libisccfg60 libjasper1 liblwres60 libpango1.0-0 libsoup-gnome2.4-1
  libtiff4 libwebkit-1.0-2 openoffice.org-base-core openoffice.org-calc
  openoffice.org-common openoffice.org-core openoffice.org-draw
  openoffice.org-gnome openoffice.org-gtk openoffice.org-help-en-us
  openoffice.org-impress openoffice.org-math openoffice.org-writer python-uno
  samba-common-bin telepathy-gabble vino
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

sudo apt-get install samba libpopt0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpopt0 is already the newest version.
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: libpopt0 (>= 1.16) but 1.15-1 is to be installed
E: Broken packages

apt-cache policy samba libpopt0
samba:
  Installed: (none)
  Candidate: 2:3.5.6~dfsg-3squeeze8
  Version table:
     2:3.5.6~dfsg-3squeeze8 0
        500 http://security.debian.org/ stable/updates/main Packages
     2:3.4.7~dfsg-1ubuntu3.10 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
     2:3.4.7~dfsg-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
libpopt0:
  Installed: 1.15-1
  Candidate: 1.15-1
  Version table:
 *** 1.15-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

I have pastedthe output.

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

The output provides hints to the root cause of your problem: an unhealthy mix of different repositories in your sources.list (the configuration file that tells the system from where to download the packages).

When you mix different sources (e.g Ubuntu.com and Debian.org) you will very likely run into dependency problems.
Ubuntu tries to ensure that all dependencies are satisfied, when you stick to downloading from Ubuntu.
Debian.org tries to ensure, that the mutual depencencies are satisfied, when you have everything from debian.
But when you mix ubuntu and debian you may run into unsolvable situations.

My recommendation would be that you remove all foreign sources (especially security.debian.org) and stick to Ubuntu.

In case you need specific packages that are not available on Ubuntu, but only in other sources you will have to find a way to combine these sources. I do not recommend that, and it may break your system. Do it on your own risk. I do not accept any liability!

Maybe the following will help:

Most probably the current problem with samba (would be installed from security.debian.org) and libpopt0 (installed from ubuntu.com) is triggered by an error in the repository address for the Debian system.
I suppose somewhere in your file /etc/apt/sources.list or in a file in the directory /etc/apt/sources.list.d/ there is a line looking something like
"deb http://http.us.debian.org/debian stable all"
This line has to be changed to
"deb http://http.us.debian.org/debian stable main contrib"
After that change also libpopt0 would be fetched from debian.org in a version (1.16-1) fitting to the debian samba version.

You can edit the sources.list file only with admin rights, i.e.
gksudo gedit /etc/apt/sources.list

After changing the sources.list (or any file in the subdirectory sources.list.d) you have to reload the package index - Either with the 'reload' button in update-manager or synaptic, or with the terminal command "sudo apt-get update".

You have to be aware, that any "sudo apt-get upgrade" execution (or letting update-manager do the updates) after the correction of the sources.list might upgrade all your Ubuntu packages to the current debian version - with unknown consequences! Up to now this was prevented only by the error in the debian source line. Maybe the better idea is to upgrade your 10.04 (lucid) system to the current 12.04 LTS (precise) version. This will provide a version of samba which is even higher than the one that you would get from Debian.

To get rid of the NO_PUBKEY warnings execute the following commands in a terminal:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AED4B06F473041FA
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E9C74FEEA2098A6E

Can you help with this problem?

Provide an answer of your own, or ask Sampara Avesh for more information if necessary.

To post a message you must log in.