E: Sub-process dpkg --set-selections returned an error code (2) E: Couldn't clean the currently selected dpkg states
sudo rm /var/lib/dpkg/available
sudo touch /var/lib/dpkg/available
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'