E: Broken error occurs when trying to install Samba
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
|
#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
|
#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
|
#3 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
|
#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
|
#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
|
#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://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Get:2 http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Get:3 http://
Ign http://
Ign http://
Hit http://
Get:4 http://
Get:5 http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Ign http://
Get:6 http://
Get:7 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:8 http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:9 http://
Ign http://
Get:10 http://
Get:11 http://
Ign http://
Hit http://
Hit http://
Get:12 http://
Ign http://
Get:13 http://
Ign http://
Hit http://
Get:14 http://
Hit http://
Ign http://
Get:15 http://
Ign http://
Get:16 http://
Err http://
404 Not Found [IP: 199.6.12.70 80]
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Ign http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Fetched 13.1MB in 51s (254kB/s)
W: GPG error: http://
W: GPG error: http://
W: GPG error: http://
W: Failed to fetch http://
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.
openoffice.
openoffice.
openoffice.
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~
Version table:
2:
500 http://
2:
500 http://
500 http://
2:
500 http://
libpopt0:
Installed: 1.15-1
Candidate: 1.15-1
Version table:
*** 1.15-1 0
500 http://
100 /var/lib/
I have pastedthe output.
Revision history for this message
|
#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.
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.
I suppose somewhere in your file /etc/apt/
"deb http://
This line has to be changed to
"deb http://
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/
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.
sudo apt-key adv --keyserver keyserver.
Can you help with this problem?
Provide an answer of your own, or ask Sampara Avesh for more information if necessary.