![pkg 安装损坏-如何修复?](https://linux22.com/image/985885/pkg%20%E5%AE%89%E8%A3%85%E6%8D%9F%E5%9D%8F-%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%EF%BC%9F.png)
下面请参见尝试删除 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