Cannot install anything (.deb files)

Hey there, not sure if this is the right area to post this.
Screenshot from 2021-10-05 18-33-08
I happen to get this anytime I try installing a .deb file, and I can't seem to figure out what's wrong. Anyone have any answers/guides for this?

Can you please try;

sudo apt install deborphan

Then run:
sudo apt clean && sudo apt autoremove && sudo deborphan | xargs sudo apt remove --purge

Reboot, then test installing any .deb package.

1 Like

Works for me, although I still do get the error, surprisingly enough, it does install the .deb file. Thanks and I appreciate how active you are on this forum :slight_smile:

EDIT: Apparently I can't install stuff through the terminal line somehow.

Can you please run:

sudo dpkg --configure -a

And see if that gets rid of the error once and for all?

Nope it didn't, the error still stays, and whenever I try downloading something via the terminal line, I get "dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error
exit status 10
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)"
Strangely enough, I'm able to install stuff through the software store just fine.

sudo rm /var/lib/dpkg/info/r8168-dkms*

sudo dpkg --configure -D 777 r8168-dkms

sudo apt -f install

OR if you prefer to remove instead of install

sudo apt remove --purge r8168-dkms

2 Likes

Yup, this works flawlessly. Thanks.

2 Likes