-1

I removed TIMESHIFT on Ubuntu and I followed the instructions in Timeshift - GitHub's ReadMe but after a succesfull removal it gives me this error, how can I delete this script?

Rsyncing /boot/efi into the filesystem before the call to timeshift.
/usr/bin/timeshift-autosnap-apt: riga 54: timeshift: comando non trovato
Unable to run timeshift-autosnap-apt! Please close Timeshift and try again. Script will now exit...

E: Problem executing scripts DPkg::Pre-Invoke '/usr/bin/timeshift-autosnap-apt' E: Sub-process returned an error code

andrew.46
  • 38,003
  • 27
  • 156
  • 232
glawon
  • 11

1 Answers1

2
  • I went to /usr/bin/

  • Found timeshift-autosnap-apt

  • Deleted it

  • Ran the command:

    sudo nano /usr/bin/timeshift-autosnap-apt
    
  • Entered the following:

    #!/bin/bash
    exit 0
    
  • Saved the file

  • Set execution permission:

    sudo chmod 755 /usr/bin/timeshift-autosnap-apt
    

And sudo apt upgrade ignored the script and worked succesfully.

Source that helped me to find the solution: How to force remove a package if dpkg removal script fails?

Answer moved here from OP's question.