错误更新Casper

错误更新Casper
The following packages will be upgraded:
  casper
1 upgraded, 0 newly installed, 0 to remove and 181 not upgraded.
Need to get 0 B/52.0 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 352376 files and directories currently installed.)
Preparing to unpack .../casper_1.470_amd64.deb ...
Unpacking casper (1.470) over (1.465) ...
dpkg: error processing archive /var/cache/apt/archives/casper_1.470_amd64.deb (--unpack):
 trying to overwrite '/usr/share/initramfs-tools/scripts/casper-premount/20iso_scan', which is also in package lupin-casper 0.57build1
update-initramfs: deferring update (trigger activated)
Errors were encountered while processing:
 /var/cache/apt/archives/casper_1.470_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

卸载/删除 casper 包

在本节中,我们将解释卸载 casper 包的必要步骤:

sudo apt 删除 casper

sudo apt autoclean && sudo apt autoremove

然后重新安装

sudo apt 更新

sudo apt 安装 casper

答案2

尝试在终端上运行此命令:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/casper_1.470_amd64.deb 

这是我的截图:

升级 linuxmint 时 Casper 错误解决(截图)

这在我的 Linux Mint 中有效

相关内容