具体错误:

dpkg: 错误: 无法打开软件包的 info 文件 /var/lib/dpkg/available 以便读取: 没有那个文件或目录
E: 子进程 dpkg --set-selections 返回了一个错误号 (2)
E: Couldn't record the approved state changes as dpkg selection states

解决办法:

sudo dpkg --clear-avail