This document will guide you through upgrading an Ubuntu 12.04 (Precise) server to an Ubuntu 14.04 (Trusty) server.
We highly recommend that you perform all of these steps on a test system before making changes to your production server -- that way, you can minimize downtime by knowing what to expect.
You should plan for some downtime -- there are big differences between the two distributions, and things don't always go as smoothly as we would hope.
Note that Ubuntu recommends waiting for the first dot release before performing an upgrade:
"Upgrades between LTS releases are not enabled by default until the first point release, 14.04.1, scheduled for July. It is recommended that most LTS users wait until then before upgrading to 14.04."
You can see the full release notes here (we'd recommend reading these before performing an upgrade):
https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes
Also, Ubuntu 14.04 comes with PHP 5.5.9. Verify that your PHP applications support that PHP version.
For those wishing to upgrade, the following steps will guide you through the process --
Upgrade Guide
Backups
Make sure you have full backups of everything on your server that is important to you. At the very least, you should generate full backups of all your Virtual Servers. You may also want to make a backup of everything in /etc.
Package Updates
Make sure your system is fully up to date by running these commands:
sudo apt-get update sudo apt-get upgrade
Reset Dependency Flags
These packages are already installed, but the following command will tell apt not include them anytime "apt-get autoremove" is run:
apt-get install bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd webmin usermin webmin-virtual-server libcrypt-ssleay-perl webmin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-awstats webmin-virtualmin-mailman webmin-virtualmin-htpasswd clamav-base clamav-daemon clamav clamav-data clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin usermin-virtual-server-theme procmail-wrapper php-pear php5 php5-cgi webmin-security-updates
Update Manager
Make sure you have the update manager core by running this command:
sudo apt-get install update-manager-core
Begin Upgrade
Run the following command to begin the upgrade process. Ubuntu suggests running this from the console, though it should also work from SSH:
do-release-upgrade -d
And then follow the on-screen instructions.
In general, if you are prompted about whether to replace a config file with a new one, or keep your existing one -- we would suggest keeping your existing config.
Coffee
Now is an excellent time to go get some coffee or another beverage of choice, while the packages are downloaded and installed :-)
Reboot
When the upgrade completes, it will prompt you to reboot your system. Perform the reboot, and when your system comes back online, there's just a few more things to change.
Change apt config
Edit /etc/apt/sources.list, and uncomment the Virtualmin repositories. Then change any references of "precise" in those repositories to "trusty".
Run this command, and make sure the new apt config works properly:
apt-get update
Apache Config
There were some significant changes made to Apache. You'll need to make the following updates to/etc/apache2/apache2.conf
:
Comment out the following lines that appear in the apache2.conf:
Include httpd.conf Include conf.d LockFile ${APACHE_LOCK_DIR}/accept.lock
Re-enable Apache modules:
a2enmod suexec a2enmod actions
Now enable some Apache modules:
a2enmod suexec a2enmod rewrite
Then restart Apache:
service apache2 restart
Verify DNS Config
Edit /etc/resolv.conf
, and verify that the nameserver
line is configured to use 127.0.0.1
as a nameserver.
Test
That's it for configuring your updated system. Now it's time to test your services and websites!
转载:https://www.virtualmin.com/documentation/system/os/ubuntu-precise-to-trusty
相关推荐
原来的ssh扫描报太多漏洞了,整理了下一键安装的脚本直接升级到最新的; #update Ubuntu12.04 : OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019 #old : OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
Ubuntu12.04 nginx python uwsgi Django安装步骤
Ubuntu 12.04 菜鸟完全使用教程让你用最快的速度熟悉使用Ubuntu 12.04!
Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...
libc6 for ubuntu 12.04 所有依赖的库都打包 .
用 VMware 安装 Ubuntu 12.04详细过程图解
这是一个令很多linux爱好者振奋的日子,Ubuntu 12.04 LTS发布势必会掀起新的升级高潮,而这篇文章给大家介绍一下升级后的最新版Ubuntu的新特点及需要安装的软件,它们使的最新版本Ubuntu 12.04 LST具有了更强的吸引...
Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!
Ubuntu12.04下的JDK安装,首先到官网上下载jdk-7u51-linux-x64.tar.gz。
Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update
最全,最好用 自己试试啊ubuntu12.04 vim 配置
ubuntu12.04 server版本,虚拟机共享宿主机的无线网上网,亲测,有图。
ubuntu12.04安装及配置过程详解
ubuntu12.04下Java开发环境的搭建
详细描述了ubuntu12.04版本的使用,对于linux的详细学习还是要看书
ubuntu12.04 服务器 入门指南,包含有关如何安装和配置各种服务器的信息。
VMWare8.0安装Ubuntu12.04教程,傻瓜式安装教程,很详细
Ubuntu 12.04 菜鸟使用手册(全)
zabbix2.03在ubuntu12.04上的安装(最新)
在ubuntu12.04下可以通过这个主题包快速的安装苹果mac主题,我自己也正在用这个主题,分享给大家。