使用网上常用的方法:
1.安装更新器
sudo apt-get update
sudo apt-get install update-manager-core
2.更新
sudo do-release-upgrade -d
提示找不到最新版本。
如果上诉命令不行使用:
sudo do-release-upgrade -p
查看系统版本:
1 |
<span style="font-family: arial, helvetica, sans-serif;">lsb_release -a</span> |
如果报:
1 2 3 |
<span style="font-family: arial, helvetica, sans-serif;">Usage: lsb_release [options] lsb_release: error: No arguments are permitted</span> |
进行安装:
1 |
<span style="font-family: arial, helvetica, sans-serif;">sudo apt-get install lsb-core</span> |
上述指令变成脚本:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<span style="font-family: arial, helvetica, sans-serif;">#!/bin/bash echo "`lsb_release -a`" echo `date` >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "apt-get update-----start" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "apt-get update-----start" apt-get update echo "apt-get update-----end" echo "apt-get update-----end" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo `date` >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "apt-get install update-manager-core-----start">> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "apt-get install update-manager-core-----start" apt-get install update-manager-core echo "apt-get install update-manager-core-----end" echo "apt-get install update-manager-core-----end">> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo `date` >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "sudo do-release-upgrade -p -----start" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "sudo do-release-upgrade -p -----start" do-release-upgrade -p echo "sudo do-release-upgrade -p -----end" echo "sudo do-release-upgrade -p -----end" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo `date` >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "sudo apt-get install lsb-core ----start" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "sudo apt-get install lsb-core ----start" sudo apt-get install lsb-core echo "sudo apt-get install lsb-core ----end" echo "sudo apt-get install lsb-core ----end" >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo `date` >> /root/systemUpgrade/system_upgrade_`date +\%Y\%m\%d`.log echo "`lsb_release -a`"</span> |
Ubuntu 12.04.4 LTS to 14.04.1 LTS upgrade: “no new release found”:
https://askubuntu.com/questions/502886/ubuntu-12-04-4-lts-to-14-04-1-lts-upgrade-no-new-release-found
也有使用此方法:
最后使用以下方法升级成功:
1. sudo apt-get update
2. sudo apt-get dist-upgrade
3. update-manager -d
Step3执行后会提示升级,要下载1.4G的数据,安装用1个半小时。