LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2008, 12:16 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Debian - can't install samba


Hi,
I want to install samba. But some of the packages that it depends on need perlapi-5.8.7 to be installed which is a virtual package. But I can't install perlapi-5.8.7 . How can i solve this?

Code:
# aptitude install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
  libdigest-md4-perl libldap-2.4-2 libnet-ssleay-perl libunicode-map-perl libunicode-map8-perl libunicode-string-perl
The following NEW packages will be installed:
  libconvert-asn1-perl{a} libcrypt-smbhash-perl{a} libio-socket-ssl-perl{a} libjcode-pm-perl{a} libldap2{a} libnet-ldap-perl{a}
  libunicode-maputf8-perl{a} samba samba-common{a} smbldap-tools{a}
0 packages upgraded, 15 newly installed, 0 to remove and 24 not upgraded.
Need to get 7487kB of archives. After unpacking 19.7MB will be used.
The following packages have unmet dependencies:
  libnet-ssleay-perl: Depends: perlapi-5.8.7 which is a virtual package.
  libdigest-md4-perl: Depends: perlapi-5.8.7 which is a virtual package.
  libunicode-map-perl: Depends: perlapi-5.8.8 which is a virtual package.
  libunicode-string-perl: Depends: perlapi-5.8.7 which is a virtual package.
  libldap-2.4-2: Conflicts: libldap2 but 2.1.30-13.3 is to be installed.
  libunicode-map8-perl: Depends: perlapi-5.8.8 which is a virtual package.
The following actions will resolve these dependencies:

Remove the following packages:
libldap-2.4-2
libpq5
libsmbclient
php5-pgsql

Keep the following packages at their current version:
libcrypt-smbhash-perl [Not Installed]
libdigest-md4-perl [Not Installed]
libio-socket-ssl-perl [Not Installed]
libnet-ssleay-perl [Not Installed]
libunicode-map-perl [Not Installed]
libunicode-map8-perl [Not Installed]
libunicode-maputf8-perl [Not Installed]
libunicode-string-perl [Not Installed]
smbldap-tools [Not Installed]

Downgrade the following packages:
gnupg [1.4.6-2.2 (now) -> 1.4.6-2 (stable)]
libaprutil1 [1.2.12+dfsg-3 (now) -> 1.2.7+dfsg-2 (stable)]

Leave the following dependencies unresolved:
samba recommends smbldap-tools
Score is 1271

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
Code:
# aptitude install perlapi-5.8.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
"perlapi-5.8.7" exists in the package database, but it is not a
real package and no package provides it.
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
 
Old 11-10-2008, 01:01 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
It sounds like you've been playing around with mixed sources. Can you post your /etc/apt/sources.list file here?

Also, is this box an LDAP server for your network? Samba itself I don't think depends on perlapi...

Last edited by pljvaldez; 11-10-2008 at 01:02 PM.
 
Old 11-10-2008, 01:32 PM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
I want to run a samba server in this machine.
I am not sure what happenned before because the administrator was another person. But I found /etc/apt/sources.list mixed with stable and etch entries. Now it is all etch.

/etc/apt/sources.list:
deb ftp://ftp.br.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.br.debian.org/debian etch main contrib non-free

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ etch/updates main contrib


Certainly someone was playing around with mixed sources...
 
Old 11-10-2008, 01:45 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I would say that if you don't need LDAP, I'd try letting it do it's thing.

Or try installing samba without recommended packages, aptitude install --without-recommends samba.
 
Old 11-10-2008, 01:56 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by brgsousa View Post
I want to run a samba server in this machine.
I am not sure what happenned before because the administrator was another person. But I found /etc/apt/sources.list mixed with stable and etch entries. Now it is all etch.
So is it time to do the update/upgrade dance before going back to your "real" problem?
 
Old 11-10-2008, 02:04 PM   #6
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Code:
# aptitude install --without-recommends samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
  libldap-2.4-2
The following NEW packages will be installed:
  libldap2{a} samba samba-common{a}
The following packages are RECOMMENDED but will NOT be installed:
  smbldap-tools
0 packages upgraded, 3 newly installed, 0 to remove and 24 not upgraded.
Need to get 5794kB of archives. After unpacking 14.0MB will be used.
The following packages have unmet dependencies:
  libldap-2.4-2: Conflicts: libldap2 but 2.1.30-13.3 is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
libldap-2.4-2
libpq5
libsmbclient
php5-pgsql

Downgrade the following packages:
gnupg [1.4.6-2.2 (now) -> 1.4.6-2 (stable)]
libaprutil1 [1.2.12+dfsg-3 (now) -> 1.2.7+dfsg-2 (stable)]

Score is 1386

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
 
Old 11-10-2008, 02:42 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Is this a production machine? If not, I'd be tempted to let it try the solution (removing 4 packages and then downgrading 2 others). Or first try aptitude update && aptitude dist-upgrade.

The first package libldap (btw, version 2.4-2 is in lenny, not Etch, so your buddy must have also installed some of this stuff from testing) has to do with directory services, the 2nd is a PostgresSQL library, the 3rd has to do with samba and will probably get replaced anyway, the 4th allows direct interaction from PHP scripts to Postgres, gnupg is key signing (encryption), and libaprutil1 is the apache portable runtime utility library.

So if any of those look important to your machine, you may try handling them one by one. Otherwise, I'd just go for it (but again, I'm not responsible for anything more than my home network)...

Last edited by pljvaldez; 11-10-2008 at 02:45 PM.
 
Old 11-13-2008, 03:09 PM   #8
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Lots and lots of packages were from lenny. This was causing lots of dependencies problems. So i changed /etc/apt/sources;list for lenny. Now everythnig is fine.
Thanks for the help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Samba 3 PDC on debian? Gerrit Jan Linux - Networking 2 01-12-2007 02:14 AM
Samba in Debian swmok Debian 4 06-17-2006 02:44 PM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration