问题包损坏无法安装更新

问题包损坏无法安装更新

尝试安装 lazarus free pascal 后

broken packages
E: /var/cache/apt/archives/fp-units-rtl-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/rtl/si_c21g.ppu', which is also in package fpc 3.0.0
E: /var/cache/apt/archives/fp-compiler-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/ppc386', which is also in package fpc 3.0.0
E: /var/cache/apt/archives/fp-units-base-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/ncurses/ocrt.o', which is also in package fpc 3.0.0
E: /var/cache/apt/archives/fp-units-fcl-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/fcl-passrc/paswrite.ppu', which is also in package fpc 3.0.0
E: /var/cache/apt/archives/fp-units-gtk2-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/cairo/cairoft.o', which is also in package fpc 3.0.0
E: /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb: trying to overwrite '/usr/share/fpcsrc/3.0.0/rtl/android/jvm/java_sys_android.inc', which is also in package fpc-src 3.0.0
E: /var/cache/apt/archives/fp-utils-3.0.0_3.0.0+dfsg-2_i386.deb: trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/utils-lexyacc/lexlib.o', which is also in package fpc 3.0.0

答案1

转到终端并输入

sudo su

dpkg --configure -a

apt -f install

apt update

apt upgrade

apt autoremove 

希望能帮助到你

相关内容