安装 Google Chrome 软件包时出错

安装 Google Chrome 软件包时出错

实际上,我尝试安装的任何东西都会发生错误,但是当udo apt-get install google-chrome-stable给出 s install 命令时,会出现此错误:

invoke-rc.d: initscript spice-vdagent, action "restart" failed.
● spice-vdagentd.service - Agent daemon for Spice guests
   Loaded: loaded (/lib/systemd/system/spice-vdagentd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-02-12 10:57:44 -03; 5ms ago
  Process: 15881 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS (code=exited, status=1/FAILURE)
  Process: 15880 ExecStartPre=/bin/rm -f /var/run/spice-vdagentd/spice-vdagent-sock (code=exited, status=0/SUCCESS)

fev 12 10:57:44 shinier01 systemd[1]: Starting Agent daemon for Spice guests...
fev 12 10:57:44 shinier01 spice-vdagentd[15881]: bind /var/run/spice-vdagentd/spice-vdagent-sock: No such file or directory
fev 12 10:57:44 shinier01 spice-vdagentd[15881]: Fatal could not create server socket /var/run/spice-vdagentd/spice-vdagent-sock
fev 12 10:57:44 shinier01 systemd[1]: spice-vdagentd.service: Control process exited, code=exited status=1
fev 12 10:57:44 shinier01 systemd[1]: spice-vdagentd.service: Failed with result 'exit-code'.
fev 12 10:57:44 shinier01 systemd[1]: Failed to start Agent daemon for Spice guests.
dpkg: erro ao processar o pacote spice-vdagent (--configure):
 installed spice-vdagent package post-installation script subprocess returned error exit status 1
Erros foram encontrados durante o processamento de:
 spice-vdagent

我已经尝试过以下命令:

sudo apt-get clean
sudo apt-get install --reinstall 
rm -f /var/lib/dpkg/lock
rm -f /var/cache/apt/archives/lock
apt-get update
apt-get -f install && dpkg --configure -a
apt-get -f install

但没有解决任何问题,有人可以帮助我,告诉我如何从 spice-vdagentd 中消除这个错误吗?

答案1

我遇到了同样的问题,当尝试安装某些东西时,apt 总是会出现这个错误。

我可以通过创建它抱怨的目录来修复它:

sudo mkdir /var/run/spice-vdagentd

相关内容