我想在我的树莓派 5 上加密 Ubuntu Server 24.04 的根文件系统。我没有新树莓派上使用的那种奇怪的 microHDMI 接口的线,所以最好是无头模式。根文件系统位于 SD 卡上,我想使用密钥文件而不是密码进行加密。虽然有这个答案和这个指南,但遗憾的是没有关于如何无头模式操作的说明。
在启动器中输入时,通常会出现“字符”和“时钟”的结果。
这两种结果对我来说毫无用处,它们使结果视图变得混乱,因此更难看到相关结果。
我该如何配置启动器以不显示这些类型的结果?
启动器显示“字符”和“时钟”结果的屏幕截图:
注意:我使用的是 Ubuntu MATE 24.04.2,但我没想到桌面会有什么不同。
几天前的软件更新之后,情况发生了变化:
- “应用中心”已从“管理”子菜单中消失
- “Snap Store”现在位于子菜单“系统工具”中
当我点击“Snap Store”时,启动的软件简单地称自己为“软件”。
窗口中间显示“正在下载软件目录”。
没有发生任何其他事情。
有什么想法吗?
Ubuntu 附带两个版本的 GIMP(与许多其他软件一样。Snap
将安装 3.0.0 并apt
使用 2.10.36。我认为 3.0.0 会更好,但它无法打开 HEIF 文件,而apt
的版本可以。我猜它与依赖关系有关,但仍然。我喜欢 3.0.0 的花哨功能,但唉,我现在只能使用 2.10.36。
有没有办法在 3.0.0 中打开 HEIF 文件?
我正在使用 Ubuntu 24.04,无法从 GUI文件应用程序或命令行打开 LibreOffice。每次我都会收到相同的错误:
$ sudo libreoffice
Warning: failed to launch javaldx - java may not function correctly
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libldap-2.5.so.0: cannot open shared object file: No such file or directory
我发现在软件应用程序中可以按 Snap 或 deb 程序进行排序。看起来我的安装肯定是 deb 程序,因为所有彩色图标都在 deb 包选项下。在 Snap 包选项下,只有一个 LibreOffice 图标,而且它是一个非彩色图标,只显示“LibreOffice”。
以下是输出which soffice
:
/usr/bin/soffice
我不知道它是 Snap 还是 deb。我是 Ubuntu 新手,这台电脑来自戴尔,已经安装了 Ubuntu。
当我尝试以自己的身份运行时soffice
,出现以下情况,我认为这是相同的错误:
Warning: failed to launch javaldx - java may not function correctly
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libldap-2.5.so.0: cannot open shared object file: No such file or directory
有人知道我该怎么办吗?
如何将 RAID1 驱动器安装为存储驱动器,然后让 Samba 将文件写入该 RAID1 驱动器内的文件夹?
其他可能有用的信息:
我创建了一个我认为是驱动器的挂载点,然后使用 Samba 从 Windows 复制文件。不幸的是,我最终填满了我的操作系统驱动器。
我是 Ubuntu 新手,正在配置一台安装了 Ubuntu 的新 Dell Optiplex 7020。我已升级到 24.04。系统有一个用于操作系统的驱动器,即 500 GB SSD。我还在两个额外的 NVMe M.2 SSD 插槽中安装了两个 4 TB SSD 驱动器。计算机能够毫无问题地看到驱动器。我还使用 ext4 格式化了各个驱动器。
然后,我使用这些驱动器创建了 RAID1 并安装它。
我还读到过,也许我没有创建正确类型的分区,因此需要将分区创建为 Linux RAID Autodetect。但是,我还没搞清楚该怎么做。我需要以一种不会创建 2 TB 有限分区的方式对其进行分区。
这是 ARRAY 的两个 SSD 驱动器:
nvme2n1 3.6T disk
nvme0n1 3.6T disk
我用这些驱动器创建了 RAID1。
以下是来自 GParted 的有关 RAID1 的一些数据:
- 文件系统:
ext4
- UUID:
ffd80761-d5fe-4967-9ad6-faf463947359
- 状态:安装在
/mnt/ffd80761-d5fe-4967-9ad6-faf463947359
- 分区路径:
/dev/md127
以下是 中的条目/etc/fstab
:
/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0
/dev/disk/by-uuid/ffd80761-d5fe-4967-9ad6-faf463947359 /mnt/ffd80761-d5fe-4967-9ad6-faf463947359 auto nosuid,nodev,nofail,x-gvfs-show 0 0
以下是附加到 末尾的条目/etc/mdadm/mdadm.conf
:
ARRAY /dev/md0 metadata=1.2 UUID=ffd80761-d5fe-4967-9ad6-faf463947359
我创建了一个目录,我本想让它存在于 RAID1 驱动器中,而不是 OS 驱动器中。这就是我可能犯了一个大错误的地方?
sudo mkdir -p /mnt/md0
然后我挂载了该目录:
sudo mount /dev/md0 /mnt/md0
无论如何,我希望这个问题能够很快引起你们其中一个人的注意,然后你们可以帮助我了解我是否正确格式化了驱动器,以及如何确保我正在创建一个目录并将其安装在 4TB 存储驱动器上。
非常感谢。我很高兴成为这个社区的一员。
相机应用程序曾经与我的 USB 网络摄像头配合使用,但现在如果我过早运行它,它要么卡在等待强制退出或等待提示,要么加载到黑屏的“无法播放相机流”消息中,而使用终端运行ffplay /dev/video0
或vlc v4l2:///dev/video0
获取视频就可以了。
同时cvlc v4l2:///dev/video0
得到:
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00005d11a8026f60] dummy interface: using the dummy interface module...
[000078b908048bf0] xcb_window window error: X server failure
这有问题吗?
$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 Mar 1 08:03 /dev/video0
crw-rw----+ 1 root video 81, 1 Mar 1 08:03 /dev/video1
相机应用程序的调试信息:
Library Details:
Aperture 0.6.0
GStreamer 1.24.2
Pipewire 1.0.5
Gtk 4.14.2
Cameras:
GENERAL WEBCAM (V4L2) Video/Source: {
"object.path": (gchararray) "v4l2:/dev/video0",
"api.v4l2.cap.card": (gchararray) "GENERAL WEBCAM: GENERAL WEBCAM",
"device.id": (gchararray) "42",
"clock.quantum-limit": (gchararray) "8192",
"api.v4l2.path": (gchararray) "/dev/video0",
"device.devids": (gchararray) "20736",
"node.pause-on-idle": (gchararray) "false",
"node.driver": (gchararray) "true",
"device.product.id": (gchararray) "0x224",
"api.v4l2.cap.driver": (gchararray) "uvcvideo",
"api.v4l2.cap.capabilities": (gchararray) "84a00001",
"api.v4l2.cap.version": (gchararray) "6.8.12",
"device.api": (gchararray) "v4l2",
"api.v4l2.cap.device-caps": (gchararray) "04200001",
"device.vendor.id": (gchararray) "0x1b3",
"node.name": (gchararray) "v4l2_input.pci-0000_06_00.3-usb-0_4_1.0",
"node.nick": (gchararray) "GENERAL WEBCAM",
"priority.session": (gchararray) "1000",
"client.id": (gchararray) "35",
"object.id": (gchararray) "45",
"factory.name": (gchararray) "api.v4l2.source",
"api.v4l2.cap.bus_info": (gchararray) "usb-0000:06:00.3-4",
"media.class": (gchararray) "Video/Source",
"factory.id": (gchararray) "10",
"node.description": (gchararray) "GENERAL WEBCAM (V4L2)",
"object.serial": (gchararray) "45",
"media.role": (gchararray) "Camera",
我最近从 Ubuntu22.04 更新到 24,从那时起,启动系统设置时就遇到了问题。
如果我从仪表板尝试,似乎什么也不会发生,如果我运行:
gnome-control-center
我收到以下消息:
Running gnome-control-center is only supported under GNOME and Unity, exiting
XDG_CURRENT_DESKTOP
我检查了环境变量和的值DESKTOP_SESSION
,它们都是“ubuntu”,因此,我尝试运行:
XDG_CURRENT_DESKTOP=GNOME gnome-control-center
而且这有效。
我尝试通过将其添加到我的 /home/.profile 文件中来使其永久生效:
if [[ "$DESKTOP_SESSION" == "ubuntu" ]]; then
export XDG_CURRENT_DESKTOP=GNOME
fi
但它似乎无效,环境变量仍然具有相同的值,并且我无法从仪表板打开设置。
这个答案准确地描述了我的问题,但对他们有用的解决方案是切换到 gdm3,当我使用 KDE 时,这可能会搞砸。还有其他选择吗?
我一直在尝试使用 QEMU 和 Virsh (libvirt) 将 SGX 传递到 VM。不幸的是,我似乎无法将 SGX 飞地传递到我的 VM。SGX(使用 DCAP)在我的主机上运行良好,并且我已经使用客户端设置进行了测试。
值得注意的是,我的主机是 Ubuntu 24.04 LTS(支持 SGX 的 Xeon Scalable Gen3 Intel CPU),我的虚拟机运行的是 Ubuntu 24.04。我的主机运行的是稳定版本的这些版本
Compiled against library: libvirt 10.0.0
Using library: libvirt 10.0.0
Using API: QEMU 10.0.0
Running hypervisor: QEMU 8.2.2
这是我的完整虚拟机配置
<domain type="kvm">
<name>ubuntu24.04</name>
<uuid>87cd126a-047f-4b41-938f-2d19ee19d198</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://ubuntu.com/ubuntu/24.04"/>
</libosinfo:libosinfo>
</metadata>
<maxMemory slots="16" unit="KiB">82313216</maxMemory>
<memory unit="KiB">65634304</memory>
<currentMemory unit="KiB">65634304</currentMemory>
<vcpu placement="static">10</vcpu>
<os>
<type arch="x86_64" machine="pc-q35-8.2">hvm</type>
<boot dev="hd"/>
</os>
<features>
<acpi/>
<apic/>
<vmport state="off"/>
</features>
<cpu mode="host-passthrough" check="none" migratable="on">
<feature policy="require" name="sgx"/>
<feature policy="require" name="sgxlc"/>
<feature policy="require" name="sgx1"/>
<feature policy="require" name="sgx2"/>
<feature policy="require" name="sgx-exinfo"/>
<feature policy="require" name="sgx-debug"/>
<feature policy="require" name="sgx-mode64"/>
<feature policy="require" name="sgx-provisionkey"/>
<feature policy="require" name="sgx-tokenkey"/>
<feature policy="require" name="sgx-kss"/>
<feature policy="require" name="sgx-edeccssa"/>
<feature policy="require" name="sgx-aex-notify"/>
<numa>
<cell id="0" cpus="0-9" memory="65634304" unit="KiB"/>
</numa>
</cpu>
<clock offset="utc">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled="no"/>
<suspend-to-disk enabled="no"/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" discard="unmap"/>
<source file="/var/lib/libvirt/images/ubuntu24.04.qcow2"/>
<target dev="vda" bus="virtio"/>
<address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw"/>
<target dev="sda" bus="sata"/>
<readonly/>
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
</disk>
<controller type="usb" index="0" model="qemu-xhci" ports="15">
<address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
</controller>
<controller type="pci" index="0" model="pcie-root"/>
<controller type="pci" index="1" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="1" port="0x10"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
</controller>
<controller type="pci" index="2" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="2" port="0x11"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
</controller>
<controller type="pci" index="3" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="3" port="0x12"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
</controller>
<controller type="pci" index="4" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="4" port="0x13"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
</controller>
<controller type="pci" index="5" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="5" port="0x14"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
</controller>
<controller type="pci" index="6" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="6" port="0x15"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
</controller>
<controller type="pci" index="7" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="7" port="0x16"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
</controller>
<controller type="pci" index="8" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="8" port="0x17"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
</controller>
<controller type="pci" index="9" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="9" port="0x18"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
</controller>
<controller type="pci" index="10" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="10" port="0x19"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
</controller>
<controller type="pci" index="11" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="11" port="0x1a"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
</controller>
<controller type="pci" index="12" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="12" port="0x1b"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
</controller>
<controller type="pci" index="13" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="13" port="0x1c"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
</controller>
<controller type="pci" index="14" model="pcie-root-port">
<model name="pcie-root-port"/>
<target chassis="14" port="0x1d"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
</controller>
<controller type="sata" index="0">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
</controller>
<controller type="virtio-serial" index="0">
<address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
</controller>
<interface type="network">
<mac address="52:54:00:1b:f4:13"/>
<source network="default"/>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>
<serial type="pty">
<target type="isa-serial" port="0">
<model name="isa-serial"/>
</target>
</serial>
<console type="pty">
<target type="serial" port="0"/>
</console>
<channel type="unix">
<target type="virtio" name="org.qemu.guest_agent.0"/>
<address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
<address type="virtio-serial" controller="0" bus="0" port="2"/>
</channel>
<input type="tablet" bus="usb">
<address type="usb" bus="0" port="1"/>
</input>
<input type="mouse" bus="ps2"/>
<input type="keyboard" bus="ps2"/>
<graphics type="spice" autoport="yes">
<listen type="address"/>
</graphics>
<sound model="ich9">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
</sound>
<audio id="1" type="spice"/>
<video>
<model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
</video>
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="2"/>
</redirdev>
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="3"/>
</redirdev>
<watchdog model="itco" action="reset"/>
<memballoon model="virtio">
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
</memballoon>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
<address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</rng>
</devices>
</domain>
需要注意的是,当我在设备中添加 EPC 内存模块时,出现错误
<memory model='sgx-epc'>
<target>
<size unit='KiB'>16384</size>
</target>
</memory>
错误:
Error starting domain: internal error: QEMU unexpectedly closed the monitor (vm='ubuntu24.04'): 2025-02-21T17:27:05.276761Z qemu-system-x86_64: invalid object type: memory-backend-epc
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1379, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor (vm='ubuntu24.04'): 2025-02-21T17:27:05.276761Z qemu-system-x86_64: invalid object type: memory-backend-epc
从错误中,我不确定为什么它找不到该模块,尽管根据官方文档它受支持:https://libvirt.org/formatdomain.html#memory-devices
我的问题:
- 我的配置正确吗?
- 我是否需要启用特定配置才能通过 SGX。
我也已经测试了SGX 驱动程序未在 QEMU VM 中显示的答案,不幸的是它们不起作用,我不确定是否是因为新版本的重大变化。
我很高兴得到任何我可以尝试的想法。
我尝试在 Ubuntu 24.04 上使用 openssh ssh 代理 systemd 用户服务。
从 Ubuntu 16.10 开始,openssh-client
软件包包含一个ssh-agent.service
用户服务文件:
$ lsb_release -sr
No LSB modules are available.
24.04
$ dpkg -S user/ssh-agent.service
openssh-client: /usr/lib/systemd/user/ssh-agent.service
$ systemctl --user cat ssh-agent.service
# /usr/lib/systemd/user/ssh-agent.service
[Unit]
Description=OpenSSH Agent
Documentation=man:ssh-agent(1)
Before=graphical-session-pre.target
ConditionPathExists=/etc/X11/Xsession.options
Wants=dbus.socket
After=dbus.socket
[Service]
# If you need to pass extra arguments to ssh-agent, you can use "systemctl
# --user edit ssh-agent.service" to add a drop-in unit with contents along
# these lines:
# [Service]
# ExecStart=
# ExecStart=/usr/lib/openssh/agent-launch start -- -t 1200
ExecStart=/usr/lib/openssh/agent-launch start
ExecStopPost=/usr/lib/openssh/agent-launch stop
$
因此我尝试启动它但它没有活动:
$ systemctl --user start ssh-agent.service
$ systemctl --user is-active ssh-agent.service
inactive
$
经过一些研究,我设置了SSH_AUTH_SOCK
变量:
$ ssh myUbuntu-24-04-Server
$ export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/openssh_agent
$ systemctl --user stop ssh-agent.service
$ systemctl --user start ssh-agent.service
$ ls $SSH_AUTH_SOCK
ls: cannot access '/run/user/1000/openssh_agent': No such file or directory
$ systemctl --user is-active ssh-agent.service
inactive
$ systemctl --user status ssh-agent.service
○ ssh-agent.service - OpenSSH Agent
Loaded: loaded (/usr/lib/systemd/user/ssh-agent.service; static)
Active: inactive (dead)
Docs: man:ssh-agent(1)
Feb 21 17:41:56 myUbuntu-24-04-Server systemd[118809]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:08:15 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:10:31 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:11:24 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:18:49 myUbuntu-24-04-Server systemd[119442]: Started ssh-agent.service - OpenSSH Agent.
$
但是,此服务在以前的 Ubuntu LTS(22.04)上启动正常:
$ ssh myUbuntu-22-04-Server
$ lsb_release -sr
22.04
$ export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/openssh_agent
$ systemctl --user start ssh-agent.service
$ systemctl --user status ssh-agent.service
● ssh-agent.service - OpenSSH Agent
Loaded: loaded (/usr/lib/systemd/user/ssh-agent.service; static)
Active: active (running) since Fri 2025-02-21 18:40:55 CET; 4min 17s ago
Docs: man:ssh-agent(1)
Main PID: 23068 (ssh-agent)
Tasks: 1 (limit: 19005)
Memory: 1.1M
CPU: 6ms
CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/ssh-agent.service
└─23068 ssh-agent -D -a /run/user/1000/openssh_agent
Feb 21 18:40:55 myUbuntu-22-04-Server systemd[22133]: Started OpenSSH Agent.
Feb 21 18:40:55 myUbuntu-22-04-Server agent-launch[23070]: dbus-update-activation-environment: setting SSH_AUTH_SOCK=/run/user/1000/openssh_agent
Feb 21 18:40:55 myUbuntu-22-04-Server agent-launch[23070]: dbus-update-activation-environment: setting SSH_AGENT_LAUNCHER=openssh
Feb 21 18:40:55 myUbuntu-22-04-Server agent-launch[23068]: SSH_AUTH_SOCK=/run/user/1000/openssh_agent; export SSH_AUTH_SOCK;
Feb 21 18:40:55 myUbuntu-22-04-Server agent-launch[23068]: echo Agent pid 23068;
$ ssh-add -l
The agent has no identities.
$
EDIT0:我的错,SSH_AUTH_SOCK
没有必要手动设置变量。
我在 Ubuntu 22.04 上重新测试了,无需手动设置变量就可以正常工作
SSH_AUTH_SOCK
。
但在 Ubuntu 24.04 上,我得到的结果如下:
$ ssh -X myUser@myUbuntu-24-04-Server
myUser@myUbuntu-24-04-Server:~$ echo $XDG_RUNTIME_DIR
/run/user/1000
myUser@myUbuntu-24-04-Server:~$ echo $SSH_AUTH_SOCK
myUser@myUbuntu-24-04-Server:~$ grep use-ssh-agent /etc/X11/Xsession.options
use-ssh-agent
myUser@myUbuntu-24-04-Server:~$ unset SSH_AUTH_SOCK
myUser@myUbuntu-24-04-Server:~$ systemctl --user start ssh-agent.service
myUser@myUbuntu-24-04-Server:~$ systemctl --user status ssh-agent.service
○ ssh-agent.service - OpenSSH Agent
Loaded: loaded (/usr/lib/systemd/user/ssh-agent.service; static)
Active: inactive (dead)
Docs: man:ssh-agent(1)
Feb 21 17:41:56 myUbuntu-24-04-Server systemd[118809]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:08:15 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:10:31 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:11:24 myUbuntu-24-04-Server systemd[119096]: Started ssh-agent.service - OpenSSH Agent.
Feb 21 18:18:49 myUbuntu-24-04-Server systemd[119442]: Started ssh-agent.service - OpenSSH Agent.
Feb 24 17:54:39 myUbuntu-24-04-Server systemd[151016]: Started ssh-agent.service - OpenSSH Agent.
Feb 24 17:56:01 myUbuntu-24-04-Server systemd[151016]: Started ssh-agent.service - OpenSSH Agent.
Feb 24 18:15:38 myUbuntu-24-04-Server systemd[151355]: Started ssh-agent.service - OpenSSH Agent.
Feb 24 18:17:06 myUbuntu-24-04-Server systemd[151355]: Started ssh-agent.service - OpenSSH Agent.
myUser@myUbuntu-24-04-Server:~$ systemctl --user is-active ssh-agent.service
inactive
myUser@myUbuntu-24-04-Server:~$ ssh-add -l
Could not open a connection to your authentication agent.
myUser@myUbuntu-24-04-Server:~$
你能帮助我吗 ?