Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Beginners Questions • [Software] unable to upgrade to Debian 12 - apthook returned error (127)

$
0
0
I was following this guide to upgrade from Debian 11 to Debian 12
https://linuxiac.com/how-to-upgrade-to- ... debian-11/

When I get to the line "sudo apt upgrade --without-new-pkgs" it fails with the following error

Code:

339 upgraded, 0 newly installed, 0 to remove and 652 not upgraded.Need to get 0 B/139 MB of archives.After this operation, 24.3 MB of additional disk space will be used.Do you want to continue? [Y/n] yExtracting templates from packages: 100%Preconfiguring packages .../bin/sh: 1: /usr/bin/notifiarr: not foundE: Sub-process /usr/bin/notifiarr --apthook returned an error code (127)E: Failure running script /usr/bin/notifiarr --apthook
It seems to be notifiarr is not properly removed, but it will not let me install it, and it will not let me uninstall it

Code:

$ sudo apt install -f notifiarrReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following NEW packages will be installed:  notifiarr0 upgraded, 1 newly installed, 0 to remove and 991 not upgraded.Need to get 0 B/12.7 MB of archives.After this operation, 26.3 MB of additional disk space will be used./bin/sh: 1: /usr/bin/notifiarr: not foundE: Sub-process /usr/bin/notifiarr --apthook returned an error code (127)E: Failure running script /usr/bin/notifiarr --apthook$ sudo apt remove notifiarrReading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage 'notifiarr' is not installed, so not removed0 upgraded, 0 newly installed, 0 to remove and 991 not upgraded.
how can i remove this so that I can upgrade? thanks

edit: I deleted /etc/apt/apt.conf.d/999notifiarr.conf and everything works now

Statistics: Posted by gluhend — 2024-04-19 04:08 — Replies 1 — Views 52



Viewing all articles
Browse latest Browse all 3260

Trending Articles