Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th April 2012, 17:53
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default How does Ubuntu Update Manager upgrade packages selectively?

Hello,

I ran into an issue recently whereby Webmin caused Apache to tank during what seemed to be a routine package upgrade.

As it turns-out, Webmin uses 'apt-get install -y package-name', instead of 'apt-get upgrade', because the author is unaware of any means by which packages may be upgraded selectively using the latter command.

The details of the issue are described here: https://bugs.launchpad.net/ubuntu/+s...e2/+bug/969426

I scoured the relevant documentation for apt-get and indeed, the Webmin author is correct. There appears to be no facility for upgrading specific packages.

My question to the community is, how does Ubuntu's Update Manager upgrade packages individually? The interface provides a checkbox for each proposed update, and the user is able to pick-and-choose.

If anyone has any insight, it would be most appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2012, 20:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

You can upgrade packages like this:

Code:
apt-get install package1 package2 ...
I'm not sure if this is the way Ubuntu's Update Manager does it...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th April 2012, 21:36
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
 
Default

Thank you for the reply, Falko. Much appreciated.

Did you have a chance to look at the link that I cited in my initial post? There is a fundamental problem with using "install" over "upgrade". In short, with "install", there is the potential for packages to be removed and never reinstalled.

In the case of Apache, using 'apt-get install -y apache2' will cause libapache2-mod-php5 to be removed (for reasons explained in the link above). Needless to say, when the package installation script attempts to start Apache after the upgrade (or installation, in this case), Apache fails to start due to the presence of Mod-PHP-specific configuration directives. The only way to reconcile the problem is to reinstall libapache2-mod-php5 manually.

If any other ideas come to mind, I'd be grateful to hear them.
Reply With Quote
Reply

Bookmarks

Tags
apache, apt-get, debian, upgrade, webmin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build packages that can be installed with the ISPConfig update function. till Tips/Tricks/Mods 3 18th February 2008 13:10
Upgrade Ubuntu 7.04 to 7.10 (with KDE)? Andesh HOWTO-Related Questions 2 6th January 2008 20:48
Problem on restart bind9 satimis Server Operation 6 30th October 2007 02:01
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19


All times are GMT +2. The time now is 16:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.