Ubuntu apt zsys 错误

Ubuntu apt zsys 错误

所以我在升级时不断收到此错误,但我找不到解决方案。我在 Ubuntu 20.04 上

sudo apt dist-upgrade
Reading package lists...
Done Building dependency tree
Reading state information...
Done Calculating upgrade... Done 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed. 
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
ERROR couldn't connect to zsys daemon: connection error: desc = "transport: Error while dialing dial unix /run/zsysd.sock: connect: no such file or directory"
Setting up zsys (0.4.6) ... dpkg: error processing package zsys (--configure):  installed zsys package 
post-installation script subprocess returned error exit  status 1
Errors were encountered while processing:  zsys ERROR couldn't connect to zsys daemon: connection error: desc = "transport: Error while dialing dial unix /run/zsysd.sock: connect: no such file or directory"
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该怎么做才能解决这个错误?

答案1

这里有一个错误zsyshttps://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1886214

一个解决方案是这样做:

  1. 启用proposed分支在您的存储库中并更新。
$ echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed main" | sudo tee /etc/apt/sources.list.d/proposed-repositories.list
$ sudo apt update
  1. 安装zsys v0.4.7(截至 2020 年 8 月 10 日)方式:
$ sudo apt -t $(lsb_release -cs)-proposed install zsys
  1. 如果不想保留建议的分支,请将其删除:
$ sudo rm /etc/apt/sources.list.d/proposed-repositories.list
$ sudo apt update

相关内容