error using apt

i get a Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1) error trying to do anything using apt (tried apt upgrade, apt purge, apt remove, etc.) dpkg --configure -a output ( part of it at least, the rest doesn't fit)
dpkg: error processing package libadwaita (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
shared-mime-info
gtk4
libvte
webkitgtk-6.0
gtk3
gtk2
gtk-layer-shell
libxfce4ui
ristretto
libadwaita
dpkg: error processing package libadwaita (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
shared-mime-info
gtk4
libvte
webkitgtk-6.0
gtk3
gtk2
gtk-layer-shell
libxfce4ui
ristretto
libadwaita
7 Replies
Dreadnought
Dreadnought2d ago
have you tried apt --fix-broken install?
when_the_h
when_the_hOP2d ago
gives the same error
Dreadnought
Dreadnought2d ago
tried to remove these packages?
when_the_h
when_the_hOP2d ago
tried with apt purge but that doesn't work
Dreadnought
Dreadnought2d ago
I remember same thing happened to me too. nodejs just broke my package manager. But I uninstalled it and it worked fine
when_the_h
when_the_hOP2d ago
how did you uninstall
Dreadnought
Dreadnought2d ago
can't remember that much. All I did is probably dpkg --configure -a

Did you find this page helpful?