tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
rpm -qa | sort
The first line is to backup your database
The second to remove locks
The third to rebuild your database
The fourth to check if all is ok
My chromebook is fantastic! As it supports Linux integration feature, I can open a terminal and install every Debian based packages I want ...