xtof
Posts: 3
Joined: Thu Aug 08, 2013 12:03 pm

Yet another user having trouble running "sudo apt-get"

Thu Aug 08, 2013 12:28 pm

Hi,


Got my RPi a few days ago with a 8GB Samsung SD Card pre-installed with NOOBS and I had a go at installing RaspBMC (my main reason for buying the pi board.) My main goal is to get DVD navigation working on DVD folders (copied my DVD to an USB hard drive and removed all restrictions.) I already realize that this is not an easy thing to get going (does it even work at all?) judging by the countless posts trying to get it working properly. Anyway, it is an adventure and part of the fun and I get to learn a bit of linux as I go along.

Installation in linux requires running the "sudo apt-get" command but I can't even get it to work. For instance, sudo apt-get update gives me an error every time:

Code: Select all

Hit http://archive.raspbian.org wheezy Release.gpg
Hit http://archive.raspbian.org wheezy Release
Hit http://archive.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspbian.org wheezy/contrib armhf Packages
Hit http://archive.raspbian.org wheezy/non-free armhf Packages
Ign http://archive.raspbian.org wheezy/contrib Translation-en
Ign http://archive.raspbian.org wheezy/main Translation-en
Ign http://archive.raspbian.org wheezy/non-free Translation-en
Reading package lists... Error!
E: Malformed Description-md5 line; doesn't have the required length (32 != 153) 'c53a5ca6930n
 operations.
 .
 See http://www.originlab.com for more informations about OriginLab Origin.
 .
 This package contains the development files.'
E: The package lists or status file could not be parsed or opened.
I noticed that installing a new nightly build earlier was throwing an error (Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)) and luckily I was able to fix the problem thanks to a solution found online. It involved editing the config file to change root=/dev/mmcblk0p2 to root=/dev/mmcblk0p6

But even then I did see a few error reports and some misaligned messages during the upgrade (had to pull the plug and reboot the device.) Everything worked eventually but maybe that did screw up my RaspBMC install?

But since sudo apt-get is vital to keep things up to date, how do I get it to work (again)? The Pi is able to access the internet because I'm able to get video add-ons installed and content is streaming just fine.

On a side note, does installing the libdvdnav4 DVD navigation library help in any way to get menu navigation working at all? Was going the VLC route because I know that it can handle that pretty well, unlike the default player in RaspBMC. Not sure if the RPi hardware is supported by now... But that made me come across the DVD nav' lib.

Thanks in advance!

lingon
Posts: 157
Joined: Fri Aug 26, 2011 7:31 am

Re: Yet another user having trouble running "sudo apt-get"

Sat Aug 10, 2013 6:47 pm

Do you use over clocking? I have one Raspberry Pi where apt-get was giving error messages with "Turbo" over clocking. Removing the over clocking got apt-get working again.

xtof
Posts: 3
Joined: Thu Aug 08, 2013 12:03 pm

Re: Yet another user having trouble running "sudo apt-get"

Sat Aug 10, 2013 9:39 pm

Hello lingon,

Yes, I believe that Raspbmc overclocks the RPi by default "to a safe clock frequency which has been verified by Dom who works on the Raspberry Pi firmware himself." I didn't overclock it intentionally though. I'll edit the config and see if that will resolve the problem.

Thanks for your insight.

xtof
Posts: 3
Joined: Thu Aug 08, 2013 12:03 pm

Re: Yet another user having trouble running "sudo apt-get"

Sun Aug 11, 2013 10:10 pm

I adjusted these lines in my config

arm_freq=800
force_turbo=1

to

arm_freq=700
force_turbo=0

and now I'm able to run apt-get commands! Super and thank you very much :)

Return to “Troubleshooting”