zoukankan      html  css  js  c++  java
  • window 10 bash 14.04 升级至16.04

    1、获取root权限

    sudo passwd root
    su root

    2、把所有包升级至 14.04 的最新版

    aptitude update
    aptitude full-upgrade -y
    

    3、更改更新源为16.04

    vim /etc/apt/sources.list
    # 清空文件后粘贴如以下代码:
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    # :wq 保存退出

    4、升级至 16.04

    aptitude update
    aptitude safe-upgrade -y
    #注1:升级过程中会提示你重启服务(restart services),选yes
    #注2:还会出现文件冲突,保留当前版本(current version)即可,输入N
    

    5、把所有包升级至 16.04 (xenial) 的最新版,并重装丢失的aptitude包,最后清理无用包

    apt-get dist-upgrade
    apt-get install aptitude
    apt-get autoremove
    
  • 相关阅读:
    正则表达式
    eclipse python开发环境搭建
    python中的构造函数和析构函数
    socket网络编程中的同步,异步,阻塞式,非阻塞式,有何联系与区别?
    Render和template?
    什么是MemCache
    python下 help()使用方法
    Tornado模块分类和各模块之间的关系
    把python项目部署到centos里
    Jquery对回复者添加匿名评论选项
  • 原文地址:https://www.cnblogs.com/david_king/p/7774284.html
Copyright © 2011-2022 走看看