AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

全部问题(ubuntu)

Martin Hope
Kenneth Fribert
Asked: 2025-02-06 18:36:14 +0800 CST

未找到 rsyslog gtls - ubuntu 24.04

  • 5

Ubuntu 是 24.04

我正在尝试设置 rsyslog 来接收加密的系统日志。

我已经做了

apt install rsyslog-gnutls

但是在 /usr/lib/x86_64-linux-gnu/rsyslog/ 中我没有看到 gtls.so 文件

我确实看到了 lmnsd_gtls.so,但没有看到 gtls.so

因此,当我尝试启动 rsyslogd 时,它显示:

Feb 06 11:29:45 syslog-proxy rsyslogd[22861]: could not load module 'gtls', errors: trying to load module /usr/lib/x86_64-linux-gnu/rsyslog/gtls.so: /usr/lib/x86_64-linux-gnu/rsyslog/gtls.so: cannot open shared object file: No such file>

它还抱怨:

error during parsing file /etc/rsyslog.conf, on or before line 16: parameter 'StreamDriverAuthMode' not known
error during parsing file /etc/rsyslog.conf, on or before line 16: parameter 'StreamDriverMode' not known
error during parsing file /etc/rsyslog.conf, on or before line 16: parameter 'StreamDriver' not known

rsyslog.conf:

# Set up encryption with certificates

$DefaultNetstreamDriver gtls
$DefaultNetstreamDriverCAFile /etc/rsyslog/certs/rsyslog.crt
$DefaultNetstreamDriverCertFile /etc/rsyslog/certs/rsyslog.crt
$DefaultNetstreamDriverKeyFile /etc/rsyslog/certs/rsyslog.key

#### MODULES ####

module(load="imuxsock") # provides support for local system logging
module(load="imtcp")
module(load="gtls")        # For TLS encryption

# Enable TCP on port 514 (unencrypted) and a different port for encrypted logging (e.g., 6514)
input(type="imtcp" port="514")
input(type="imtcp" port="6514" StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="anon")

# provides kernel logging support and enable non-kernel klog messages
#module(load="imklog" permitnonkernelfacility="on")

###########################
#### GLOBAL DIRECTIVES ####
###########################

# Filter duplicated messages
$RepeatedMsgReduction on

#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

# Drop privileges to syslog after starting
$PrivDropToUser syslog
$PrivDropToGroup syslog

#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog

#
# Include all config files in /etc/rsyslog.d/

####################################
# Remote log handling              #
####################################

$template remote-incoming-logs, "/var/log/remotehosts/%HOSTNAME%/%PROGRAMNAME%.log"
*.* ?remote-incoming-logs
&~
24.04
  • 1 个回答
  • 43 Views
Martin Hope
g4b0
Asked: 2025-02-05 23:04:39 +0800 CST

Ubuntu 22 错误的 CA 证书

  • 6

Gpg 在我的 Ubuntu 22.4.5 LTS 上停止工作,可能是升级后。它可以列出我的密钥,自上次更新以来一直在签名 git commit。

$ gpg --list-secret-keys --keyid-format=long
/home/g4b0/.gnupg/pubring.kbx
-----------------------------
sec   rsa3072/WWWWWWWWWWWWWWWW 2024-06-03 [SC] [expires: 2026-06-03]
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
uid                 [ultimate] Foo Bar <[email protected]>
ssb   rsa3072/AAAAAAAAAAAAAAAA 2024-06-03 [E] [expires: 2026-06-03]

sec   rsa3072/ZZZZZZZZZZZZZZZZ 2024-06-04 [SC] [expires: 2026-06-04]
      YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
uid                 [ultimate] Bar Foo <[email protected]>
ssb   rsa3072/BBBBBBBBBBBBBBBB 2024-06-04 [E] [expires: 2026-06-04]

尝试使用它会导致错误的 CA 证书错误

echo "test" | gpg -vv --clearsign
gpg: using pgp trust model
gpg: key WWWWWWWWWWWWWWWW: accepted as trusted key
gpg: key ZZZZZZZZZZZZZZZZ: accepted as trusted key
gpg: writing to stdout
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

test
gpg: pinentry launched (3   )
gpg: signing failed: Bad CA certificate
gpg: [stdin]: clear-sign failed: Bad CA certificate

Ubuntu 版本:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:    22.04
Codename:   jammy

一切都已更新。如何解决?

22.04
  • 2 个回答
  • 192 Views
Martin Hope
Black
Asked: 2025-02-05 20:29:10 +0800 CST

如何安全地删除符号链接?

  • 5

这是我的符号链接:

export -> /home/company/test/var/export/

我尝试删除它rm export/

输出:rm:无法删除“export/”:是一个目录

所以我尝试取消链接: unlink export/

输出:取消链接:无法取消链接‘export/’:不是目录

symbolic-link
  • 1 个回答
  • 42 Views
Martin Hope
Jason Williams
Asked: 2025-02-04 04:51:45 +0800 CST

HP Spectre x360 上的平板电脑模式事件检测

  • 6

我有一台二合一可转换笔记本电脑(HP Spectre x360),使用的是 Ubuntu 24.04。开箱后,几乎所有功能都运行良好:触摸屏运行良好,如果我将电脑完全折叠到“平板电脑模式”,则屏幕键盘会在我需要时弹出,或者我可以通过从屏幕底部向上滑动来手动调出它。

我想做更多的事情,在计算机切换至或退出平板电脑模式时运行脚本。操作系统清楚地知道它处于哪种模式,因为屏幕键盘仅在屏幕折叠为平板电脑模式时弹出,但我不知道如何获取此信息,更不用说在模式更改时触发脚本了。

编辑:我安装了evtest,并通过反复试验将其追踪到 上的一个事件/dev/input/event11。但是,我不知道如何监视此事件并在其触发时运行脚本。有什么指导吗?

evtest /dev/input/event11这是我将计算机置于平板电脑模式然后退出平板电脑模式时的输出:

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Intel Virtual Switches"
Supported events:
  Event type 0 (EV_SYN)
  Event type 5 (EV_SW)
    Event code 1 (SW_TABLET_MODE) state 0
Properties:
Testing ... (interrupt to exit)
Event: time 1738791097.627387, type 5 (EV_SW), code 1 (SW_TABLET_MODE), value 1
Event: time 1738791097.627387, -------------- SYN_REPORT ------------
Event: time 1738791102.134017, type 5 (EV_SW), code 1 (SW_TABLET_MODE), value 0
Event: time 1738791102.134017, -------------- SYN_REPORT ------------
24.04
  • 2 个回答
  • 57 Views
Martin Hope
Igor Nizio
Asked: 2025-02-04 02:42:38 +0800 CST

为分区添加更多空间

  • 5

我是 ubuntu 新手,正在处理分区问题。我不想犯错误 - 所以我宁愿问。

我知道有很多关于向分区添加内存的线程,但我不确定,因为没有一个线程是 1:1。我想将剩余的可用内存添加到 vda2 (ext4) 分区(ubuntu 所在的位置),而不会丢失任何数据。

您能给我一个简单的解决方案吗?我必须删除 vda3 分区?

谢谢,抱歉问了个愚蠢的问题。

在此处输入图片描述

partitioning
  • 1 个回答
  • 24 Views
Martin Hope
usernameadamasks
Asked: 2025-02-03 02:48:41 +0800 CST

Ubuntu 24.04 安装后 LibTiff5 被删除,如何再次安装?

  • 6

我使用一个动画软件(Mine-Imator lol),它对名为“LibTiff5”的软件包有很强的依赖性。现在我知道那是什么了,问题是它特别需要 LibTiff 5。 但是从 Ubuntu 24.04(或 23 不确定)开始,LT5 被放弃,转而使用 LibTiff 6,并且仍然保留在 22.04(Jammy Jellyfish)上。当然,它不支持 LT6,因为在撰写本文时,该软件已经 2 年没有更新了。LT5-dev 也是如此。我的问题是,有没有一种好的、不痛苦的方法可以在 Ubuntu 24.04 上安装旧的 LT5?

......../Mine-imator: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
24.04
  • 1 个回答
  • 46 Views
Martin Hope
Srinath Avadhanula
Asked: 2025-02-02 02:39:09 +0800 CST

蓝牙配对在 Ubuntu 24.04 中不起作用

  • 5

我的新ABS 桌面上安装了 Ubuntu 24.04 ,尽管 hciconfig、bluetoothctl 没有显示任何错误,但在扫描期间我却看不到任何设备。

$ hciconfig
hci0:   Type: Primary  Bus: USB
        BD Address: FC:B0:DE:38:30:96  ACL MTU: 1021:8  SCO MTU: 255:12
        UP RUNNING PSCAN ISCAN
        RX bytes:5389 acl:0 sco:0 events:539 errors:0
        TX bytes:19604 acl:0 sco:0 commands:519 errors:0

手动使用 bluetoothctl 执行以下操作:

$ bluetoothctl
Waiting to connect to bluetoothd...[bluetooth]# Agent registered
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
[bluetooth]# Default agent request successful
[bluetooth]# scan on
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# Discovery started
[bluetooth]# [CHG] Controller FC:B0:DE:38:30:96 Discovering: yes
[bluetooth]#

据我所知, lsmod 没有显示任何有趣的东西:

$ lsmod | grep btusb
btusb                  77824  0
btrtl                  32768  1 btusb
btintel                57344  1 btusb
btbcm                  24576  1 btusb
btmtk                  12288  1 btusb
bluetooth            1028096  46 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm

~ ⌚ 13:34:42
$ lsmod | grep bluetooth
bluetooth            1028096  46 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth

以下是 的输出lsusb; sudo dmesg | egrep -i 'blue|firm':

$ lsusb; sudo dmesg | egrep -i 'blue|firm'
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0b05:19af ASUSTek Computer, Inc. AURA LED Controller
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0489:e112 Foxconn / Hon Hai Bluetooth Radio
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[    1.157720] usb 3-1: Product: Bluetooth Radio
[    4.892212] systemd[1]: Mounting snap-firmware\x2dupdater-127.mount - Mount unit for firmware-updater, revision 127...
[    4.893131] systemd[1]: Mounting snap-firmware\x2dupdater-147.mount - Mount unit for firmware-updater, revision 147...
[    5.078863] Bluetooth: Core ver 2.22
[    5.103287] NET: Registered PF_BLUETOOTH protocol family
[    5.103290] Bluetooth: HCI device and connection manager initialized
[    5.103294] Bluetooth: HCI socket layer initialized
[    5.103296] Bluetooth: L2CAP socket layer initialized
[    5.103303] Bluetooth: SCO socket layer initialized
[    5.319068] rtw89_8851be 0000:08:00.0: loaded firmware rtw89/rtw8851b_fw.bin
[    5.319858] rtw89_8851be 0000:08:00.0: Firmware version 0.29.41.3 (65cefb31), cmd version 0, type 5
[    5.319861] rtw89_8851be 0000:08:00.0: Firmware version 0.29.41.3 (65cefb31), cmd version 0, type 3
[    6.292072] [drm] Loading DMUB firmware via PSP: version=0x05000F00
[    6.292458] [drm] Found VCN firmware Version ENC: 1.30 DEC: 3 VEP: 0 Revision: 4
[    6.292464] amdgpu 0000:0b:00.0: amdgpu: Will use PSP to load VCN firmware
[    7.299392] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.299396] Bluetooth: BNEP filters: protocol multicast
[    7.299401] Bluetooth: BNEP socket layer initialized
[    7.300285] Bluetooth: MGMT ver 1.22
[    9.138499] Bluetooth: RFCOMM TTY layer initialized
[    9.138505] Bluetooth: RFCOMM socket layer initialized
[    9.138508] Bluetooth: RFCOMM ver 1.11
[ 7300.714099] audit: type=1400 audit(1738440042.768:183): apparmor="DENIED" operation="open" class="file" profile="snap.firmware-updater.firmware-notifier" name="/proc/sys/vm/max_map_count" pid=28130 comm="firmware-notifi" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[18100.787075] audit: type=1400 audit(1738450842.532:184): apparmor="DENIED" operation="open" class="file" profile="snap.firmware-updater.firmware-notifier" name="/proc/sys/vm/max_map_count" pid=74038 comm="firmware-notifi" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

此时我已经没有主意了,非常感谢任何帮助。为了“好玩”,这是我尝试使用 chat-gpt 进行的调试会话

bluetooth
  • 1 个回答
  • 69 Views
Martin Hope
Mats
Asked: 2025-02-02 02:20:45 +0800 CST

GIT 存储库内文件和文件夹的覆盖图标

  • 5

我以前使用 Windows,并使用 Tortoise 作为 Git 的 GUI。我并不需要 Ubuntu 的完整版 git 客户端(我很乐意使用命令行),但我希望在 nautilus 窗口中有一些图标叠加层,指示我的存储库中文件和文件夹的状态。

这里推荐的方法是什么?提前致谢!

nautilus
  • 1 个回答
  • 39 Views
Martin Hope
Mauricio
Asked: 2025-02-01 11:41:10 +0800 CST

Ubuntu 24.04,apt 升级后:“哦不!出了点问题” - libgl1-mesa-dri

  • 7

今天,当我启动装有 Ubuntu 24.04.1 LTS 的计算机时,出现以下消息:

Oh no! Something has gone wrong.
A problem has ocurred and the system can't recover. Please contact a system administrator

在此处输入图片描述

当使用打开另一个 tty 时,Ctrl+Alt+F1我能够从终端登录。

执行时startx出现错误,其中包括:

xf86EnableIO: failed to enable I7O ports 0000-03ff (Operation not permitted)
did not find extension DRI_Mesa version 1

我决定从头开始安装 Ubuntu。之后,在某个时候,我注意到有一个新的 MESA 库可供安装。以下是执行典型安装后得到的文本和照片apt-get upgrade

$ sudo apt-get update && sudo apt-get upgrade -y
... 
Fetched 2,781 kB in 7s (421 kB/s)                                                                                                          
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  grub-common grub2-common python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
The following packages have been kept back:
  libegl-mesa0 libgbm1 libglapi-mesa libglx-mesa0 libxatracker2 mesa-vulkan-drivers
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Need to get 34.6 kB of archives.
After this operation, 33.6 MB disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libgl1-mesa-dri amd64 24.2.8-1ubuntu1~24.04.1 [34.6 kB]
Fetched 34.6 kB in 1s (53.3 kB/s)        
(Reading database ... 194937 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_24.2.8-1ubuntu1~24.04.1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (24.2.8-1ubuntu1~24.04.1) over (24.0.9-0ubuntu0.1) ...
Setting up libgl1-mesa-dri:amd64 (24.2.8-1ubuntu1~24.04.1) ...
N: Some packages may have been kept back due to phasing.

在此处输入图片描述

决定重新启动,看看一切是否正常……然后砰的一声。和之前一样,出现了同样的“哦不!”错误屏幕。

所以我今天在全新安装 Ubuntu 时也遇到了同样的问题。

apt
  • 2 个回答
  • 407 Views
Martin Hope
user1560499
Asked: 2025-02-01 10:45:20 +0800 CST

系统损坏时的时间移位恢复

  • 5

上下文:我尝试在终端中执行版本升级 -d,从 22.04.5 升级到 24.04(桌面版)。更新失败,在时间移位中加载保存,系统再次运行。我(愚蠢地)尝试再次运行更新。这一次,时间移位不起作用。

我收到一个错误,timeshift:加载共享库时出错:libgio-2.0.so.0:无法打开共享对象文件:没有此文件或目录

命令 apt upgrade、apt --fix-missing、apt --fix-broken install 都要求我安装上述 libgio-2.0.so.0。有没有办法将 timeshift 安装到实时 USB 并使用快照?如果不删除所有文件,我就无法重新安装操作系统。

boot
  • 1 个回答
  • 58 Views
上一页
下一页

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve