Public bug reported:

I am using Ubuntu 16.04.4 LTS  and package version

systemd:
  Installed: 229-4ubuntu21.10
  Candidate: 229-4ubuntu21.10
  Version table:
 *** 229-4ubuntu21.10 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 
Packages
        100 /var/lib/dpkg/status
     229-4ubuntu4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


When a unit is enabled with 

    systemctl enable <unit file>

and overrides are applied with

    systemctl edit <unit name>

and subsequently the unit is disabled with

    systemctl disable <unit name>

the override file that is created and its directory

    /etc/systemd/system/<unit name>.d/override.conf

is not removed.  Subsequent attempts to enable the same unit will fail
with the misleading and unhelpful error message

    Failed to execute operation: Invalid argument

Removing the override file and directory will fix the problem.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1808251

Title:
  systemctl disable fails to clean up override

Status in linux package in Ubuntu:
  New

Bug description:
  I am using Ubuntu 16.04.4 LTS  and package version

  systemd:
    Installed: 229-4ubuntu21.10
    Candidate: 229-4ubuntu21.10
    Version table:
   *** 229-4ubuntu21.10 500
          500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
          500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 
Packages
          100 /var/lib/dpkg/status
       229-4ubuntu4 500
          500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

  
  When a unit is enabled with 

      systemctl enable <unit file>

  and overrides are applied with

      systemctl edit <unit name>

  and subsequently the unit is disabled with

      systemctl disable <unit name>

  the override file that is created and its directory

      /etc/systemd/system/<unit name>.d/override.conf

  is not removed.  Subsequent attempts to enable the same unit will fail
  with the misleading and unhelpful error message

      Failed to execute operation: Invalid argument

  Removing the override file and directory will fix the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1808251/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to