systemctl start <service> auto-completion shows error

Bug #1638301 reported by Danilo Sampaio
94
This bug affects 23 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When i try to auto-complete the "systemctl start <service>" the following error message is shown in bash:

Unit org.freedesktop.network1.busname could not be found.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: systemd 231-9git1
ProcVersionSignature: Ubuntu 4.8.0-26.28-generic 4.8.0
Uname: Linux 4.8.0-26-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 1 10:42:37 2016
InstallationDate: Installed on 2015-06-20 (499 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Dell Inc. Dell System Vostro 3450
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-26-generic root=UUID=7468e7be-a2e1-48dd-ba72-244c33698364 ro cgroup_enable=memory swapaccount=1 quiet splash vt.handoff=7
SourcePackage: systemd
UpgradeStatus: Upgraded to yakkety on 2016-10-19 (12 days ago)
dmi.bios.date: 07/22/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 0GG0VM
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd07/22/2011:svnDellInc.:pnDellSystemVostro3450:pvr:rvnDellInc.:rn0GG0VM:rvrA01:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Dell System Vostro 3450
dmi.sys.vendor: Dell Inc.

Revision history for this message
Danilo Sampaio (danilo-sampaio) wrote :
summary: - systemctl start command shows a error message on "auto-complation"
+ systemctl start <service> auto-completion it's not working
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: systemctl start <service> auto-completion it's not working

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Please clarify -- I do get the warning about network1.busname, but completion is still working:

$ systemctl start <TAB><TAB>Unit org.freedesktop.network1.busname could not be found.

Display all 131 possibilities? (y or n)
alsa-state.service pppd-dns.service

Changed in systemd (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Low
Revision history for this message
Danilo Sampaio (danilo-sampaio) wrote :

@pitti, exactly!
You've described it better than me :)

Martin Pitt (pitti)
summary: - systemctl start <service> auto-completion it's not working
+ systemctl start <service> auto-completion shows error
Changed in systemd (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

This got fixed in version 232, now in zesty.

Changed in systemd (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rigo (rgr) wrote :

Where I can I find a workaround for current systems (16.04,16.10)?

Revision history for this message
jowfdoijdfdwfwdf (dsfkljo322332) wrote :

This affects current stable systemd 231-9ubuntu2

Revision history for this message
Daniel Robbers (danielrobbers) wrote :

Getting the same message (Unit org.freedesktop.network1.busname could not be found.) while trying to auto-complete 'systemctl start'. systemd 231 (on Ubuntu 16.10)

Revision history for this message
Andrzej (jarzebowski-andrzej) wrote :

I am having the same problem on updated Ubunut Mate 16.10 in Guake Terminal and Mate Terminal. The error is showing after hitting tab after typing "sudo systemctl start " so when system is looking for names of systemd processes. The error is showing also when partial name has been put like "sudo systemctl start ngi[TAB][TAB]"

Revision history for this message
殷啟聰 | Kai-Chung Yan (seamlik) wrote :

It would be great if the fixed version would be backported to yakkety, I'm running a server and don't want to risk anything by manually installing vital packages.

Revision history for this message
Alejandro Comisario (alejandro-f) wrote :

Still happening on ubuntu 16.04 systemd 229-4ubuntu19, any workaround ?

Revision history for this message
Antonios Hadjigeorgalis (antonioshadji) wrote :

on my system (currently 16.04.03 , initial install 12.04) the directory /lib/systemd/system/busnames.target.wants/ is empty. However, the package list at https://packages.ubuntu.com/xenial/amd64/systemd/filelist shows that there should be 7 files there, incuding org.freedesktop.network1.busname

Is a reinstall of systemd required to resolve these missing files?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.