pkg 安装损坏-如何修复?

pkg 安装损坏-如何修复?

下面请参见尝试删除 pkg;突触没有帮助,而且我不知道该怎么做...有什么方法可以在必要时强制删除 pkg?

$ sudo dpkg --remove libwayland-dev
dpkg: dependency problems prevent removal of libwayland-dev:
 libgtk-3-dev depends on libwayland-dev (>= 1.2.0).
dpkg: error processing package libwayland-dev (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 libwayland-dev

已识别 pkg 依赖项,但无法删除/修复...

$ sudo dpkg --remove libgtk-3-dev libcinnamon-desktop-dev libcinnamon-control-center-dev
dpkg: unrecoverable fatal error, aborting:
 files list file for package `libwayland-dev' contains empty filename

任何帮助都将不胜感激;尝试删除“libwayland-dev”,但文件显然存在安装错误(空文件名)?

答案1

要删除损坏的软件包,请运行sudo dpkg --remove --force-remove-reinstreq package_name

然后运行sudo apt-get update

相关内容