, having reached step 2, install passenger, I get the above error. I'd appreciate some advice about how to troubleshoot this. I've restarted the terminal session and had no joy. I get a similar error on apache2ctl. If you can share any ideas, thank you.
$ sudo apt-get install -y libapache2-mod-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
passenger passenger-dev passenger-doc
Suggested packages:
www-browser
The following NEW packages will be installed:
passenger-dev passenger-doc
The following packages will be upgraded:
libapache2-mod-passenger passenger
2 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 5,834 kB of archives.
After this operation, 34.7 MB of additional disk space will be used.
Fetched 5,834 kB in 1s (4,273 kB/s)
(Reading database ... 66806 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-passenger_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking libapache2-mod-passenger (1:5.1.1-1~xenial1) over (5.0.27-2) ...
Preparing to unpack .../passenger_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking passenger (1:5.1.1-1~xenial1) over (5.0.27-2) ...
Selecting previously unselected package passenger-dev.
Preparing to unpack .../passenger-dev_1%3a5.1.1-1~xenial1_amd64.deb ...
Unpacking passenger-dev (1:5.1.1-1~xenial1) ...
Selecting previously unselected package passenger-doc.
Preparing to unpack .../passenger-doc_1%3a5.1.1-1~xenial1_all.deb ...
Unpacking passenger-doc (1:5.1.1-1~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up passenger (1:5.1.1-1~xenial1) ...
Setting up libapache2-mod-passenger (1:5.1.1-1~xenial1) ...
Installing new version of config file /etc/apache2/mods-available/passenger.conf ...
Installing new version of config file /etc/apache2/mods-available/passenger.load ...
Setting up passenger-dev (1:5.1.1-1~xenial1) ...
Setting up passenger-doc (1:5.1.1-1~xenial1) ...
.....
$ sudo apt-get upgrade libapache2-mod-passenger
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-passenger is already the newest version (1:5.1.1-1~xenial1).
Calculating upgrade... Done
The following packages will be upgraded:
python3-distupgrade snap-confine snapd ubuntu-core-launcher ubuntu-release-upgrader-core update-notifier-common
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,460 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Fetched 8,460 kB in 0s (27.5 MB/s)
(Reading database ... 66964 files and directories currently installed.)
Preparing to unpack .../snap-confine_2.20.1ubuntu1_amd64.deb ...
Unpacking snap-confine (2.20.1ubuntu1) over (1.0.43-0ubuntu1~16.04.1) ...
Preparing to unpack .../ubuntu-core-launcher_2.20.1ubuntu1_amd64.deb ...
Unpacking ubuntu-core-launcher (2.20.1ubuntu1) over (1.0.43-0ubuntu1~16.04.1) ...
Preparing to unpack .../update-notifier-common_3.168.3_all.deb ...
Unpacking update-notifier-common (3.168.3) over (3.168.2) ...
Preparing to unpack .../ubuntu-release-upgrader-core_1%3a16.04.20_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:16.04.20) over (1:16.04.19) ...
Preparing to unpack .../python3-distupgrade_1%3a16.04.20_all.deb ...
Unpacking python3-distupgrade (1:16.04.20) over (1:16.04.19) ...
Preparing to unpack .../snapd_2.20.1ubuntu1_amd64.deb ...
Warning: Stopping snapd.service, but it can still be activated by:
snapd.socket
Unpacking snapd (2.20.1ubuntu1) over (2.17.1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up snap-confine (2.20.1ubuntu1) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine ...
Setting up ubuntu-core-launcher (2.20.1ubuntu1) ...
Setting up update-notifier-common (3.168.3) ...
Setting up python3-distupgrade (1:16.04.20) ...
Setting up ubuntu-release-upgrader-core (1:16.04.20) ...
Setting up snapd (2.20.1ubuntu1) ...
Installing new version of config file /etc/X11/Xsession.d/65snappy ...
......
ubuntu@srv-ow00i:~$ sudo a2enmod passenger
sudo: a2enmod: command not found