Update:
As of 14.10, the util-linux
provides the nsenter
command. The solution below has been tested with 14.04.
The Debian/Ubuntu version is as you said quite old now, even in Trusty.
There's an opened bug and so far no progress unfortunately.
You could try to build it from source:
wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz -qO - | tar -xz -C ~/Downloads
Make sure to install the following build dependencies:
sudo apt-get install libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool
And just run in the source directory (~/Downloads/util-linux-2.24.1
):
./autogen.sh
./configure && make
IMPORTANT
Do NOT sudo make install
this package on Ubuntu 14.04 LTS until it is officially ready for use, as it definitely demands an unavailable version of libmount
, breaking your boot. (If you do this, reinstall the mount
package before rebooting your machine, if you can.)
Credits: Trevor Alexander for his comment.
Finally you'll get:
sylvain@sylvain-ThinkPad-T430s:~/Downloads/util-linux-2.24.1$ ./nsenter -V
nsenter from util-linux 2.24.1
Note: as nsenter is not available in the ubuntu util-linux version, you can install just this file in /usr/bin (or sbin):
sudo cp ./nsenter /usr/bin
nsenter
is available in 14.10 (See the package list forutils-linux
). Hence the 14.04 tag to this question.