Unable to install nfs-kernel-server on Ubuntu Server 18.04

My OS is Ubuntu Server 18.04.3 LTS (GNU/Linux 4.4.154-100-rockchip-gf7c3df9923c2 aarch64)
I’ve installed official image from https://wiki.radxa.com/Rockpi4/downloads
Then run:

sudo su
apt-get update
apt-get upgrade
sync
reboot now
apt-get install rockchip-overlay rockchip-fstab
apt-get install rockpi4-dtbo
apt-get install rockpi4b-rk-u-boot-latest
apt-get install linux-base
apt-get install linux-4.4-latest
sync
reboot now

Then install nfs-kernel-server:
apt-get install -y nfs-kernel-server

And get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  nfs-kernel-server
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/82.7 kB of archives.
After this operation, 316 kB of additional disk space will be used.
Selecting previously unselected package nfs-kernel-server.
(Reading database ... 72531 files and directories currently installed.)
Preparing to unpack .../nfs-kernel-server_1%3a1.3.4-2.1ubuntu5.2_arm64.deb ...
Unpacking nfs-kernel-server (1:1.3.4-2.1ubuntu5.2) ...
Setting up nfs-kernel-server (1:1.3.4-2.1ubuntu5.2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service.
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

Jan 05 23:25:05 linux systemd[1]: Dependency failed for NFS server and services.
Jan 05 23:25:05 linux systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for NFS server and services.
Jan 05 23:25:07 linux systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Failed to start nfs-kernel-server, ignoring.
Processing triggers for systemd (237-3ubuntu10.33) ...
root@linux:/home/rock#

Output of journalctl -xe:

-- Subject: Unit proc-fs-nfsd.mount has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit proc-fs-nfsd.mount has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for NFS server and services.
-- Subject: Unit nfs-server.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit nfs-server.service has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for NFSv4 ID-name mapping service.
-- Subject: Unit nfs-idmapd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit nfs-idmapd.service has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for NFS Mount Daemon.
-- Subject: Unit nfs-mountd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit nfs-mountd.service has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Jan 05 23:25:07 linux systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Jan 05 23:25:07 linux systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited status=32
Jan 05 23:25:07 linux systemd[1]: run-rpc_pipefs.mount: Failed with result 'exit-code'.
Jan 05 23:25:07 linux systemd[1]: Failed to mount RPC Pipe File System.
-- Subject: Unit run-rpc_pipefs.mount has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit run-rpc_pipefs.mount has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for RPC security service for NFS server.
-- Subject: Unit rpc-svcgssd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rpc-svcgssd.service has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: rpc-svcgssd.service: Job rpc-svcgssd.service/start failed with result 'dependency'.
Jan 05 23:25:07 linux systemd[1]: Dependency failed for RPC security service for NFS client and server.
-- Subject: Unit rpc-gssd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rpc-gssd.service has failed.
--
-- The result is RESULT.
Jan 05 23:25:07 linux systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Jan 05 23:25:08 linux systemd[1]: Reloading.

I’ve tried to google how to solve these dependency problem but had no success.

Upgrade to Armbian and try again. :grinning:

1 Like

To solve the dependency problem, you need to unminimize OS by executing the command

$ unminimize

That helps install some needed packages.

Note: After flashing the Ubuntu server image to your ROCK Pi, the first thing to do is executing the command, unminimize.

2 Likes