Compile and install nemo file manager on nemo in Ubuntu Xenial.

Oneliner:

wget -q -O - 'https://bitbucket.org/!api/2.0/snippets/droidzone/EEnMEe/374522773b30949837163004134baf476f2e52d0/files/nemoinstaller' | bash

Step by step instructions to compile and install nemo file roller and its plugins:
Just run this:

sudo apt build-dep nemo
sudo apt install gnome-pkg-tools libxt-dev python3-polib cinnamon-l10n
mkdir ~/nemosrc
cd ~/nemosrc
git clone https://github.com/linuxmint/nemo.git
cd nemo
git pull
dpkg-buildpackage
cd ..
git clone https://github.com/linuxmint/nemo-extensions
cd nemo-extensions
git pull
./buildall
sudo dpkg -i ../*deb *deb
sudo apt install -f

Create /etc/apt/sources.list.d/mint.list:

deb http://packages.linuxmint.com/ rosa main

To install python-nemo:

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 3EE67F3D0FF405B2
sudo apt update
sudo apt-get -f install
sudo dpkg -i *deb

Closely watch for output. Correct output looks like this:

(Reading database ... 194677 files and directories currently installed.)
Preparing to unpack nemo-audio-tab_3.2.1_all.deb ...
Unpacking nemo-audio-tab (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-compare_3.2.1_all.deb ...
Unpacking nemo-compare (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-emblems_3.2.3_all.deb ...
Unpacking nemo-emblems (3.2.3) over (3.2.3) ...
Preparing to unpack nemo-fileroller_3.2.1_amd64.deb ...
Unpacking nemo-fileroller (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-image-converter_3.2.0_amd64.deb ...
Unpacking nemo-image-converter (3.2.0) over (3.2.0) ...
Preparing to unpack nemo-media-columns_3.2.1_all.deb ...
Unpacking nemo-media-columns (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-pastebin_3.2.1_all.deb ...
Unpacking nemo-pastebin (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-rabbitvcs_3.2.1_all.deb ...
Unpacking nemo-rabbitvcs (3.2.1) over (3.2.1) ...
Preparing to unpack nemo-share_3.2.0_amd64.deb ...
Unpacking nemo-share (3.2.0) over (3.2.0) ...
Preparing to unpack nemo-terminal_3.2.1_amd64.deb ...
Unpacking nemo-terminal (3.2.1) over (3.2.1) ...
Setting up nemo-audio-tab (3.2.1) ...
Setting up nemo-compare (3.2.1) ...
Setting up nemo-emblems (3.2.3) ...
Setting up nemo-fileroller (3.2.1) ...
Setting up nemo-image-converter (3.2.0) ...
Setting up nemo-media-columns (3.2.1) ...
Setting up nemo-pastebin (3.2.1) ...
Setting up nemo-rabbitvcs (3.2.1) ...
Setting up nemo-share (3.2.0) ...
Setting up nemo-terminal (3.2.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...

To set nemo as default file manager:

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

You can check the default with:

xdg-mime query default inode/directory

It will say failed to sign:

dpkg-buildpackage: error: failed to sign .dsc and .changes file

but that’s not an issue.
The .deb packages will be built to ../

Now create a shortcut in the menu for Nemo:

cp data/nemo.desktop ~/.local/share/applications/

Now you can launch it by typing “Files” in the menu. If you want to change the name, edit ~/.local/share/applications/nemo.desktop.

[Desktop Entry]
Name=Nemo
Name[en_GB]=Files
Comment=Access and organize files
Exec=nemo %U
Icon=folder
Terminal=false
Type=Application
StartupNotify=false
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nemo
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.2