I was getting this error message when using JLink on Ubuntu 24.04:

$ sudo JLinkExe -if swd
SEGGER J-Link Commander V7.92a (Compiled Aug 16 2023 15:34:10)
DLL version V7.92a, compiled Aug 16 2023 15:33:47

Connecting to J-Link via USB…O.K.
Firmware: J-Link V11 compiled Aug 2 2023 10:34:01
Hardware version: V11.00
J-Link uptime (since boot): 0d 00h 03m 39s
S/N: 51005404
License(s): GDB
USB speed mode: High speed (480 MBit/s)
VTref=3.335V

Type "connect" to establish a target connection, '?' for help
J-Link>con
Please specify device / core. : S32K146
Type '?' for selection dialog
Device>
Specify target interface speed [kHz]. : 4000 kHz
Speed>
Device "S32K146" selected.

Selected interface (SWD) is not supported by the connected probe.
J-Link>

After update to version V8.10f everything worked as expected:

$ sudo JLinkExe -if swd
SEGGER J-Link Commander V8.10f (Compiled Nov  6 2024 16:11:03)
DLL version V8.10f, compiled Nov  6 2024 16:09:58

Connecting to J-Link via USB...Updating firmware:  J-Link V11 compiled Oct  9 2024 10:52:20
Replacing firmware: J-Link V11 compiled Aug  2 2023 10:34:01
Waiting for new firmware to boot
New firmware booted successfully
O.K.
Firmware: J-Link V11 compiled Oct  9 2024 10:52:20
Hardware version: V11.00
J-Link uptime (since boot): 0d 00h 00m 00s
S/N: 5100xxxx
License(s): GDB
USB speed mode: High speed (480 MBit/s)
VTref=3.335V


Type "connect" to establish a target connection, '?' for help
J-Link>con
Please specify device / core. <Default>: S32K146
Type '?' for selection dialog
Device>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "S32K146" selected.


Connecting to target via SWD
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 3us
InitTarget() start
SWD selected. Executing JTAG -> SWD switching sequence.
InitTarget() end - Took 52.5ms
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011, ADDR: 0x00000000)
AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Initializing 126976 bytes work RAM @ 0x1FFF0000
Reset type: NORMAL (https://wiki.segger.com/J-Link_Reset_Strategies)
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Memory zones:
  Zone: "Default" Description: Default access mode
Cortex-M4 identified.
J-Link>