LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian-Stretch as Freeipa-Client (https://www.linuxquestions.org/questions/debian-26/debian-stretch-as-freeipa-client-4175614884/)

jvermeulen 10-02-2017 08:40 AM

Debian-Stretch as Freeipa-Client
 
Hello All,

with the arrival of Debian Stretch, I'm taking my first steps in the Debian Hemisphere.
After working on other systems with Mate Desktop, I think that Stretch-with-Mate is impressive.

But I'm stuck at connecting to Freeipa, using freeipa-client.
I read it can be done in Jessie using Numeezi repo, and that it's in Sid-unstable.
But is there no way it can be done in Stretch?

Many thanks, J.

farslayer 10-05-2017 08:57 PM

you could try installing from source seems pretty straight forward from the build.txt file inside the tarball.
Code:

$ autoreconf -i
$ ./configure
$ make
$ make install

or you can look into pinning in debian which would allow you to install packages from sid in stretch.
https://wiki.debian.org/AptPreferences
Make sure you thoroughly read the documentation on the preferences file and pinning before considering this as an option.

ondoho 10-06-2017 02:04 AM

Quote:

Originally Posted by jvermeulen (Post 5765377)
But I'm stuck at connecting to Freeipa, using freeipa-client.
I read it can be done in Jessie using Numeezi repo, and that it's in Sid-unstable.

this is unclear.
how are you stuck?
you don't know how to install it?
or you installed it, and it doesn't run?
for both cases: commands issued, errors /messages received?

ps:
beware not to add any ubuntu stuff to a debian system!

jvermeulen 10-11-2017 10:22 AM

Hello All,

thanks for helping me out. My apologies for not replying sooner.

* I will nog install any Ubuntu stuff
* the pinning looks interesting, thanks for that tip.

* I tried the tarball, all though I'm thinking of installing some 50+ laptops....via apt-get would be easier.

I got as far as:

johan@debian:/tmp/freeipa/freeipa-4.6.1$ autoreconf -i
-bash: autoreconf: opdracht niet gevonden
johan@debian:/tmp/freeipa/freeipa-4.6.1$

I'll try further with the tarball, I feel I should be able to do this....

greetings, Johan

farslayer 10-11-2017 06:46 PM

opdracht niet gevonden = assignment not found (or so says google translate)

Well that's not a very clear or helpful message...

Might be an issue with your build environment, Is the package autoconf installed ?

sudo apt-get install build-essential autoconf

jlinkels 10-11-2017 07:38 PM

Quote:

Originally Posted by farslayer (Post 5768952)
opdracht niet gevonden = assignment not found (or so says google translate)

It is command not found.

jlinkels 10-11-2017 07:51 PM

Compiling on Debian is not hard, there are very good tutorials available. Make sure you use a Debian tutorial and not a generic tutorial. You must compile the "Debian way"
https://wiki.debian.org/BuildingTutorial

Once you built the package, you have a .deb file. You can copy this to any machine and run
Code:

dpkg -i yourpackage.deb
If it fails due to dependency issues, run
Code:

apt-get install -f
and they will be resolved if possible with your current version.

Alternatively, you can open /etc/apt/sources.list and add this line:
Code:

deb http://httpredir.debian.org/debian/ sid main
Run
Code:

apt-get update
apt-get install freeipa-client

If you don't see tons of additional packages being pulled in, you are probably fine and can proceed with the install. If too many packages are installed from sid you have a mixed system. It might be difficult to install future packages from Stable.

After you are done installing, remove the line mentioning "sid" or comment it from sources.list. I know it is unsmart but I am too lazy to explain pinning.

Note that all these commands above are run as root or sudo. Do not compile or build as root.

jlinkels

descendant_command 10-12-2017 03:19 AM

Quote:

Originally Posted by jlinkels (Post 5768967)
Compiling on Debian is not hard, there are very good tutorials available. Make sure you use a Debian tutorial and not a generic tutorial. You must compile the "Debian way"
https://wiki.debian.org/BuildingTutorial

Also see
http://forums.debian.net/viewtopic.php?f=16&t=38976
and
https://wiki.debian.org/SimpleBackportCreation

Quote:

Alternatively, you can open /etc/apt/sources.list and add this line:
Code:

deb http://httpredir.debian.org/debian/ sid main
Run
Code:

apt-get update
apt-get install freeipa-client

If you don't see tons of additional packages being pulled in, you are probably fine and can proceed with the install. If too many packages are installed from sid you have a mixed system. It might be difficult to install future packages from Stable.
While you can sometimes get away with it with some packages, this approach is generally a bad idea.

jvermeulen 10-14-2017 03:36 AM

Hello All,

thanks for the useful replies.
Following this guide
https://wiki.debian.org/BuildingTutorial
I have been able to build freeipa .deb packages.
I will test these asap.

greetings, J.

jvermeulen 11-08-2017 12:24 PM

Hello,

I have to admit that on a newly installed Debian Stretch, I cannot get my self-compiled freeipa-client installed.
After running
dpkg -i freeipa-client_4.4.4-1+b1_amd64.deb and
apt-get install -f

a bunch of packages get installed but not freeipa-client.

root@kvanheste:~# apt-get install -f
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
Vereisten worden gecorrigeerd... Klaar
De volgende extra pakketten zullen geïnstalleerd worden:
curl krb5-config krb5-user libcurl3 libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 libsasl2-modules-gssapi-mit
Voorgestelde pakketten:
krb5-doc
De volgende pakketten zullen VERWIJDERD worden:
freeipa-client
De volgende NIEUWE pakketten zullen geïnstalleerd worden:
curl krb5-config krb5-user libcurl3 libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 libsasl2-modules-gssapi-mit
0 opgewaardeerd, 9 nieuw geïnstalleerd, 1 te verwijderen en 0 niet opgewaardeerd.
1 niet volledig geïnstalleerd of verwijderd.
Er moeten 1.099 kB aan archieven opgehaald worden.
Na deze bewerking zal er 2.110 kB extra schijfruimte gebruikt worden.
Wilt u doorgaan? [J/n] J

So I will test this with the help of Debian Sid.

Greetings, J.

jlinkels 11-08-2017 02:50 PM

It is sad. Apparently apt sees an incompatibility between freeipa and other installed packages, and it does not tell you which one.

What happened after you ran:
Code:

dpkg -i freeipa-client_4.4.4-1+b1_amd64.deb
Did it fail? And how did it fail?

If it did not fail you do not need to run
Code:

apt-get install -f
Although I feel that the next time you install something, apt will attempt to remove freeipa again.

If you do the sid thing, be aware that a part of your installation will run Sid after that. That is usually fine, but don't do it on production machines. It can break your installation. I know it was my own recommendation, and I do such things myself, but others warn for it.

jlinkels

ondoho 11-09-2017 01:17 AM

on a side note, please prepend 'LC_ALL=C' to every command whose output you paste here.
it doesn't affect the command itself, just the language displayed.

also, from your previous post, you show us the output of 'apt install -f', but not of the previous dpkg command???

jvermeulen 11-09-2017 04:20 AM

Hello All,

the output would be:

root@debian:/tmp# LC_ALL=C dpkg -i freeipa-client_4.4.4-1+b1_amd64.deb
(Reading database ... 143613 files and directories currently installed.)
Preparing to unpack freeipa-client_4.4.4-1+b1_amd64.deb ...
Unpacking freeipa-client (4.4.4-1+b1) over (4.4.4-1+b1) ...
dpkg: dependency problems prevent configuration of freeipa-client:
freeipa-client depends on bind9utils; however:
Package bind9utils is not installed.
freeipa-client depends on certmonger (>= 0.78.6-3); however:
Package certmonger is not installed.
freeipa-client depends on curl; however:
Package curl is not installed.
freeipa-client depends on freeipa-common (= 4.4.4-1); however:
Package freeipa-common is not installed.
freeipa-client depends on krb5-user; however:
Package krb5-user is not installed.
freeipa-client depends on libcurl3 (>= 7.22.0); however:
Package libcurl3 is not installed.
freeipa-client depends on libnss3-tools; however:
Package libnss3-tools is not installed.
freeipa-client depends on libnss-sss; however:
Package libnss-sss is not installed.
freeipa-client depends on libpam-sss; however:
Package libpam-sss is not installed.
freeipa-client depends on libsasl2-modules-gssapi-mit; however:
Package libsasl2-modules-gssapi-mit is not installed.
freeipa-client depends on libsss-sudo; however:
Package libsss-sudo is not installed.
freeipa-client depends on libxmlrpc-core-c3 (>= 1.16.33-3.1ubuntu5); however:
Package libxmlrpc-core-c3 is not installed.
freeipa-client depends on oddjob-mkhomedir; however:
Package oddjob-mkhomedir is not installed.
freeipa-client depends on python-dnspython; however:
Package python-dnspython is not installed.
freeipa-client depends on python-ipaclient (= 4.4.4-1); however:
Package python-ipaclient is not installed.
freeipa-client depends on python-gssapi; however:
Package python-gssapi is not installed.
freeipa-client depends on python-ldap; however:
Package python-ldap is not installed.
freeipa-client depends on sssd (>= 1.14.0); however:
Package sssd is not installed.
freeipa-client depends on libbasicobjects0 (>= 0.4.0); however:
Package libbasicobjects0 is not installed.
freeipa-client depends on libcollection4 (>= 0.4.0); however:
Package libcollection4 is not installed.
freeipa-client depends on libcurl3-nss (>= 7.23.1); however:
Package libcurl3-nss is not installed.
freeipa-client depends on libini-config5 (>= 0.4.0); however:
Package libini-config5 is not installed.
freeipa-client depends on libref-array1 (>= 0.4.0); however:
Package libref-array1 is not installed.

dpkg: error processing package freeipa-client (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
freeipa-client

greetings, J.

jvermeulen 11-09-2017 05:05 AM

Hello All,

if I may ask an additional question:
now that I'm testing this on Sid, should I send other questions to a specific Debian group?+
When running

root@kvanheste:~# LC_ALL=C apt-cache show freeipa-client

I see mention of freeipa-devel list.

Package: freeipa-client
Source: freeipa
Version: 4.4.4-3
Installed-Size: 394
Maintainer: Debian FreeIPA Team <pkg-freeipa-devel@lists.alioth.debian.org>

Greetings, J.

jlinkels 11-09-2017 08:44 AM

Just to get it straight: first you compiled freeipa on your Stretch system. You tried to run dpkg -i on freeipa.deb. But that failed. The output of dpkg is not posted here.

Then (your last post) you say that you run it on Sid. As I read it, you ran the dpkg -i on Sid and that produced all the dependency errors.

It both of my statements are true, I take it you are now trying to install freeipa on Sid. In that case it should be much easier to simply run
Code:

apt-get install freeipa-client
and all dependencies are solved. Can you clearly describe in your next post in which system (Sid or Stretch) you issued commands, and what repositories are mentioned in /etc/apt/sources.list en and /etc/apt/sources.d. I assume you did not forget to run apt-get update before trying to run apt.

If you are running apt-get install freeipa client on a Sid system there should be no reason that it cannot pull in dependencies. Apt-get does pull in dependencies, dpkg does not.

If there is a bug in the package (incorrect dependencies or so) then it suffices to report a Debian bug. No special process for Sid packages. The maintainer will get and see the bug report. But you should make sure it is a bug and not a system configuration error.

jlinkels


All times are GMT -5. The time now is 03:58 PM.