Public bug reported:

Description:    Ubuntu 22.04.5 LTS
Release:        22.04

linuxptp:
  Installed: 3.1.1-3

The [email protected] file has a bug currently where it cannot be started
because of the error below. I would expect it to start without an error.

$ sudo systemctl restart phc2sys@eno1
Failed to restart [email protected]: Unit ptp4l.service not found.

Here is a diff file where I replaced the After= and Requires= fields to
depend on the ptp4l service with an ethernet interface specified. This
worked as a fix for me but it would be nice if it made it upstream.

```
--- /lib/systemd/system/[email protected]        2021-11-07 23:51:59.000000000 
-0800
+++ /etc/systemd/system/[email protected]        2025-07-28 10:26:00.572455973 
-0700
@@ -1,8 +1,8 @@
 [Unit]
 Description=Synchronize system clock or PTP hardware clock (PHC)
 Documentation=man:phc2sys
-Requires=ptp4l.service
-After=ptp4l.service
+Requires=ptp4l@%i.service
+After=ptp4l@%i.service
 Before=time-sync.target
 
 [Service]
```

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linuxptp 3.1.1-3
ProcVersionSignature: Ubuntu 6.8.0-64.67~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-64-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.9
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 29 09:33:17 2025
InstallationDate: Installed on 2022-07-29 (1095 days ago)
InstallationMedia: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/usr/bin/fish
SourcePackage: linuxptp
UpgradeStatus: Upgraded to jammy on 2023-05-10 (810 days ago)

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


** Tags: amd64 apport-bug jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2119028

Title:
  PHC2SYS Service File Errors On Start

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to