Bug 817033

Summary: Obscure error: "Warning: unit files do not carry install information. No operation executed."
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: johannbg, metherid, mschmidt, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 19:25:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2012-04-27 13:32:32 UTC
Description of problem:

Running systemctl enable <various things> prints the
incredibly obscure and non-useful message:

Warning: unit files do not carry install information. No operation executed.

It should describe what it means and how the user is
supposed to correct the error.

Version-Release number of selected component (if applicable):

systemd-44-4.fc17.armv7hl

How reproducible:

100%

Steps to Reproduce:
1. systemctl enable rc-local.service

Additional info:

Many people do not understand this message:
https://encrypted.google.com/search?q=Warning%3A+unit+files+do+not+carry+install+information.+No+operation+executed.

Comment 1 Michal Schmidt 2012-04-27 14:12:49 UTC
(In reply to comment #0)
> Description of problem:
> 
> Running systemctl enable <various things> prints the
> incredibly obscure and non-useful message:
> 
> Warning: unit files do not carry install information. No operation executed.

How about this?:

  The unit file has no [Install] section. It is not meant to be enabled using systemctl.

(As a bonus we could say it in plural only if more than one unit was given on the command line.)

Comment 2 Richard W.M. Jones 2012-04-27 14:19:14 UTC
Definitely an improvement.

Comment 3 Michal Schmidt 2012-06-14 21:41:42 UTC
Fixed upstream:
http://cgit.freedesktop.org/systemd/systemd/commit
/?id=34cdc274edd870ffc27d21cf82655a0114948748
(But without the singular/plural distinction. That can wait for proper i18n.)

Comment 4 Fedora Update System 2012-06-14 23:14:42 UTC
systemd-44-14.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/systemd-44-14.fc17

Comment 5 Fedora Update System 2012-06-15 12:28:46 UTC
Package systemd-44-14.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-44-14.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9471/systemd-44-14.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-06-20 19:25:55 UTC
systemd-44-14.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.