无法正确删除 Lazarus,错误退出状态 2

无法正确删除 Lazarus,错误退出状态 2

我尝试安装 Lazarus,但没有成功,所以我尝试将其删除。

 installed lazarus-src-2.2 package post-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping (<-- translated PL to EN)
Errors were encountered while processing:
 lazarus-src-2.2
Processing has been stopped due to a occurance of too many errors (<-- translated PL to EN)
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

Ubuntu 存储库提供的 Lazarus 软件包通常为旧版本。因此,我通常通过从其网站下载来安装(或升级)Lazarus。

去做这个:

  • fpc...首先从lazarus...您的系统中删除/清除所有带有类似名称的软件包:
$ sudo apt purge fpc*
  • 下载三个.deb软件包最新版本SourceForge网站到一个临时位置,比如说/tmp

  • 然后,首先fpc...使用以下命令安装软件包:

$ sudo apt install /tmp/fpc-src_3.2.2-210709_amd64.deb
$ sudo apt install /tmp/fpc-laz_3.2.2-210709_amd64.deb

最后lazarus...使用以下命令打包:

$ sudo apt install /tmp/lazarus-project_2.2.4-0_amd64.deb

相关内容