every time I try to install or update anything it gives this error

    dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory
    E: Sub-process /usr/bin/dpkg returned an error code (2)

open ternimal and type these one by one

sudo dpkg --configure -a

sudo apt-get -f install

sudo apt-get --fix-missing install

sudo apt-get autoclean

sudo apt-get clean

sudo apt-get autoremove

this should fix it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.