我的包管理器出了什么问题?

我的包管理器出了什么问题?

我的系统每次安装新软件后都会遇到错误:

sh: 1: /bin/echo: Permission denied
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code

我的包管理器出了什么问题?

stat /bin/echo
  File: /bin/echo
  Size: 0           Blocks: 0          IO Block: 4096   regular empty file
Device: 802h/2050d  Inode: 3932206     Links: 1
Access: (0664/-rw-rw-r--)  Uid: (    0/    root)   Gid: (   43/    utmp)
Access: 2018-12-01 08:03:07.846890937 +0800
Modify: 2018-12-01 08:03:07.846890937 +0800
Change: 2018-12-01 08:03:07.846890937 +0800
 Birth: -

我的操作系统信息:

uname -a
Linux hwy 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

答案1

sudo apt install --reinstall coreutils
sudo apt autoremove
stat  /bin/echo
  File: /bin/echo
  Size: 31464       Blocks: 64         IO Block: 4096   regular file
Device: 802h/2050d  Inode: 3932296     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-12-17 18:41:38.876797380 +0800
Modify: 2017-02-22 20:23:45.000000000 +0800
Change: 2018-12-17 18:41:32.229517688 +0800
 Birth: -

相关内容