pepto20
Posts: 2
Joined: Tue Jan 10, 2017 7:00 pm

apt-get upgrade problem

Sat May 27, 2017 12:49 pm

Hi everyone!

I had a perfectly working raspberry pi for a week until I decided to do the sudo apt-get update and sudo apt-get upgrade for the first time. The update part was fine but I got an error on the upgrade part opening some package. After trying few options (none of them worked), I decided to reinstall everything since it is a fresh rbpi and I wanted it clean.

Now, I tried different solutions (Noobs, Noobs lite, Berryboot, because I want to dual boot with openelec) and I CANT pass the upgrade command. It always fails and end with an input/output error after which I need to unplug the rbpi manually because it is not responding anymore. I looked on every possible forum and never got the answer to my problem.

I think it might come from my SD card : a 64 GB Lexar class 10 card. (I wanted lot of space to use it as a media center + try plenty of different stuff on raspbian) That's because when I boot, even the first time. I get a FAILED flag at LSB line saying : could not expand root filesystem to fill the SD card (something like that...)

So the last thing I tried are the following :

- Format the SD card on my mac with disk utility to MS-DOS or use ApplePi-Baker to format it
- Download berryboot and drag everything into the SD card
- Boot and install openelec + last version of raspbian from berryboot menu
- activate ssh
- run sudo apt-get update then sudo apt-get upgrade

The error I get is the following :

Preparing to unpack .../ca-certificates_20141019+deb8u3_all.deb ...
Unpacking ca-certificates (20141019+deb8u3) over (20141019+deb8u1) ...
dpkg: error processing archive /var/cache/apt/archives/ca-certificates_20141019+deb8u3_all.deb (--unpack):
unable to sync file '/usr/share/ca-certificates/mozilla/Comodo_Secure_Services_root.crt.dpkg-new': Input/output error

Last time I did it, same thing happened with tzdata package... I tried to clear the archives files and reinstall tzdata, erase the tzdata lines in /var/lib/dpkg/status file then reinstall...none of those worked.

Can anyone help me?

Thanks!

runboy93
Posts: 352
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: apt-get upgrade problem

Sat May 27, 2017 1:03 pm

Maybe time to buy another microSD card (sandisk and samsung cards recommended)

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: apt-get upgrade problem

Sat May 27, 2017 4:43 pm

Once you install any RPI OS img or install and boot NOOBS (or Berryboot on PINN) the card will have more than 1 partition. Many formatting problems will only format the first partition. That is why https://www.raspberrypi.org/documentati ... n/noobs.md tells you to use the SD Card Association's formatter and set 'Size Adjustment' to on. That page also tells you that if the card is 64 Byte or larger you need an additional step to change from exFAT to FAT32.

None of that is necessary when writing an image with Win32DiskImager or Etcher.

User avatar
Paeryn
Posts: 2966
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: apt-get upgrade problem

Sat May 27, 2017 7:49 pm

drgeoff wrote:That page also tells you that if the card is 64 Byte or larger you need an additional step to change from exFAT to FAT32.
A 64 Byte SD card? :lol:
She who travels light — forgot something.

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: apt-get upgrade problem

Sat May 27, 2017 8:33 pm

Paeryn wrote:
drgeoff wrote:That page also tells you that if the card is 64 Byte or larger you need an additional step to change from exFAT to FAT32.
A 64 Byte SD card? :lol:
Yes, that's the sort of error that creeps in when keeping an eye on something else. In this case, the Cup Final. :)

pepto20
Posts: 2
Joined: Tue Jan 10, 2017 7:00 pm

Re: apt-get upgrade problem

Sun May 28, 2017 10:36 am

Thanks for your response. It seems that you really think it is related to the SD card. That being said, on the same page you mentioned, they also say that disk utility is fine to format a card with a mac...

I will try the SD formatter anyway and if it doesn't work, buy a new SD card...

Thanks!

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: apt-get upgrade problem

Sun May 28, 2017 12:26 pm

for berryboot i just try last week again, sorry can not run update upgrade because will get a new sytem / not possible with berryboot now, must wait for upgrade by berryboot.

Return to “Beginners”