• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.

Ubuntu 11.04

pgp_protector

Noted strange person
Dec 17, 2003
51,895
17,797
57
Earth For Now
Visit site
✟461,544.00
Gender
Male
Faith
Christian
Marital Status
Widowed
Politics
US-Others
For the Ubuntu pros.
Is there any issue in upgrading Ubuntu 11.04 -> 13.04
I've got a server at work (Web/ Database / Samba) that's running 11.04, but I won't be around it much anymore to babysit it, and the personal left. well I'd rather not give them the admin access to it as I'm more afraid of them doing damage to it then them keeping it running.
 

Sketcher

Born Imperishable
Feb 23, 2004
39,045
9,490
✟422,050.00
Faith
Non-Denom
Marital Status
Single
Politics
US-Republican
Why not migrate the content to a server already running 13.04? Even one-step Ubuntu upgrades from what I hear have a lot of potential to go south, and you should be ready to do a fresh install. The stakes are a lot higher on a production server. Migrations are a pain as well, but at least when they're done right, the downtime is minimal.
 
Upvote 0

pgp_protector

Noted strange person
Dec 17, 2003
51,895
17,797
57
Earth For Now
Visit site
✟461,544.00
Gender
Male
Faith
Christian
Marital Status
Widowed
Politics
US-Others
Why not migrate the content to a server already running 13.04? Even one-step Ubuntu upgrades from what I hear have a lot of potential to go south, and you should be ready to do a fresh install. The stakes are a lot higher on a production server. Migrations are a pain as well, but at least when they're done right, the downtime is minimal.

$0 budget.
 
Upvote 0

Sketcher

Born Imperishable
Feb 23, 2004
39,045
9,490
✟422,050.00
Faith
Non-Denom
Marital Status
Single
Politics
US-Republican
Can you afford the lost productivity of potentially hours or even days of downtime? Either way, it would be a loss of money. It is up to the decision-makers where you work to make the final assessment on which is more acceptable to them. They can either gamble on an in-line upgrade (across five versions, to boot), or invest in a new server. Personally, I would pick servers with LTS-release OSes, and budget for an upgrade every few years for once the LTS expires. But again, it is their money and company reputation, not mine.
 
Last edited:
Upvote 0

Qyöt27

AMV Editor At Large
Apr 2, 2004
7,879
573
39
St. Petersburg, Florida
✟89,359.00
Faith
Methodist
Marital Status
Single
Politics
US-Others
Even one-step Ubuntu upgrades from what I hear have a lot of potential to go south, and you should be ready to do a fresh install.
The one time I tried to do an in-place upgrade, this is exactly what happened. Granted, that was 6+ years ago and I've heard that it's gotten a lot better since then, but I'm not doing that again. Fresh installs can be rather easy to set up in order to hit the ground running, but it depends on how the initial install went.

It was actually during the process of prepping for 13.04's install that I finally found the solution that makes it fairly easy on the installation front. I'd read - and tried - suggestions for a couple release cycles that basically required using deselect to do the work (which also relies on the not-very-descriptive output of dpkg --get-selections), and trying this never worked out too well.

But down inside /var/log/apt/ is the real log of everything apt has done over the installation period, and this will tell you whether you installed, purged, or if something came in on a dist-upgrade. It also makes it easy to focus only on what changed after installation, since the contents of the base install will be the first entry or two, and then everything else is yours. You can get all of that, figure out which ones are actually necessary, and have the entire installation command at the end.

So you either use
less /var/log/apt/history.log
or
zless /var/log/apt/history.log.1.gz (and so on; as many as there are for the number of months 11.04 has been installed)

to view them or dump them out to a another file you can write to. Then use this for the analysis work to see what to keep and what not to keep and construct a one-line installation command for. Also remember that if any external repositories were added, these need to be written down as well so that any packages from them can be properly restored.


Another invaluable tool is dpkg-repack, which can reconstruct a .deb file from an installed program (such as one installed from source only, provided it was installed using either debian rules or checkinstall). The typical use case for it is not to migrate between old and new versions of the OS, but to move horizontally between two computers with the same version. Using it for vertical migration is a bit lazy, but if that's the only thing that can be done in time/money constraints, then so be it.


The other part is making sure that - at the very least - that / and /home are on different partitions so that you can just write over the old / with 13.04 and voila, the configuration gets kept and the install command worked out above will manage to get it all back (or reasonably close, accounting for differences to some package names or removal of certain stuff) to how it was with 11.04. A separate /home is old hat kind of stuff but I can't imagine going without it now.


In summary,
  • Separate / and /home partitions is a precondition.
On 11.04
  • Make note of all the external repositories, if applicable.
  • Unless you want to recompile any source-only packages, try to use dpkg-repack to recreate them (and hope that nothing really integral in the base system has changed so it can install cleanly on 13.04).
  • Assess the contents of /var/log/apt/history.log and its sisters to get the list of necessary post-install software.
On 13.04
  • Restore the external repositories, if applicable (add-apt-repository can be used if you don't want to mess with doing it through the GUI or editing sources.list by hand).
  • Use the installation command garnered from /var/log/apt/history.log.
  • Install any of those regenerated .deb files, if applicable.
  • Assorted other post-install things like dist-upgrading the kernel and so forth.
 
Upvote 0

Sketcher

Born Imperishable
Feb 23, 2004
39,045
9,490
✟422,050.00
Faith
Non-Denom
Marital Status
Single
Politics
US-Republican
Qyöt27;63451669 said:
The other part is making sure that - at the very least - that / and /home are on different partitions so that you can just write over the old / with 13.04 and voila, the configuration gets kept and the install command worked out above will manage to get it all back (or reasonably close, accounting for differences to some package names or removal of certain stuff) to how it was with 11.04. A separate /home is old hat kind of stuff but I can't imagine going without it now.
I will say that if one absolutely must try this, take an image backup first, or rsync everything to a backup partition or drive so that if worst comes to worst, you can roll back. Depending on how much data you have to move, this can take hours, but if /home is on a separate partition it shouldn't take nearly as many hours as it otherwise would. And backups of /home (including all hidden files and dirs) are already being taken regularly, correct OP?

The best solution however, is to migrate the data over to a new server with the new OS already set up. I cannot speak for the SAMBA aspect of the server, but for websites and databases, the downtime can be cut down to 5 minutes if all goes well and everything is properly tested first. Worst comes to worst, take another 5 minutes to switch it back. This depends on all of your domains' DNS TTLs having been lowered to 300 seconds at least 48 hours prior to this step, and proper testing of all your content on the new server before making it live.
 
Last edited:
Upvote 0

EphesiaNZ

It's me! Who else could it be...
Apr 19, 2011
5,471
453
New Zealand
✟30,297.00
Gender
Male
Faith
Christian
Marital Status
Married
the old adage - if it ain't broke....

Don't install Ubuntu...:)

Seriously, if I was updating from 11.04 the I would go to 12.04 as its LTS with 5 year support or alternately, leave it until 14.04 come out next year. Remember non-LTS releases (eg 13.04) are only supported for 9 months now. Now 13.04 is down to 7 months support which is a waste of time installing IMHO.

ihPiQ.png


So 12.04 or wait for 14.04 or suffer multiple upgrades.
 
Upvote 0

RDKirk

Alien, Pilgrim, and Sojourner
Site Supporter
Mar 3, 2013
42,295
22,873
US
✟1,747,769.00
Faith
Christian
Marital Status
Married
Don't install Ubuntu...:)

Seriously, if I was updating from 11.04 the I would go to 12.04 as its LTS with 5 year support or alternately, leave it until 14.04 come out next year. Remember non-LTS releases (eg 13.04) are only supported for 9 months now. Now 13.04 is down to 7 months support which is a waste of time installing IMHO.

So 12.04 or wait for 14.04 or suffer multiple upgrades.

I agree with this. The interim upgrades are for developers and hobbyists ("hackers" in the good sense), not for people who want to use the OS only productively. The support releases for 12.04 will contain anything critical for straightforward users.
 
Upvote 0

Sketcher

Born Imperishable
Feb 23, 2004
39,045
9,490
✟422,050.00
Faith
Non-Denom
Marital Status
Single
Politics
US-Republican
Don't install Ubuntu...:)

Seriously, if I was updating from 11.04 the I would go to 12.04 as its LTS with 5 year support or alternately, leave it until 14.04 come out next year. Remember non-LTS releases (eg 13.04) are only supported for 9 months now. Now 13.04 is down to 7 months support which is a waste of time installing IMHO.

ihPiQ.png


So 12.04 or wait for 14.04 or suffer multiple upgrades.

More than enough time to budget for new servers when sticking by the LTS model.
 
Upvote 0

EphesiaNZ

It's me! Who else could it be...
Apr 19, 2011
5,471
453
New Zealand
✟30,297.00
Gender
Male
Faith
Christian
Marital Status
Married
More than enough time to budget for new servers when sticking by the LTS model.

Quite right.

Also if you go with 12.04 you can also use the updates and backports software repositories to bring in newer versions of some software to stay more up to date if needed.
 
Upvote 0

Sketcher

Born Imperishable
Feb 23, 2004
39,045
9,490
✟422,050.00
Faith
Non-Denom
Marital Status
Single
Politics
US-Republican
Quite right.

Also if you go with 12.04 you can also use the updates and backports software repositories to bring in newer versions of some software to stay more up to date if needed.

Very true. Security patches are also typically backported.
 
Upvote 0