Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Update, Upgrade, Dist-Upgrade?

Sun Feb 24, 2013 7:33 pm

I recently decided to update my stable Raspbian Wheezy image because of the most recent incremental release. I had originally started with the October 2012 image and had updated/upgraded once before when the December 2012 release came out. Couldn't remember all of the different commands so I looked them up once again. It took a few tries because not all of the commands wanted to work nice together. The "sudo apt-get update" always finished properly, but when I followed that with "sudo apt-get upgrade", it finished with several errors and wouldn't reboot. Tried it more than once with similar results. What did work was to follow the update with the "sudo apt-get dist-upgrade". I did follow one suggestion to string the two commands together like this:

sudo apt-get update&&sudo apt-get dist-upgrade

I'm not sure if this is the normal expectation or if "apt-get" was just having a bad hair day.

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Update, Upgrade, Dist-Upgrade?

Sun Feb 24, 2013 7:38 pm

Leave some spaces around the ampersands.

e.g.

Code: Select all

sudo apt-get update && sudo apt-get dist-upgrade
Apt-get is not very graceful around network errors/problems, so make sure your network config is up to scratch.

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: Update, Upgrade, Dist-Upgrade?

Sun Feb 24, 2013 10:27 pm

tonyhughes wrote:Leave some spaces around the ampersands.

e.g.

Code: Select all

sudo apt-get update && sudo apt-get dist-upgrade
Apt-get is not very graceful around network errors/problems, so make sure your network config is up to scratch.
Worked fine without the extra spaces and, no, the errors were not due to network issues.

Return to “Beginners”