ember1205
Posts: 7
Joined: Thu Nov 10, 2016 12:39 am

Original Pi, can't upgrade OS

Thu Nov 10, 2016 12:43 am

Hi, all.

I have many, many years of working with Linux but zero experience with Debian. I used the NOOBS program to load Raspbian, set a static IP Address on the device, and attempted to do:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
The update seemed to go fine but the ugprade crashes every time I attempt to run it. I get a variety of different errors including EXT4 FS errors (read-only filesystem), corrupt files, and even one about not being able to restore backup copies of certain files.

Is there a limitation on performing the upgrade on this device because of its lower RAM? I'm using an 8G SD card and it appears that there should be plenty of disk space with roughly 1.8G free on the root filesystem before attempting an upgrade command.

When it crashes, I have to restart and run through a series of different commands to get things installed and "un-corrupted" before I can try again.

Can anyone give me some guidance here?

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 11:28 am

You have most likely a faulty SD card (or a baldy inserted one) or really bad powersupply.

What Pi model du you have ?

ember1205
Posts: 7
Joined: Thu Nov 10, 2016 12:39 am

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 2:08 pm

Thanks for the response.

I have the original Pi.

It's funny that you commented about the SD card because I replaced it with a new one last night and worked on it for HOURS and actually got everything done. It's great that these little things can do a lot (I've always loved linux for that), but it takes a REALLY long time just to do simple things like an OS upgrade / patching because of the slower CPU and lower RAM.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 2:16 pm

get a new micro sdcard burn the latest raspbian on it
job done.
now what PSU have you got - it may be that it has become not as good over the years
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

ember1205
Posts: 7
Joined: Thu Nov 10, 2016 12:39 am

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 2:18 pm

I downloaded the latest NOOBS, loaded Raspbian, then had to do the upgrade from there to get the newest packages (I never start with an unpatched system when building a new device). It took well over 90 minutes to do all of that with this Pi.

Power supply isn't the problem. It's a new, high-output mobile device charging device / power supply and was used through the entire process of install and upgrade after I replaced the bad SD card.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 2:24 pm

could be you have a bad sdcard
slap it in a windows machine and sd format it and run https://sosfakeflash.wordpress.com/h2testw/ on it
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 2:42 pm

The original image was so old that the updates for it were out of date, you'd need to do so much upgrading that it'll be much easier to just start again (as you did). A dist-upgrade would probably be necessary, along with plenty of other work to get your old wheezy image updated to Jessie with Pixel.

I think that the best bet is to start from a new image and reflash the sd card (once you have copied any desired data to your new card).
Doug.
Building Management Systems Engineer.

ember1205
Posts: 7
Joined: Thu Nov 10, 2016 12:39 am

Re: Original Pi, can't upgrade OS

Thu Nov 10, 2016 3:05 pm

BMS Doug wrote:The original image was so old that the updates for it were out of date, you'd need to do so much upgrading that it'll be much easier to just start again (as you did). A dist-upgrade would probably be necessary, along with plenty of other work to get your old wheezy image updated to Jessie with Pixel.

I think that the best bet is to start from a new image and reflash the sd card (once you have copied any desired data to your new card).
???

I started with NOOBS 2.0, which is the current version. Was that still the Wheezy release? And, if so, why hasn't it been updated to the new Jesse?

While I appreciate the responses to my original post, I suspect that either I missed including pertinent details or they simply aren't being read.

Return to “Beginners”