umount -l -f /path/to/hung/stale/mount-point
Start by using these commands (repeate and reorder as needed)
apt-get clean apt-get autoclean apt-get check dpkg --configure -a apt-get autoremove apt-get update --fix-missing apt-get -f install Encourage at Dist Upgrade with a GUI: do-release-upgrade -d -f DistUpgradeViewGtk3Cheat Sheet If this fails with a particular package id'd. And to use a large hammer...
dpkg --remove --force-remove-reinstreq <package name>Remove the package's very existance...
vi /var/lib/dpkg/statusFind the block for the package and remove it.
find / -mount -name <package name>* -print Another way to get past a 'stuck' configuration is:
post.instillation
mv /var/lib/dpkg/info/<package name>.postinst /var/lib/dpkg/info/00-<package name>.postinst
yum updateyum clean all
rm -rf /var/cache/yum
ls -ld /var/lib/rpm/__db.00*
rm -rf /var/lib/rpm/__db.00*
yum distro-sync
yum makecache
yum search kernel |egrep ^kernel | egrep uek |grep -v grep
yum kernel-uek-devel.x86_64
yum install kernel-uek-debug-devel.x86_64
yum install "kernel-devel-uname-r == $(uname -r)"
yum install kernel-headers-$(uname -r)
yum install kernel-headers kernel-devel
package-cleanup --dupes ### list dupes
package-cleanup --cleandupes ### remove dups
yum history
yum-complete-transaction --cleanup-only
cd /lib/systemd/systemegrep IPAddressDeny *systemd-udevd.service
yum list installed <package name> ### find the name to use yum clean allIf a file will not update note the name and remove it (and sometimes dependences).
yum remove <package name> yum update
package-cleanup --problemspackage-cleanup --orphansyum list extraspackage-cleanup --leaves yum install "kernel-devel-uname-r == $(uname -r)"
yum install linux-headers-$(uname -r)
/etc/yum/pluginconf.d/priorities.conf and set enabled = 0.