Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:18:51+00:00 2026-06-17T19:18:51+00:00

when I login to a server (Ubuntu 12.04) I’m presented the following message: 12

  • 0

when I login to a server (Ubuntu 12.04) I’m presented the following message:

12 packages can be updated.
10 updates are security updates.

Resolving it “by hand” is easy of course (apt-get update && apt-get upgrade), but due to the fact that the server is (partly) provisioned with Chef, I wonder whether there’s a good way to include this programmatically into the recipes?

The “apt” cookbook doesn’t seem to provide something related 🙁

Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:18:52+00:00Added an answer on June 17, 2026 at 7:18 pm

    It’s generally a bad idea to automate package updates/upgrades as this can obviously break applications if not properly tested first.

    One way to solve this is to have a cookbook lock or hold the repository at a specified version, and then thoroughly test it in development before pushing it out to production.

    On Amazon Linux you can retrieve a unique url of the yum repository at it’s current state. So you can run an update/upgrade on dev, find out the unique url and push that out to prod. That will prevent Chef from updating to any newer packages than you’ve tested.

    I’m not as familiar with Ubuntu and apt-get, but it looks like you can do what I’m talking about with Pinning or Holding: https://help.ubuntu.com/community/PinningHowto

    So in summary, you want to upgrade/update a dev machine, you test it, find out what the repo state is and freeze all packages to those versions. Then you freeze prod’s repo to those states. Then you just have the cookbook run ‘apt-get -y upgrade’ as Draco mentioned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following steps to update code on server after login to server:
Hi I've the following script that make an ssh login to my server. spawn
From android how can i connect to a server as in ubuntu and view
i install phpmyadmin on my ubuntu 10.4 but its can't login this is the
I'm attempting to login to an Ubuntu server and search logs at several different
How do I enable root login to an Ubuntu Server 12.04? That is, to
I configured my email server following the tutorial https://help.ubuntu.com/community/PostfixDovecotSASL Now when I telnet myserver.com
I am using SSH to login to an ubuntu server. However, I am not
I'm using shell to login to an ubuntu server. I want to enable curl
I have this horribly stripped delphi code that basically login to server, save cookie

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.