• Home »
  • »
  • dpkg: error processing likewise-open (–configure), Join Linux Server To Windows Domain Controller

dpkg: error processing likewise-open (–configure), Join Linux Server To Windows Domain Controller

In the past I have used likewise-open to join Linux servers to a Windows domain controller. There were always at least some issues using likewise-open and even though it was always possible to get it working it was always a pain. Today I started the process and of course ran into an error which is noted below in more detail so I did some research and came across centrify which ended up being much easier and worked without issue. Use the instructions below to install, configure, and use centrify to join a Linux server to a Windows DC.

Errors With likewise-open On Ubuntu Linux:

As noted above I had used likewise-open in the past to join Linux servers to a Windows domain controller and while there were issues I was always able to get it to work in the end. This time I got frustrated and decided to look around for other options because of a package conflict with likewise-open and part of the error output is below. I was having issues even getting likewise-open and likewise-open5 installed on Ubuntu 10.04.

likewise-open dpkg Error On Ubuntu:


  1. dpkg: error processing likewise-open (--configure):

After some searching I came across centrify which offers a paid and a free version so I was a bit skeptical that the free version would do what I needed it to do however in the end it worked perfectly. Use the details below to install centrify on a Ubuntu 10.04 Linux server.

Install Centrify On Ubuntu Linux To Join Ubuntu To Windows Domain Controller:

  1. Download Centrify: Click here to locate the correct centrify agent for your version of Linux. In this example we join an Ubuntu 10.04 64 bit Linux server to a Windows domain controller however the process should be very similar for other versions of Linux. When you download the centrify agent you are required to input some personal details so it is easiest to download the package to the desktop you are working from and then SCP it to the Linux server you want to join to the domain. The centrify agent package downloaded at the time of this article was named centrify-suite-2012.3-deb5-x86_64.tgz.
  2. Unpack Centrify Agent Package: Now unpack the centrify agent package which I recommend first creating a centrify directory to unpack it in since there is no directory structure. Below there is example output showing the centrify agent being unpacked after it is on the Linux server you want to join to a domain.

    1. root@dev:~# mkdir centrify
    2. root@dev:~# mv centrify-suite-2012.3-deb5-x86_64.tgz centrify/
    3. root@dev:~# cd centrify/
    4. root@dev:~/centrify# ls
    5. centrify-suite-2012.3-deb5-x86_64.tgz
    6. root@dev:~/centrify# tar -zxvf centrify-suite-2012.3-deb5-x86_64.tgz
    7. ./adcheck-deb5-x86_64
    8. ./centrify-suite.cfg
    9. ./centrifyda-2.0.2-deb5-x86_64.deb
    10. ./centrifydc-5.0.2-deb5-x86_64.deb
    11. ./centrifydc-install.cfg
    12. ./centrifydc-ldapproxy-5.0.2-deb5-x86_64.deb
    13. ./centrifydc-nis-5.0.2-deb5-x86_64.deb
    14. ./centrifydc-openssh-5.9p1-4.5.4-deb5-x86_64.deb
    15. ./install-express.sh
    16. ./install.sh
    17. ./release-notes-agent-deb5-x86_64.txt
    18. ./release-notes-da-deb5-x86_64.txt
    19. ./release-notes-nis-deb5-x86_64.txt
    20. ./release-notes-openssh-deb5-x86_64.txt
    21. root@dev:~/centrify#
  3. Run Centrify Express Installer: Now from the centrify directory you created run the centrify express installer as shown in the below example output. The installer is started by running “./install-express.sh” from the command line on the Linux server. The information that is required to successfully complete the centrify express installer includes the domain you are going to join such as example.com, a user with privileges to make changes to the domain, that same users password, the name of the Linux server joining the domain such as “dev”, and the hostname of the domain controller itself. All of the other options can simply be the default options. Also note that you must use the domain name of the domain controller and not the IP address. I also ran into issues using users other than Administrator though the issues may have just been on my end but if you run into problems with another user try the Administrator account to rule that out.

    1. root@dev:~/centrify# ./install-express.sh
    3. *****                                                                   *****
    4. *****             WELCOME to the Centrify Express installer!            *****
    5. *****                                                                   *****
    7. Detecting local platform ...
    9. Running ./adcheck-deb5-x86_64 ...
    10. OSCHK    : Verify that this is a supported OS                          : Pass
    11. PATCH    : Linux patch check                                           : Pass
    12. PERL     : Verify perl is present and is a good version                : Pass
    13. SAMBA    : Inspecting Samba installation                               : Pass
    14. SPACECHK : Check if there is enough disk space in /var /usr /tmp       : Pass
    15. HOSTNAME : Verify hostname setting                                     : Pass
    16. NSHOSTS  : Check hosts line in /etc/nsswitch.conf                      : Pass
    17. DNSPROBE : Probe DNS server                               : Pass
    18. DNSCHECK : Analyze basic health of DNS servers                         : Pass
    19. WHATSSH  : Is this an SSH that DirectControl works well with           : Pass
    20. SSH      : SSHD version and configuration                              : Pass
    22. With this script, you can perform the following tasks:
    23.     - Install (update) Centrify Suite Enterprise Edition (License required) [E]
    24.     - Install (update) Centrify Suite Standard Edition (License required) [S]
    25.     - Install (update) Centrify Suite Express Edition [X]
    26.     - Custom install (update) of individual packages [C]
    28. You can type Q at any prompt to quit the installation and exit
    29. the script without making any changes to your environment.
    31. How do you want to proceed? (E|S|X|C|Q) [X]:
    33. Do you want to run adcheck to verify your AD environment? (Q|Y|N) [Y]:
    35. Please enter the Active Directory domain to check: example.com
    36. Join an Active Directory domain? (Q|Y|N) [Y]:
    37.     Enter the Active Directory authorized user [administrator]:
    38.     Enter the password for the Active Directory user:
    39.     Enter the computer name [dev]:
    40.     Enter the container DN [Computers]:
    41.     Enter the name of the domain controller [auto detect]: domain-controller.example.com
    42. Reboot the computer after installation? (Q|Y|N) [Y]:
    44. You chose Centrify Suite Express Edition and entered the following:
    45.     Install CentrifyDC 5.0.2 package: Y
    46.     Install CentrifyDC-nis 5.0.2 package: N
    47.     Install CentrifyDC-openssh 4.5.4 package: Y
    48.     Install CentrifyDC-ldapproxy 5.0.2 package: N
    49.     Install CentrifyDA 2.0.2 package: N
    50.     Run adcheck                      : Y
    51.     Join an Active Directory domain  : Y
    52.     Active Directory domain to join  : example.com
    53.     Active Directory authorized user : administrator
    54.     computer name                    : dev
    55.     container DN                     : Computers
    56.     domain controller name           : domain-controller.example.com
    57.     Reboot computer                  : Y
    59. If this information is correct and you want to proceed, type "Y".
    60. To change any information, type "N" and enter new information.
    61. Do you want to continue (Y) or re-enter information? (Q|Y|N) [Y]:

    Once you click Enter above the install process will begin and should only take a couple of minutes. Once the server reboots it should be joined to the domain.

  4. Test Login To Linux Server With Domain Account: Now login with a domain user to the Linux server. One nice thing about centrify is the fact that you do not have to type domain\user or user@domain as the username as it will recognize simply using the username itself.

That is it! Your Ubuntu Linux server should now be part of the domain and the Centrify Express installer will have configured all of the proper services to start on reboot so until you remove the Linux server from the domain manually it will always boot joined to the Windows Domain.

The Accidental Administrator: Linux Server Step-by-Step Configuration Guide (Paperback)

List Price: $40.00 USD
New From: $29.64 USD In Stock
Used from: $30.31 USD In Stock

Introduction to BlueCoat Web Security: BlueCoat Proxy SG, Caching, Anti-virus, and Reporter (Paperback)

List Price: $55.00 USD
New From: $47.38 USD In Stock
Used from: $47.33 USD In Stock