How to upgrade from 14.04 LTS or 15.10 to 16.04 from terminal.
Asked
Active
Viewed 5.5k times
3 Answers
8
You can use sed for editing your sources.list
file. I suggest you to backup it first.
To upgrade on 15.10:
sed -i -e "s/trusty/wily/g" /etc/apt/sources.list
apt-get update && apt-get dist-upgrade
To upgrade on 16.04:
sed -i -e "s/wily/xenial/g" /etc/apt/sources.list
apt-get update && apt-get dist-upgrade

monitor35
- 537
- 1
- 4
- 8
-
To upgrade on 16.04 from 14:
– Jean-Luc Barat Jul 24 '19 at 12:25sed -i -e "s/trusty/xenial/g" /etc/apt/sources.list
3
Try this first do:
sudo nano /etc/apt/sources.list
then change everything with trusty in it to either xenial (for 16.04) or wily (for 15.10)
then do:
apt-get update;apt-get upgrade -y
and then there you go, you have a fully upgraded 15.10/16.04 system, you do need to run
apt-get autoremove --purge -y;apt-get clean
afterwards

patrick
- 513
Software & Updates
>Updates
>Notify me of a new Ubuntu version
>For any new version
. Now, dosudo apt-get update
,sudo apt-get upgrade
and finallysudo do-release-upgrade
. If you just have thereFor long-term support versions
, it will not work because you cannot upgrade for some reason directly from LTS to LTS at the moment. – Léo Léopold Hertz 준영 Jun 07 '16 at 17:29-d
flag as mentioned in https://help.ubuntu.com/lts/serverguide/installing-upgrading.html. – edwinksl Jun 07 '16 at 18:59