Upgrading Samba4 on Ubuntu 12.04 using GIT

Filed Under (Samba 4, Ubuntu, Windows Networking) by Just An Admin on 12-02-2013

In a previous post we described into detail how to install Samba4 4.1 on Ubuntu 12.04 LTS. We are using this installation as a bases for this article on how to upgrade to the most recent version of Samba4 using the GIT repository.

Note: before you start any upgrade, please back up your installation and read the Release Notes (https://wiki.samba.org/index.php/Samba4#Previous_Releases) before you continue. This post only applies to installations that have been performed using the GIT repository.



First we need to get the latest version:

[cc width=”600″ lang=”bash”]

cd /usr/src/samba4/

sudo git pull

[/cc]

If you are already on the latest version, you will see:

Already up-to-date.

If there is a more recent version, GIT will automatically pull the most recent version from the repository:

remote: Counting objects: 2819, done.
remote: Compressing objects: 100% (928/928), done.
remote: Total 1985 (delta 1581), reused 1342 (delta 1051)
Receiving objects: 100% (1985/1985), 629.91 KiB, done.
Resolving deltas: 100% (1581/1581), completed with 244 local objects.
From git://git.samba.org/samba
   3d1abb9..efd60ae  master     -> origin/master
……
……

After the recent version is downloaded, we need to install it:

[cc width=”600″ lang=”bash”]

cd /usr/src/samba4/

sudo ./configure –enable-debug –enable-selftest

sudo make

sudo make install

[/cc]

After the upgrade has finished, i always reboot the server to be sure all is fresh and new:

[cc width=”600″ lang=”bash”]

sudo reboot now

[/cc]

We finished installing the most recent version of Samba4 from the GIT repository.

 

Update: April 5th, 2013

If you have used GIT upgrade before and you run into a Python error 17 (oserror: [Errno 17] File exists), try the following:

[cc width=”600″ lang=”bash”]

cd /usr/src/samba4/

git clean -xdf
[/cc]

This command will clear your working directory. After you have purged all the local GIT data from your working directory, please try the upgrade procedure again.

Incoming search terms:

Comments:

(1) Comment for the first post!

Post a comment