阿里云ubuntu如何升级

0.看系统版本

  1. lsb_release -a
1. 升级补丁
  1. apt-get -y update
  2. apt-get -y upgrade
  3. apt-get -y dist-upgrade
2. 升级系统
  1. 编辑源
  2. vi /etc/apt/sources.list
  3. deb http://us.archive.ubuntu.com/ubuntu/ VERSION main restricted universe multiverse
  4. deb http://us.archive.ubuntu.com/ubuntu/ VERSION-security main restricted universe multiverse
  5. deb http://us.archive.ubuntu.com/ubuntu/ VERSION-updates main restricted universe multiverse
  6. deb http://us.archive.ubuntu.com/ubuntu/ VERSION-proposed main restricted universe multiverse
  7. deb http://us.archive.ubuntu.com/ubuntu/ VERSION-backports main restricted universe multiverse
  8. deb-src http://us.archive.ubuntu.com/ubuntu/ VERSION main restricted universe multiverse
  9. deb-src http://us.archive.ubuntu.com/ubuntu/ VERSION-security main restricted universe multiverse
  10. deb-src http://us.archive.ubuntu.com/ubuntu/ VERSION-updates main restricted universe multiverse
  11. deb-src http://us.archive.ubuntu.com/ubuntu/ VERSION-proposed main restricted universe multiverse
  12. deb-src http://us.archive.ubuntu.com/ubuntu/ VERSION-backports main restricted universe multiverse
  13. 升级
  14. apt-get -y update
  15. apt-get -y upgrade
  16. apt-get -y dist-upgrade
  17. 重启
  18. reboot

来源:郑摇天博客(微信:zhengyaotian8),欢迎分享本文,转载请保留出处!