Score:-1

'timeshift: Command not found' following Timeshift removal

pr flag

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
Score:2
ca flag
  • 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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.