Public bug reported: When installing the redis-server package from bionic universe the systemd file is masked and cannot be enabled, starting and stopping the service works.
root@ubuntu-bionic:~# apt-cache policy redis-server redis-server: Installed: (none) Candidate: 5:4.0.9-1 Version table: 5:4.0.9-1 500 500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages root@ubuntu-bionic:~# apt install redis-server -y Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: redis-server 0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded. Need to get 0 B/35.4 kB of archives. After this operation, 172 kB of additional disk space will be used. Selecting previously unselected package redis-server. (Reading database ... 133417 files and directories currently installed.) Preparing to unpack .../redis-server_5%3a4.0.9-1_amd64.deb ... Unpacking redis-server (5:4.0.9-1) ... Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for systemd (237-3ubuntu10) ... Processing triggers for man-db (2.8.3-2) ... Setting up redis-server (5:4.0.9-1) ... invoke-rc.d: policy-rc.d query returned "behaviour undefined", invoke-rc.d: assuming "start" is allowed. Failed to preset unit: Unit file /lib/systemd/system/redis-server.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on redis-server.service: No such file or directory Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for systemd (237-3ubuntu10) ... root@ubuntu-bionic:~# systemctl enable redis-server Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable redis-server Failed to enable unit: Unit file /lib/systemd/system/redis-server.service is masked. root@ubuntu-bionic:~# systemctl unmask redis-server root@ubuntu-bionic:~# systemctl enable redis-server.service Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable redis-server Failed to enable unit: Unit file /lib/systemd/system/redis-server.service is masked. ** Affects: redis (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1782097 Title: redis-server systemd unit file is masked and cannot be enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/redis/+bug/1782097/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs