首页 > 其他 > 详细

General procedures for upgrading Debian

时间:2020-12-11 14:21:17      阅读:24      评论:0      收藏:0      [点我收藏+]
  1. System backup.

  2. Check package status: show any packages which have a status of Half-Installed or Failed-Config, and those with any error status.

    $ dpkg --audit
  3. Inspect the status of all the packages on your system using aptitude GUI or dpkg on the command line.

    $ dpkg -l | pager
    $ dpkg --get-selections "*" > curr-pkgs.txt
  4. Check packages that are held by aptitude.

    $ aptitude search "~ahold"
  5. Set those packages held by aptitude to unhold state.

    $ aptitude unhold package_name
  6. Check packages that are held by apt-get.

    $ dpkg --get-selections | grep hold$
  7. Set those packages held by apt-get to install state.

    $ echo package_name install | dpkg --set-selections
  8. Remove or comment "proposed-updates" section in /etc/apt/sources.list.

  9. Change the version name in sources.list, then update the package index.

    $ apt-get update
  10. Perform minimal system upgrade.

    $ apt-get upgrade
  11. Perform full system upgrade.

    $ apt-get dist-upgrade

General procedures for upgrading Debian

原文:https://www.cnblogs.com/quantumman/p/14119783.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!