![问题包损坏无法安装更新](https://linux22.com/image/990770/%E9%97%AE%E9%A2%98%E5%8C%85%E6%8D%9F%E5%9D%8F%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E6%9B%B4%E6%96%B0.png)
尝试安装 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
希望能帮助到你