systemd-run --user fails to run
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
Almost fresh install of 20.04, I run:
$ systemd-run --user --wait true
As is documented in the man page for systemd-run, and get the output:
Failed to create bus connection: No such file or directory
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemd 245.4-4ubuntu3
ProcVersionSign
Uname: Linux 5.4.0-42-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckR
Date: Thu Aug 6 12:36:53 2020
InstallationDate: Installed on 2020-08-01 (4 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcEnviron:
SHELL=/bin/bash
LANG=C.UTF-8
TERM=xterm-
LC_CTYPE=C.UTF-8
PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/29/2020
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.70
dmi.board.name: TRX40 Creator
dmi.board.vendor: ASRock
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.

I can't reproduce this on my system:
$ lsb_release -r status= 0
Release: 20.04
$ dpkg -l systemd|grep systemd
ii systemd 245.4-4ubuntu3.2 amd64 system and service manager
$ systemd-run --user --wait true
Running as unit: run-u811.service
Finished with result: success
Main processes terminated with: code=exited/
Service runtime: 3ms
How are you logged into your system? ssh? desktop graphical login? serial console?