This appears to be a regression in systemd. I extracted the unit file we're trying to link and manually linked it through systemctl and it succeeded with 222-2ubuntu1, but failed with 223-1ubuntu1:
root@cherylj-wily4:~$ sudo systemctl link /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service
Created symlink from /etc/systemd/system/juju-db-ubuntu-local.service to /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service.
ubuntu@cherylj-wily4:~$ sudo systemctl link /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service
Failed to execute operation: Unit name /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service is not valid.
This appears to be a regression in systemd. I extracted the unit file we're trying to link and manually linked it through systemctl and it succeeded with 222-2ubuntu1, but failed with 223-1ubuntu1:
ubuntu@ cherylj- wily4:~ $ apt-cache policy systemd nova.clouds. archive. ubuntu. com/ubuntu/ wily/main amd64 Packages dpkg/status
systemd:
Installed: 222-2ubuntu1
Candidate: 223-1ubuntu1
Version table:
223-1ubuntu1 0
500 http://
*** 222-2ubuntu1 0
100 /var/lib/
root@cherylj- wily4:~ $ sudo systemctl link /var/lib/ juju/init/ juju-db- ubuntu- local/juju- db-ubuntu- local.service system/ juju-db- ubuntu- local.service to /var/lib/ juju/init/ juju-db- ubuntu- local/juju- db-ubuntu- local.service.
Created symlink from /etc/systemd/
ubuntu@ cherylj- wily4:~ $ sudo systemctl disable /var/lib/ juju/init/ juju-db- ubuntu- local/juju- db-ubuntu- local.service system/ juju-db- ubuntu- local.service.
Removed symlink /etc/systemd/
ubuntu@ cherylj- wily4:~ $ sudo apt-get upgrade
...
ubuntu@ cherylj- wily4:~ $ apt-cache policy systemd nova.clouds. archive. ubuntu. com/ubuntu/ wily/main amd64 Packages dpkg/status
systemd:
Installed: 223-1ubuntu1
Candidate: 223-1ubuntu1
Version table:
*** 223-1ubuntu1 0
500 http://
100 /var/lib/
ubuntu@ cherylj- wily4:~ $ sudo systemctl link /var/lib/ juju/init/ juju-db- ubuntu- local/juju- db-ubuntu- local.service juju/init/ juju-db- ubuntu- local/juju- db-ubuntu- local.service is not valid.
Failed to execute operation: Unit name /var/lib/