-
System backup.
-
Check package status: show any packages which have a status of
Half-Installed
orFailed-Config
, and those with any error status.$ dpkg --audit
-
Inspect the status of all the packages on your system using
aptitude
GUI ordpkg
on the command line.$ dpkg -l | pager $ dpkg --get-selections "*" > curr-pkgs.txt
-
Check packages that are held by
aptitude
.$ aptitude search "~ahold"
-
Set those packages held by
aptitude
tounhold
state.$ aptitude unhold package_name
-
Check packages that are held by
apt-get
.$ dpkg --get-selections | grep 'hold$'
-
Set those packages held by
apt-get
toinstall
state.$ echo package_name install | dpkg --set-selections
-
Remove or comment "proposed-updates" section in
/etc/apt/sources.list
. -
Change the version name in
sources.list
, then update the package index.$ apt-get update
-
Perform minimal system upgrade.
$ apt-get upgrade
-
Perform full system upgrade.
$ apt-get dist-upgrade