1
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)
karel
  • 114,770
SJSEng
  • 11

2 Answers2

1

Uninstall / Remove casper package

In this section, we are going to explain the necessary steps to uninstall casper package:

sudo apt remove casper

sudo apt autoclean && sudo apt autoremove

Then reinstall it

sudo apt update

sudo apt install casper

0

Try to run this on terminal:

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

And... this is my screenshot:

Casper error solve in Upgrading linuxmint (screenshot)

And this is worked in my Linux Mint