千里不留行_ 2022-11-30 11:01 采纳率: 21.2%
浏览 22
已结题

误操作卸载了audit-libs-2.8.5-4.el7.x86_64

在linux 不小心卸载了这个包 audit-libs-2.8.5-4.el7.x86_64 导致rpm , yum 命令用不了 怎么把这个包装回去啊,能不能提供一下源码包

  • 写回答

3条回答 默认 最新

  • curating 2022-11-30 11:27
    关注

    看看audit进程是否还在。
    试试把audit停了,看看yum是否能用。
    systemctl stop auditd.service 若过错误,kill /sbin/auditd进程。

    [root@dem ~]# ps -ef|grep audit
    root          22       2  0 11:11 ?        00:00:00 [kauditd]
    root         828       1  0 11:12 ?        00:00:00 /sbin/auditd
    root        2017    1949  0 11:16 pts/0    00:00:00 grep audit
    [root@dem ~]# systemctl |grep audit    
      auditd.service                                                                           loaded active running   Security Auditing Service                                                    
      systemd-journald-audit.socket                                                            loaded active running   Journal Audit Socket                                                         
    [root@dem ~]# systemctl stop auditd.service
    [root@dem ~]# ps -ef|grep audit            
    root          22       2  0 11:11 ?        00:00:00 [kauditd]
    root        2026    1949  0 11:17 pts/0    00:00:00 grep audit
    [root@dem ~]# mount /dev/sr0 /mnt
    mount: /mnt: WARNING: source write-protected, mounted read-only.
    [root@dem ~]# yum search audit
    Last metadata expiration check: 15 days, 16:04:21 ago on Mon 14 Nov 2022 07:13:45 PM CST.
    ================================================================== Name & Summary Matched: audit ==================================================================
    audit.x86_64 : User space tools for kernel auditing
    audit-devel.x86_64 : Header files for libaudit
    audit-help.noarch : Documents for audit
    audit-libs.x86_64 : Dynamic library for libaudit
    python2-audit.x86_64 : Python2 bindings for libaudit
    python3-audit.x86_64 : Python3 bindings for libaudit
    
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 12月1日
  • 创建了问题 11月30日

悬赏问题

  • ¥15 无法输出helloworld
  • ¥15 高通uboot 打印ubi init err 22
  • ¥20 PDF元数据中的XMP媒体管理属性
  • ¥15 R语言中lasso回归报错
  • ¥15 网站突然不能访问了,上午还好好的
  • ¥15 有没有dl可以帮弄”我去图书馆”秒选道具和积分
  • ¥15 semrush,SEO,内嵌网站,api
  • ¥15 Stata:为什么reghdfe后的因变量没有被发现识别啊
  • ¥15 振荡电路,ADS仿真
  • ¥15 关于#c语言#的问题,请各位专家解答!